/* Essential Layout Styles */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

body { 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
    background: #f8fafc; 
}

/* Top Navigation */
.top-nav { 
    position: sticky; 
    top: 0; 
    z-index: 100; 
    background: #1e3a8a; 
    color: white; 
    padding: 12px 20px; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    backdrop-filter: blur(8px);
}

.logo { 
    display: flex; 
    align-items: center; 
    font-size: 20px; 
    font-weight: bold; 
}

.logo-icon { 
    background: #3b82f6; 
    width: 32px; 
    height: 32px; 
    border-radius: 6px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    margin-right: 10px; 
    font-size: 18px; 
}

.nav-left { 
    display: flex; 
    align-items: center; 
    gap: 15px; 
}

.nav-right { 
    display: flex; 
    align-items: center; 
    gap: 20px; 
}

.search-bar { 
    background: rgba(255,255,255,0.1); 
    border: 1px solid rgba(255,255,255,0.2); 
    border-radius: 6px; 
    padding: 8px 12px; 
    color: white; 
    width: 300px; 
}

.search-bar::placeholder { 
    color: rgba(255,255,255,0.7); 
}

.nav-icon { 
    width: 32px; 
    height: 32px; 
    background: rgba(255,255,255,0.1); 
    border-radius: 6px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    cursor: pointer; 
    transition: background 0.2s; 
}

.nav-icon:hover { 
    background: rgba(255,255,255,0.2); 
}

.org-dropdown { 
    background: rgba(255,255,255,0.1); 
    border: 1px solid rgba(255,255,255,0.2); 
    border-radius: 6px; 
    padding: 8px 12px; 
    cursor: pointer; 
    position: relative; 
}

.org-dropdown:hover { 
    background: rgba(255,255,255,0.2); 
}

.org-dropdown::after { 
    content: '▼'; 
    margin-left: 8px; 
    font-size: 10px; 
}

.org-dropdown-menu { 
    position: absolute; 
    top: 100%; 
    left: 0; 
    right: 0; 
    background: white; 
    border: 1px solid #e5e7eb; 
    border-radius: 6px; 
    box-shadow: 0 4px 6px rgba(0,0,0,0.1); 
    z-index: 1000; 
    display: none; 
    margin-top: 4px; 
}

.org-dropdown-menu.show { 
    display: block; 
}

.org-item { 
    padding: 12px; 
    cursor: pointer; 
    color: #374151; 
    border-bottom: 1px solid #f3f4f6; 
    transition: background 0.2s; 
}

.org-item:hover { 
    background: #f9fafb; 
}

.org-item:last-child { 
    border-bottom: none; 
}

.org-item.current { 
    background: #dbeafe; 
    color: #1e40af; 
    font-weight: 600; 
}

.org-item.current::after { 
    content: '✓'; 
    float: right; 
    color: #3b82f6; 
}

.profile-icon { 
    width: 32px; 
    height: 32px; 
    background: #10b981; 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    color: white; 
    font-weight: bold; 
    cursor: pointer; 
    position: relative; 
}

.profile-dropdown { 
    position: absolute; 
    top: 100%; 
    right: 0; 
    background: white; 
    border: 1px solid #e5e7eb; 
    border-radius: 8px; 
    box-shadow: 0 4px 6px rgba(0,0,0,0.1); 
    z-index: 1000; 
    display: none; 
    margin-top: 8px; 
    min-width: 200px; 
}

.profile-dropdown.show { 
    display: block; 
}

.profile-header { 
    padding: 16px; 
    border-bottom: 1px solid #f3f4f6; 
    background: #f9fafb; 
}

.profile-name { 
    font-weight: 600; 
    color: #1f2937; 
    font-size: 14px; 
    margin-bottom: 4px; 
}

.profile-email { 
    color: #6b7280; 
    font-size: 12px; 
}

.profile-item { 
    padding: 12px 16px; 
    cursor: pointer; 
    color: #374151; 
    border-bottom: 1px solid #f3f4f6; 
    transition: background 0.2s; 
    display: flex; 
    align-items: center; 
}

.profile-item:hover { 
    background: #f9fafb; 
}

.profile-item:last-child { 
    border-bottom: none; 
}

.profile-item.logout { 
    color: #dc2626; 
}

.profile-item.logout:hover { 
    background: #fee2e2; 
}

.profile-item-icon { 
    width: 16px; 
    height: 16px; 
    margin-right: 8px; 
}

/* Notification Dropdown */
.notification-icon { 
    position: relative; 
}

.notification-badge { 
    position: absolute; 
    top: -5px; 
    right: -5px; 
    background: #dc2626; 
    color: white; 
    border-radius: 50%; 
    width: 18px; 
    height: 18px; 
    font-size: 10px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-weight: bold; 
}

.notification-dropdown { 
    position: absolute; 
    top: 100%; 
    right: 0; 
    background: white; 
    border: 1px solid #e5e7eb; 
    border-radius: 8px; 
    box-shadow: 0 4px 6px rgba(0,0,0,0.1); 
    z-index: 1000; 
    display: none; 
    margin-top: 8px; 
    min-width: 350px; 
    max-width: 400px; 
}

.notification-dropdown.show { 
    display: block; 
}

.notification-header { 
    padding: 16px; 
    border-bottom: 1px solid #f3f4f6; 
    background: #f9fafb; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}

.notification-header h3 { 
    margin: 0; 
    font-size: 16px; 
    font-weight: 600; 
    color: #1f2937; 
}

.mark-all-read { 
    background: none; 
    border: none; 
    color: #3b82f6; 
    font-size: 12px; 
    cursor: pointer; 
    padding: 4px 8px; 
    border-radius: 4px; 
    transition: background 0.2s; 
}

.mark-all-read:hover { 
    background: #f3f4f6; 
}

.notification-list { 
    max-height: 400px; 
    overflow-y: auto; 
}

.notification-item { 
    display: flex; 
    padding: 12px 16px; 
    border-bottom: 1px solid #f3f4f6; 
    cursor: pointer; 
    transition: background 0.2s; 
}

.notification-item:hover { 
    background: #f9fafb; 
}

.notification-item.unread { 
    background: #eff6ff; 
    border-left: 3px solid #3b82f6; 
}

.notification-item.unread:hover { 
    background: #dbeafe; 
}

.notification-item:last-child { 
    border-bottom: none; 
}

.notification-item .notification-icon { 
    width: 32px; 
    height: 32px; 
    background: #f3f4f6; 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    margin-right: 12px; 
    flex-shrink: 0; 
}

.notification-content { 
    flex: 1; 
    min-width: 0; 
}

.notification-title { 
    font-weight: 600; 
    color: #1f2937; 
    font-size: 14px; 
    margin-bottom: 4px; 
}

.notification-message { 
    color: #6b7280; 
    font-size: 13px; 
    line-height: 1.4; 
    margin-bottom: 4px; 
}

.notification-time { 
    color: #9ca3af; 
    font-size: 11px; 
}

.notification-footer { 
    padding: 12px 16px; 
    border-top: 1px solid #f3f4f6; 
    background: #f9fafb; 
    text-align: center; 
}

.view-all-notifications { 
    color: #3b82f6; 
    text-decoration: none; 
    font-size: 13px; 
    font-weight: 500; 
}

.view-all-notifications:hover { 
    text-decoration: underline; 
}

/* Sidebar */
.sidebar { 
    position: fixed; 
    left: 0; 
    top: 0; 
    bottom: 0; 
    width: 250px; 
    background: white; 
    border-right: 1px solid #e5e7eb; 
    z-index: 50; 
    transform: translateX(0); 
    transition: transform 0.3s ease; 
    overflow-y: auto;
}

.sidebar.open { 
    transform: translateX(0); 
}

.sidebar-header { 
    padding: 20px; 
    border-bottom: 1px solid #e5e7eb; 
    background: #f9fafb; 
}

.sidebar-logo { 
    display: flex; 
    align-items: center; 
    font-size: 18px; 
    font-weight: bold; 
    color: #1f2937; 
}

.sidebar-logo-icon { 
    background: #3b82f6; 
    width: 28px; 
    height: 28px; 
    border-radius: 6px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    margin-right: 10px; 
    font-size: 16px; 
    color: white; 
}

.sidebar-nav { 
    padding: 20px 0; 
}

.menu-item { 
    display: flex; 
    align-items: center; 
    padding: 12px 20px; 
    color: #6b7280; 
    text-decoration: none; 
    transition: all 0.2s; 
    cursor: pointer;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
}

.menu-item:hover { 
    background: #f3f4f6; 
    color: #374151; 
}

.menu-item.active { 
    background: #dbeafe; 
    color: #1e40af; 
    font-weight: 600; 
}

.menu-item.active .menu-icon { 
    color: #3b82f6; 
}

.menu-icon { 
    width: 20px; 
    height: 20px; 
    margin-right: 12px; 
    font-size: 16px; 
}

.menu-arrow { 
    margin-left: auto; 
    font-size: 12px; 
    transition: transform 0.2s; 
}

.menu-arrow.rotated { 
    transform: rotate(90deg); 
}

.submenu { 
    display: none; 
    background: #f9fafb; 
}

.submenu.show { 
    display: block; 
}

.submenu-item { 
    padding: 10px 20px 10px 52px; 
    color: #6b7280; 
    text-decoration: none; 
    display: block; 
    transition: all 0.2s; 
}

.submenu-item:hover { 
    background: #e5e7eb; 
    color: #374151; 
}

.submenu-item.active { 
    background: #dbeafe; 
    color: #1e40af; 
    font-weight: 600; 
}

/* Submenu specific styles */
.submenu {
    background: rgba(30, 64, 175, 0.05);
    padding-left: 20px;
}

.submenu-item {
    padding: 8px 20px;
    font-size: 14px;
    color: #4b5563;
}

.submenu-item:hover {
    background: rgba(30, 64, 175, 0.1);
    color: #1e40af;
}

.submenu-item .menu-icon {
    width: 16px;
    height: 16px;
    margin-right: 8px;
}

/* Main Content */
.main-content { 
    margin-left: 250px; 
    padding: 20px; 
    transition: margin-left 0.3s ease; 
    min-height: calc(100vh - 60px);
}

.main-content.sidebar-closed { 
    margin-left: 0; 
}

/* Mobile Menu Button */
.mobile-menu-btn { 
    display: none; 
    background: none; 
    border: none; 
    color: white; 
    font-size: 20px; 
    cursor: pointer; 
    padding: 8px; 
    border-radius: 4px; 
    transition: background 0.2s; 
}

.mobile-menu-btn:hover { 
    background: rgba(255,255,255,0.1); 
}

/* Overlay for mobile */
.sidebar-overlay { 
    position: fixed; 
    top: 0; 
    left: 0; 
    right: 0; 
    bottom: 0; 
    background: rgba(0,0,0,0.5); 
    z-index: 40; 
    display: none; 
}

.sidebar-overlay.show { 
    display: block; 
}

/* Responsive Design */
@media (max-width: 768px) {
    .mobile-menu-btn { 
        display: block; 
    }
    
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .main-content { 
        margin-left: 0;
        padding: 15px; 
    }
    
    .search-bar { 
        width: 200px; 
    }
    
    .nav-right { 
        gap: 10px; 
    }
    
    .notification-dropdown {
        min-width: 300px;
        max-width: 350px;
    }
}

/* Tailwind CSS Base Styles */
*, ::before, ::after {
  box-sizing: border-box;
  border-width: 0;
  border-style: solid;
  border-color: #e5e7eb;
}

::before, ::after {
  --tw-content: '';
}

html {
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  -moz-tab-size: 4;
  tab-size: 4;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  font-feature-settings: normal;
  font-variation-settings: normal;
}

body {
  margin: 0;
  line-height: inherit;
}

/* Custom Font */
@import url('https://fonts.googleapis.com/css2?family=Instrument+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500;1,600;1,700&display=swap');

/* Base Styles */
:root {
    --font-sans: 'Instrument Sans', ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji',
        'Segoe UI Symbol', 'Noto Color Emoji';
}

body {
    font-family: var(--font-sans);
    background-color: #f8fafc;
}

/* Common Tailwind Utilities */
.container { width: 100%; margin-left: auto; margin-right: auto; padding-left: 1rem; padding-right: 1rem; }
.flex { display: flex; }
.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }

/* Spacing */
.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }

.m-1 { margin: 0.25rem; }
.m-2 { margin: 0.5rem; }
.m-4 { margin: 1rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.ml-2 { margin-left: 0.5rem; }
.mr-2 { margin-right: 0.5rem; }

/* Colors */
.text-white { color: #ffffff; }
.text-black { color: #000000; }
.text-gray-500 { color: #6b7280; }
.text-gray-600 { color: #4b5563; }
.text-gray-700 { color: #374151; }
.text-gray-900 { color: #111827; }
.text-blue-600 { color: #2563eb; }
.text-blue-700 { color: #1d4ed8; }
.text-green-600 { color: #16a34a; }
.text-red-600 { color: #dc2626; }

.bg-white { background-color: #ffffff; }
.bg-gray-50 { background-color: #f9fafb; }
.bg-gray-100 { background-color: #f3f4f6; }
.bg-gray-200 { background-color: #e5e7eb; }
.bg-blue-50 { background-color: #eff6ff; }
.bg-blue-100 { background-color: #dbeafe; }
.bg-blue-600 { background-color: #2563eb; }
.bg-blue-700 { background-color: #1d4ed8; }
.bg-green-50 { background-color: #f0fdf4; }
.bg-green-100 { background-color: #dcfce7; }
.bg-red-50 { background-color: #fef2f2; }
.bg-red-100 { background-color: #fee2e2; }

/* Borders */
.border { border-width: 1px; }
.border-gray-200 { border-color: #e5e7eb; }
.border-gray-300 { border-color: #d1d5db; }
.rounded { border-radius: 0.25rem; }
.rounded-md { border-radius: 0.375rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }

/* Sizing */
.w-full { width: 100%; }
.w-4 { width: 1rem; }
.w-5 { width: 1.25rem; }
.w-6 { width: 1.5rem; }
.w-8 { width: 2rem; }
.w-12 { width: 3rem; }
.h-4 { height: 1rem; }
.h-5 { height: 1.25rem; }
.h-6 { height: 1.5rem; }
.h-8 { height: 2rem; }
.h-12 { height: 3rem; }

/* Flexbox */
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }

/* Typography */
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

/* Shadows */
.shadow { box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06); }
.shadow-md { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); }

/* Hover States */
.hover\:bg-gray-100:hover { background-color: #f3f4f6; }
.hover\:bg-blue-700:hover { background-color: #1d4ed8; }
.hover\:text-gray-900:hover { color: #111827; }

/* Focus States */
.focus\:outline-none:focus { outline: 2px solid transparent; outline-offset: 2px; }
.focus\:ring-2:focus { box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.5); }

/* Transitions */
.transition { transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.duration-200 { transition-duration: 200ms; }

/* Global SVG Icon Sizing Fix */
.btn-icon {
    width: 1rem;
    height: 1rem;
}

.alert-icon {
    width: 1.25rem;
    height: 1.25rem;
}

.search-icon {
    width: 1rem;
    height: 1rem;
}

.sort-icon {
    width: 1rem;
    height: 1rem;
}

.error-icon {
    width: 1rem;
    height: 1rem;
}

.stat-icon svg {
    width: 1.5rem;
    height: 1.5rem;
}

.empty-state-icon svg {
    width: 3rem;
    height: 3rem;
}

.info-icon svg {
    width: 1.5rem;
    height: 1.5rem;
}

.file-icon svg {
    width: 1rem;
    height: 1rem;
}

/* Ensure all SVG elements have proper sizing */
svg {
    max-width: 100%;
    max-height: 100%;
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.375rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
    border: 1px solid transparent;
    cursor: pointer;
    padding: 0.5rem 1rem;
}

.btn-primary {
    background-color: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
}

.btn-primary:hover {
    background-color: #1d4ed8;
    border-color: #1d4ed8;
}

.btn-secondary {
    background-color: #6b7280;
    color: #ffffff;
    border-color: #6b7280;
}

.btn-secondary:hover {
    background-color: #4b5563;
    border-color: #4b5563;
}

.btn-outline {
    background-color: transparent;
    color: #374151;
    border-color: #d1d5db;
}

.btn-outline:hover {
    background-color: #f9fafb;
    color: #111827;
}

/* Form Styles */
.form-input {
    display: block;
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    background-color: #ffffff;
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.form-input:focus {
    outline: 2px solid transparent;
    outline-offset: 2px;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-select {
    display: block;
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    background-color: #ffffff;
    font-size: 0.875rem;
    line-height: 1.25rem;
    cursor: pointer;
}

.form-select:focus {
    outline: 2px solid transparent;
    outline-offset: 2px;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Card Styles */
.card {
    background-color: #ffffff;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    border: 1px solid #e5e7eb;
    padding: 1.5rem;
}

/* Table Styles */
.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.table th {
    background-color: #f9fafb;
    font-weight: 600;
    color: #374151;
}

.table tbody tr:hover {
    background-color: #f9fafb;
}

/* Alert Styles */
.alert {
    padding: 1rem;
    border-radius: 0.375rem;
    margin-bottom: 1rem;
}

.alert-success {
    background-color: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}

.alert-error {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.alert-warning {
    background-color: #fffbeb;
    border: 1px solid #fed7aa;
    color: #92400e;
}

.alert-info {
    background-color: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e40af;
}

/* Accounts Page Specific Styles */
.accounts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

.account-card {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    overflow: hidden;
    transition: all 0.2s;
}

.account-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.account-header {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f3f4f6;
}

.account-code {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: #6b7280;
    font-size: 0.875rem;
}

.account-actions {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 0.5rem;
    min-width: 180px;
    z-index: 50;
    display: none;
}

.dropdown-menu.show {
    display: block;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    color: #374151;
    text-decoration: none;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    transition: all 0.2s;
}

.dropdown-item:hover {
    background: #f3f4f6;
    color: #1f2937;
}

.dropdown-item.text-danger:hover {
    background: #fef2f2;
    color: #dc2626;
}

.dropdown-icon {
    width: 1rem;
    height: 1rem;
}

.dropdown-divider {
    height: 1px;
    background: #e5e7eb;
    margin: 0.5rem 0;
}

.account-body {
    padding: 1.5rem;
}

.account-type-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.account-type-asset {
    background: #dbeafe;
    color: #1e40af;
}

.account-type-liability {
    background: #fef3c7;
    color: #92400e;
}

.account-type-equity {
    background: #d1fae5;
    color: #065f46;
}

.account-type-revenue {
    background: #e0e7ff;
    color: #3730a3;
}

.account-type-expense {
    background: #fce7f3;
    color: #be185d;
}

.account-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.account-description {
    color: #6b7280;
    font-size: 0.875rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.account-balance {
    padding: 1rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    text-align: center;
}

.balance-label {
    color: #6b7280;
    font-size: 0.75rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
    display: block;
}

.balance-amount {
    font-weight: 700;
    font-size: 1.25rem;
}

.balance-amount.positive {
    color: #059669;
}

.balance-amount.negative {
    color: #dc2626;
}

.balance-source-indicator {
    display: inline-flex;
    align-items: center;
    margin-left: 0.5rem;
    color: #10b981;
}

.balance-icon {
    width: 0.875rem;
    height: 0.875rem;
}

.balance-note {
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 0.25rem;
    font-style: italic;
}

.account-footer {
    padding: 1rem 1.5rem;
    background: #f9fafb;
    border-top: 1px solid #f3f4f6;
    display: flex;
    justify-content: flex-end;
}

.account-actions-footer {
    display: flex;
    gap: 0.5rem;
}

.action-btn-small {
    width: 2rem;
    height: 2rem;
    border: 1px solid #d1d5db;
    background: white;
    border-radius: 0.375rem;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.2s;
}

.action-btn-small:hover {
    background: #f3f4f6;
    color: #374151;
    border-color: #9ca3af;
}

.action-btn-small svg {
    width: 0.875rem;
    height: 0.875rem;
}

/* Accounts List View */
.accounts-list {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    overflow: hidden;
}

.list-table {
    width: 100%;
}

.list-header {
    display: grid;
    grid-template-columns: 100px 1fr 120px 120px 120px;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
    font-weight: 600;
    color: #374151;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.list-row {
    display: grid;
    grid-template-columns: 100px 1fr 120px 120px 120px;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #f3f4f6;
    align-items: center;
    transition: background-color 0.2s;
}

.list-row:hover {
    background: #f9fafb;
}

.list-row:last-child {
    border-bottom: none;
}

.list-col-code {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: #6b7280;
    font-size: 0.875rem;
}

.list-col-name {
    min-width: 0;
}

.list-col-name .account-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.25rem;
}

.list-col-name .account-description {
    font-size: 0.75rem;
    color: #6b7280;
    margin-bottom: 0;
}

.list-col-type {
    display: flex;
    justify-content: center;
}

.list-col-balance {
    text-align: right;
}

.list-col-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.hierarchy-indicator {
    color: #9ca3af;
    margin-right: 0.5rem;
    font-family: monospace;
}

/* Notification Styles */
.notification-icon {
    position: relative;
    cursor: pointer;
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #dc2626;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.notification-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: none;
    margin-top: 8px;
    min-width: 350px;
    max-width: 400px;
}

.notification-dropdown.show {
    display: block;
}

.notification-header {
    padding: 16px;
    border-bottom: 1px solid #f3f4f6;
    background: #f9fafb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notification-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
}

.mark-all-read {
    background: none;
    border: none;
    color: #3b82f6;
    font-size: 12px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background 0.2s;
}

.mark-all-read:hover {
    background: #f3f4f6;
}

.notification-list {
    max-height: 400px;
    overflow-y: auto;
}

.notification-item {
    display: flex;
    padding: 12px 16px;
    border-bottom: 1px solid #f3f4f6;
    cursor: pointer;
    transition: background 0.2s;
}

.notification-item:hover {
    background: #f9fafb;
}

.notification-item.unread {
    background: #eff6ff;
    border-left: 3px solid #3b82f6;
}

.notification-item.unread:hover {
    background: #dbeafe;
}

.notification-item:last-child {
    border-bottom: none;
}

.notification-item .notification-icon {
    width: 32px;
    height: 32px;
    background: #f3f4f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    flex-shrink: 0;
}

.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-title {
    font-weight: 600;
    color: #1f2937;
    font-size: 14px;
    margin-bottom: 4px;
}

.notification-message {
    color: #6b7280;
    font-size: 13px;
    line-height: 1.4;
    margin-bottom: 4px;
}

.notification-time {
    color: #9ca3af;
    font-size: 11px;
}

.notification-footer {
    padding: 12px 16px;
    border-top: 1px solid #f3f4f6;
    background: #f9fafb;
    text-align: center;
}

.view-all-notifications {
    color: #3b82f6;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
}

.view-all-notifications:hover {
    text-decoration: underline;
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    gap: 0.5rem;
}

.btn-primary {
    background-color: #3b82f6;
    color: white;
}

.btn-primary:hover {
    background-color: #2563eb;
}

.btn-secondary {
    background-color: #6b7280;
    color: white;
}

.btn-secondary:hover {
    background-color: #4b5563;
}

.btn-success {
    background-color: #10b981;
    color: white;
}

.btn-success:hover {
    background-color: #059669;
}

.btn-danger {
    background-color: #ef4444;
    color: white;
}

.btn-danger:hover {
    background-color: #dc2626;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
}

.btn-icon {
    width: 1rem;
    height: 1rem;
}

/* View Toggle Buttons */
.view-toggle {
    display: flex;
    background: #f3f4f6;
    border-radius: 0.5rem;
    padding: 0.25rem;
    gap: 0.25rem;
}

.view-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    border: none;
    background: transparent;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.2s;
    color: #6b7280;
}

.view-btn:hover {
    background: #e5e7eb;
    color: #374151;
}

.view-btn.active {
    background: white;
    color: #3b82f6;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.view-btn svg {
    width: 1.25rem;
    height: 1.25rem;
}

/* Filters Section */
.filters-section {
    background: white;
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.filters-form {
    display: flex;
    gap: 1rem;
    align-items: end;
    flex-wrap: wrap;
}

.search-box {
    flex: 1;
    min-width: 300px;
}

.search-input-wrapper {
    position: relative;
}

.search-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.search-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1.25rem;
    height: 1.25rem;
    color: #6b7280;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
}

.filter-select {
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    background: white;
    min-width: 150px;
}

.filter-actions {
    display: flex;
    gap: 0.75rem;
    align-items: end;
}

/* Cheque Management Page Styles */
.cheques-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

.cheques-list {
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.cheque-card {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    transition: all 0.2s;
    border: 1px solid #e5e7eb;
}

.cheque-card:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.cheque-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.cheque-number {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
}

.cheque-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: #059669;
    margin: 0;
}

.cheque-details {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.cheque-detail {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cheque-detail-label {
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 500;
}

.cheque-detail-value {
    font-size: 0.875rem;
    color: #1f2937;
    font-weight: 600;
}

.cheque-status {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.cheque-status.pending {
    background-color: #fef3c7;
    color: #92400e;
}

.cheque-status.issued {
    background-color: #dbeafe;
    color: #1e40af;
}

.cheque-status.cancelled {
    background-color: #fee2e2;
    color: #dc2626;
}

.cheque-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 1rem;
    position: relative;
}

.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border: none;
    background: #f3f4f6;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.2s;
    color: #6b7280;
}

.action-btn:hover {
    background: #e5e7eb;
    color: #374151;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 10;
    display: none;
    min-width: 12rem;
    margin-top: 0.25rem;
}

.dropdown-menu.show {
    display: block;
}

.dropdown-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: #374151;
    text-decoration: none;
    transition: background-color 0.2s;
    gap: 0.5rem;
}

.dropdown-item:hover {
    background-color: #f9fafb;
    color: #1f2937;
}

.dropdown-item.danger {
    color: #dc2626;
}

.dropdown-item.danger:hover {
    background-color: #fee2e2;
}

.dropdown-item svg {
    width: 1rem;
    height: 1rem;
}

/* List View Styles */
.cheque-list-item {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #f3f4f6;
    transition: background-color 0.2s;
}

.cheque-list-item:hover {
    background-color: #f9fafb;
}

.cheque-list-item:last-child {
    border-bottom: none;
}

.cheque-list-number {
    font-weight: 600;
    color: #1f2937;
    min-width: 120px;
}

.cheque-list-payee {
    flex: 1;
    color: #374151;
    margin: 0 1rem;
}

.cheque-list-amount {
    font-weight: 600;
    color: #059669;
    min-width: 100px;
    text-align: right;
}

.cheque-list-status {
    min-width: 100px;
    text-align: center;
}

.cheque-list-actions {
    min-width: 60px;
    text-align: right;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
    color: #6b7280;
}

.empty-state-icon {
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1rem;
    color: #d1d5db;
}

.empty-state-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
}

.empty-state-description {
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

/* Loading State */
.loading-state {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3rem;
}

.loading-spinner {
    width: 2rem;
    height: 2rem;
    border: 2px solid #e5e7eb;
    border-top: 2px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Page Title Styles */
.page-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 0.5rem 0;
}

.page-subtitle {
    color: #6b7280;
    margin: 0;
    font-size: 1rem;
}

/* Stats Grid Styles */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    transition: all 0.2s;
}

.stat-card:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.stat-card.stat-primary {
    border-left: 4px solid #3b82f6;
}

.stat-card.stat-success {
    border-left: 4px solid #10b981;
}

.stat-card.stat-warning {
    border-left: 4px solid #f59e0b;
}

.stat-card.stat-danger {
    border-left: 4px solid #ef4444;
}

.stat-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.stat-card.stat-primary .stat-icon {
    background-color: #dbeafe;
    color: #3b82f6;
}

.stat-card.stat-success .stat-icon {
    background-color: #d1fae5;
    color: #10b981;
}

.stat-card.stat-warning .stat-icon {
    background-color: #fef3c7;
    color: #f59e0b;
}

.stat-card.stat-danger .stat-icon {
    background-color: #fee2e2;
    color: #ef4444;
}

.stat-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: #1f2937;
    line-height: 1;
}

.stat-label {
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 500;
}

.stat-change {
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.stat-change.positive {
    color: #10b981;
}

.stat-change.negative {
    color: #ef4444;
}

.stat-change.neutral {
    color: #6b7280;
}

/* View Icon Styles */
.view-icon {
    width: 1.25rem;
    height: 1.25rem;
}

/* Account Card Styles */
.accounts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.account-card {
    background: white;
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    transition: all 0.2s;
    cursor: pointer;
}

.account-card:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.account-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.account-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}

.account-code {
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 500;
    margin: 0;
}

.account-balance {
    font-size: 1.5rem;
    font-weight: 700;
    color: #059669;
    margin: 0;
}

.account-type {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background-color: #f3f4f6;
    color: #374151;
}

.account-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 1rem;
    gap: 0.5rem;
}

.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border: none;
    background: #f3f4f6;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.2s;
    color: #6b7280;
}

.action-btn:hover {
    background: #e5e7eb;
    color: #374151;
}

.action-btn svg {
    width: 1rem;
    height: 1rem;
}

/* List View Styles */
.accounts-list {
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.account-list-item {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #f3f4f6;
    transition: background-color 0.2s;
}

.account-list-item:hover {
    background-color: #f9fafb;
}

.account-list-item:last-child {
    border-bottom: none;
}

.account-list-name {
    font-weight: 600;
    color: #1f2937;
    min-width: 200px;
}

.account-list-code {
    color: #6b7280;
    min-width: 100px;
    font-size: 0.875rem;
}

.account-list-type {
    min-width: 120px;
}

.account-list-balance {
    font-weight: 600;
    color: #059669;
    min-width: 120px;
    text-align: right;
}

.account-list-actions {
    min-width: 80px;
    text-align: right;
}

.cheque-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.cheque-header {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f3f4f6;
}

.cheque-number {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: #6b7280;
    font-size: 0.875rem;
}

.cheque-actions {
    position: relative;
}

.cheque-body {
    padding: 1.5rem;
}

.cheque-payee {
    margin-bottom: 1rem;
}

.cheque-payee-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 0.5rem 0;
}

.cheque-memo {
    color: #6b7280;
    font-size: 0.875rem;
    margin: 0;
}

.cheque-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.cheque-detail {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cheque-detail-label {
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 500;
}

.cheque-detail-value {
    font-size: 0.875rem;
    color: #1f2937;
    font-weight: 600;
}

.cheque-footer {
    padding: 1rem 1.5rem;
    background: #f9fafb;
    border-top: 1px solid #f3f4f6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cheque-status {
    display: flex;
    align-items: center;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-draft {
    background: #fef3c7;
    color: #92400e;
}

.status-printed {
    background: #d1fae5;
    color: #065f46;
}

.status-cancelled {
    background: #fee2e2;
    color: #991b1b;
}

.cheque-actions-footer {
    display: flex;
    gap: 0.5rem;
}

/* Cheques List View */
.cheques-list {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    overflow: hidden;
}

.list-table {
    width: 100%;
}

.list-header {
    display: grid;
    grid-template-columns: 120px 1fr 150px 150px 120px 120px 120px;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
    font-weight: 600;
    color: #374151;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.list-row {
    display: grid;
    grid-template-columns: 120px 1fr 150px 150px 120px 120px 120px;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #f3f4f6;
    align-items: center;
    transition: background-color 0.2s;
}

.list-row:hover {
    background: #f9fafb;
}

.list-row:last-child {
    border-bottom: none;
}

.list-col-number {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: #6b7280;
    font-size: 0.875rem;
}

.list-col-payee {
    min-width: 0;
}

.list-col-payee .cheque-payee-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.25rem;
}

.list-col-payee .cheque-memo {
    font-size: 0.75rem;
    color: #6b7280;
    margin-bottom: 0;
}

.list-col-bank {
    font-size: 0.875rem;
    color: #374151;
}

.list-col-amount {
    text-align: right;
}

.amount-value {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.25rem;
}

.amount-words {
    font-size: 0.75rem;
    color: #6b7280;
}

.list-col-date {
    font-size: 0.875rem;
    color: #374151;
}

.list-col-status {
    display: flex;
    justify-content: center;
}

.list-col-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.action-buttons {
    display: flex;
    gap: 0.5rem;
}

/* Pagination */
.pagination-section {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
}

.empty-icon {
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1.5rem;
    color: #d1d5db;
}

.empty-icon svg {
    width: 100%;
    height: 100%;
}

.empty-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 0.5rem 0;
}

.empty-description {
    color: #6b7280;
    font-size: 1rem;
    margin: 0 0 2rem 0;
}

/* Responsive Design for Cheques */
@media (max-width: 1200px) {
    .list-header,
    .list-row {
        grid-template-columns: 100px 1fr 120px 120px 100px 100px 100px;
        gap: 0.75rem;
        padding: 0.75rem 1rem;
    }
}

@media (max-width: 768px) {
    .cheques-grid {
        grid-template-columns: 1fr;
    }

    .list-header,
    .list-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        padding: 1rem;
    }

    .list-header {
        display: none;
    }

    .list-row {
        display: block;
        border: 1px solid #e5e7eb;
        border-radius: 0.5rem;
        margin-bottom: 1rem;
    }

    .list-row > div {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.5rem 0;
        border-bottom: 1px solid #f3f4f6;
    }

    .list-row > div:last-child {
        border-bottom: none;
    }

    .list-row > div::before {
        content: attr(data-label);
        font-weight: 600;
        color: #374151;
        font-size: 0.875rem;
    }
}

/* Page Layout Styles */
.page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.page-header {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.page-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.page-title-section h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 0.5rem 0;
}

.page-title-section p {
    color: #6b7280;
    margin: 0;
}

.page-actions {
    display: flex;
    gap: 0.75rem;
}

/* Form Styles for Cheque Management */
.form-section {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-label {
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.form-input,
.form-select,
.form-textarea {
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.875rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 80px;
}

.form-error {
    color: #dc2626;
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

/* Utility Classes */
.space-y-6 > * + * {
    margin-top: 1.5rem;
}

.text-red-500 {
    color: #ef4444;
}

.border-red-500 {
    border-color: #ef4444;
}

.w-4 {
    width: 1rem;
}

.h-4 {
    height: 1rem;
}

.mr-2 {
    margin-right: 0.5rem;
}

/* Flash Message Styles */
.fixed {
    position: fixed;
}

.top-4 {
    top: 1rem;
}

.right-4 {
    right: 1rem;
}

.bg-green-100 {
    background-color: #dcfce7;
}

.bg-red-100 {
    background-color: #fee2e2;
}

.border-green-400 {
    border-color: #4ade80;
}

.border-red-400 {
    border-color: #f87171;
}

.text-green-700 {
    color: #15803d;
}

.text-red-700 {
    color: #b91c1c;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.py-3 {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.rounded {
    border-radius: 0.375rem;
}

.z-50 {
    z-index: 50;
}

/* Responsive Design for Forms */
@media (max-width: 768px) {
    .page-container {
        padding: 1rem;
    }
    
    .page-header-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }
}

/* Cheque Layout Management Styles */
.layouts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

.layout-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    overflow: hidden;
    transition: all 0.2s;
}

.layout-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.layout-header {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f3f4f6;
}

.layout-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
}

.layout-actions {
    position: relative;
}

.layout-body {
    padding: 1.5rem;
}

.layout-details {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.layout-detail {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.layout-detail-label {
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 500;
}

.layout-detail-value {
    font-size: 0.875rem;
    color: #1f2937;
    font-weight: 600;
}

.layout-footer {
    padding: 1rem 1.5rem;
    background: #f9fafb;
    border-top: 1px solid #f3f4f6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.layout-status {
    display: flex;
    align-items: center;
}

.status-active {
    background: #d1fae5;
    color: #065f46;
}

.status-inactive {
    background: #fef3c7;
    color: #92400e;
}

.layout-actions-footer {
    display: flex;
    gap: 0.5rem;
}

/* Responsive Design for Layouts */
@media (max-width: 768px) {
    .layouts-grid {
        grid-template-columns: 1fr;
    }
}