/**
 * Rent Management Hub - Main Stylesheet
 * Version: 3.5.1
 * Created: 2025-11-08
 * Updated: 2025-12-03
 * Description: Complete responsive stylesheet with CSS Variables
 * 
 * RESTRUCTURED: Uses CSS custom properties (variables) throughout
 * CONSOLIDATED: All duplicate definitions removed
 * ORGANISED: Clear section structure
 * 
 * Changes v3.5.1: Fixed documents-card-header flex layout (badge now beside title)
 * Changes v3.5.0: Added .form-select styling, fixed .filter-row to work with .filter-group
 * Changes v3.4.0: Added standalone help-card and documents-card-header badge for my_documents.php
 * Changes v3.3.0: Added complete pet request form layout CSS (grid, form card, sidebar, checkboxes)
 * 
 * Table of Contents:
 * 1. CSS Variables (Design Tokens)
 * 2. Reset & Base Styles
 * 3. Layout
 * 4. Header & Navigation
 * 5. Mobile Menu
 * 6. Footer
 * 7. Buttons
 * 8. Cards
 * 9. Forms
 * 10. Alerts
 * 11. Tables
 * 12. Badges
 * 13. Dashboard Components
 * 14. Modals
 * 15. Utilities
 * 16. Page-Specific Styles
 * 17. Responsive Styles
 */

/* ============================================================================
   1. CSS VARIABLES (DESIGN TOKENS)
   ============================================================================ */

:root {
    /* Colours - Primary */
    --color-primary: #667eea;
    --color-primary-dark: #764ba2;
    --color-primary-light: #8b9cf7;
    --color-primary-hover: #5568d3;
    --color-primary-dark-hover: #653d8c;
    --color-primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --color-primary-gradient-hover: linear-gradient(135deg, #5568d3 0%, #653d8c 100%);
    
    /* Colours - Status */
    --color-success: #4caf50;
    --color-success-light: #e8f5e9;
    --color-success-dark: #2e7d32;
    --color-success-hover: #43a047;
    
    --color-warning: #ff9800;
    --color-warning-light: #fff3e0;
    --color-warning-dark: #e65100;
    --color-warning-hover: #f57c00;
    
    --color-danger: #f44336;
    --color-danger-light: #ffebee;
    --color-danger-dark: #c62828;
    --color-danger-hover: #e53935;
    
    --color-info: #2196f3;
    --color-info-light: #e3f2fd;
    --color-info-dark: #1565c0;
    
    /* Colours - Neutrals */
    --color-white: #ffffff;
    --color-black: #000000;
    --color-gray-50: #f8f9fa;
    --color-gray-100: #f5f5f5;
    --color-gray-150: #f0f0f0;
    --color-gray-200: #e0e0e0;
    --color-gray-250: #eee;
    --color-gray-300: #ddd;
    --color-gray-400: #999;
    --color-gray-450: #95a5a6;
    --color-gray-500: #666;
    --color-gray-550: #6c757d;
    --color-gray-600: #555;
    --color-gray-700: #333;
    --color-gray-800: #2c3e50;
    --color-gray-850: #34495e;
    --color-gray-900: #1a252f;
    
    /* Colours - Roles */
    --color-role-superadmin: #9c27b0;
    --color-role-landlord: #2196f3;
    --color-role-tenant: #4caf50;
    
    /* Typography */
    --font-family-base: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.85rem;
    --font-size-base: 1rem;
    --font-size-md: 1.1rem;
    --font-size-lg: 1.25rem;
    --font-size-xl: 1.5rem;
    --font-size-2xl: 2rem;
    --font-size-3xl: 2.5rem;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --line-height-tight: 1.2;
    --line-height-base: 1.6;
    --line-height-loose: 1.8;
    
    /* Spacing */
    --space-1: 5px;
    --space-2: 10px;
    --space-3: 15px;
    --space-4: 20px;
    --space-5: 25px;
    --space-6: 30px;
    --space-8: 40px;
    --space-10: 60px;
    --space-12: 80px;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 20px;
    --radius-full: 50%;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 10px rgba(0,0,0,0.15);
    --shadow-lg: 0 6px 20px rgba(0,0,0,0.15);
    --shadow-xl: 0 10px 40px rgba(0,0,0,0.3);
    --shadow-primary: 0 4px 15px rgba(102,126,234,0.3);
    --shadow-primary-lg: 0 4px 20px rgba(102,126,234,0.3);
    --shadow-header: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-card-hover: 0 5px 18px rgba(0,0,0,0.12);
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Layout */
    --container-max: 1200px;
    --container-padding: 20px;
    --header-height: 60px;
    
    /* Z-Index Scale */
    --z-dropdown: 1000;
    --z-sticky: 1000;
    --z-nav-mobile: 1001;
    --z-modal-backdrop: 1050;
    --z-modal: 1060;
    --z-tooltip: 1070;
    --z-toast: 9999;
}

/* ============================================================================
   2. RESET & BASE STYLES
   ============================================================================ */

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family-base);
    line-height: var(--line-height-base);
    color: var(--color-gray-700);
    background: var(--color-gray-100);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-base);
}

a:hover {
    color: var(--color-primary-dark);
}

h1, h2, h3, h4, h5, h6 {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    line-height: var(--line-height-tight);
}

h1:first-child, h2:first-child, h3:first-child, 
h4:first-child, h5:first-child, h6:first-child {
    margin-top: 0;
}

p {
    margin-bottom: 1rem;
}

p:last-child {
    margin-bottom: 0;
}

ul, ol {
    margin: 1rem 0 1.5rem 0;
    padding-left: 2rem;
}

ul li, ol li {
    margin-bottom: 0.5rem;
    line-height: var(--line-height-base);
}

/* ============================================================================
   3. LAYOUT
   ============================================================================ */

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.main-content {
    flex: 1;
    padding: var(--space-4) 0;
}

.dashboard-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: var(--space-4);
}

/* ============================================================================
   4. HEADER & NAVIGATION
   ============================================================================ */

.main-header {
    background: var(--color-white);
    box-shadow: var(--shadow-header);
    position: sticky;
    top: 0;
    z-index: var(--z-sticky);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-3) 0;
}

.logo a {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-primary);
}

.logo i {
    font-size: 2rem;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: var(--space-1);
    margin: 0;
    padding: 0;
}

.main-nav a {
    padding: var(--space-2) var(--space-3);
    display: block;
    border-radius: var(--radius-sm);
    transition: background var(--transition-base);
    color: var(--color-gray-700);
}

.main-nav a:hover,
.main-nav a.active {
    background: var(--color-gray-150);
    color: var(--color-primary);
}

.main-nav a i {
    margin-right: var(--space-1);
}

.has-dropdown {
    position: relative;
}

.has-dropdown > a {
    display: flex;
    align-items: center;
}

.dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--color-white);
    box-shadow: var(--shadow-md);
    border-radius: var(--radius-sm);
    min-width: 200px;
    margin-top: var(--space-1);
    z-index: var(--z-nav-mobile);
}

.has-dropdown:hover .dropdown,
.has-dropdown.active .dropdown {
    display: block;
}

.dropdown li {
    border-bottom: 1px solid var(--color-gray-150);
    margin: 0;
}

.dropdown li:last-child {
    border-bottom: none;
}

.dropdown a {
    padding: 12px var(--space-3);
    display: block;
}

.dropdown a:hover {
    background: var(--color-gray-50);
}

.user-menu {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.notification-icon {
    position: relative;
}

.notification-icon a,
.user-menu .notification-icon a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: var(--color-white);
    border-radius: var(--radius-full);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    font-size: 1.2rem;
    color: var(--color-primary);
    transition: all var(--transition-base);
    text-decoration: none;
}

.notification-icon a:hover,
.user-menu .notification-icon a:hover {
    background: var(--color-gray-50);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.25);
    color: var(--color-primary-dark);
    transform: scale(1.05);
}

.notification-icon .badge,
.user-menu .notification-icon .badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: linear-gradient(135deg, var(--color-danger), var(--color-danger-hover));
    color: var(--color-white);
    border-radius: var(--space-2);
    padding: 2px 6px;
    font-size: 10px;
    font-weight: var(--font-weight-bold);
    min-width: 18px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(244, 67, 54, 0.4);
    line-height: 1.2;
}

.user-dropdown {
    position: relative;
}

.user-btn {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: 8px var(--space-3);
    background: var(--color-gray-50);
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background var(--transition-base);
}

.user-btn:hover {
    background: var(--color-gray-200);
}

.user-btn i.fa-user-circle {
    font-size: var(--font-size-xl);
    color: var(--color-primary);
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--color-white);
    box-shadow: var(--shadow-md);
    border-radius: var(--radius-sm);
    min-width: 250px;
    margin-top: var(--space-1);
    z-index: var(--z-nav-mobile);
}

.dropdown-menu.show {
    display: block;
}

.user-info {
    padding: var(--space-3);
    border-bottom: 1px solid var(--color-gray-250);
}

.user-info strong {
    display: block;
    font-size: var(--font-size-base);
    margin-bottom: 3px;
}

.user-info small {
    display: block;
    color: var(--color-gray-500);
    font-size: var(--font-size-sm);
}

.role-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: var(--font-size-xs);
    margin-top: var(--space-1);
    font-weight: var(--font-weight-semibold);
}

.role-badge.superadmin { background: var(--color-role-superadmin); color: var(--color-white); }
.role-badge.landlord { background: var(--color-role-landlord); color: var(--color-white); }
.role-badge.tenant { background: var(--color-role-tenant); color: var(--color-white); }

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: 12px var(--space-3);
    color: var(--color-gray-700);
}

.dropdown-menu a:hover {
    background: var(--color-gray-50);
}

.dropdown-menu a i {
    width: var(--space-4);
    text-align: center;
}

/* ============================================================================
   5. MOBILE MENU STYLES
   ============================================================================ */

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: var(--font-size-xl);
    color: var(--color-gray-700);
    cursor: pointer;
    padding: var(--space-2);
    margin-left: auto;
    margin-right: var(--space-3);
    z-index: 1002;
    transition: opacity 0.2s ease;
}

.mobile-menu-toggle:hover {
    color: var(--color-primary);
}

.mobile-menu-toggle.hidden {
    opacity: 0;
    pointer-events: none;
}

.mobile-menu-close {
    display: none;
    position: absolute;
    top: var(--space-3);
    right: var(--space-3);
    background: none;
    border: none;
    font-size: var(--font-size-xl);
    color: var(--color-gray-700);
    cursor: pointer;
    padding: var(--space-2);
}

.mobile-menu-close:hover {
    color: var(--color-primary);
}

.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: var(--z-dropdown);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
}

/* ============================================================================
   6. FOOTER
   ============================================================================ */

.main-footer {
    background: var(--color-gray-800);
    color: var(--color-white);
    padding: var(--space-8) 0 var(--space-4) 0;
    margin-top: auto;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-6);
    margin-bottom: var(--space-6);
}

.footer-section h4 {
    font-size: var(--font-size-md);
    margin-bottom: var(--space-3);
    color: var(--color-white);
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: var(--space-2);
}

.footer-section a {
    color: #bdc3c7;
    transition: color var(--transition-base);
}

.footer-section a:hover {
    color: var(--color-white);
}

.footer-section small {
    display: block;
    font-size: var(--font-size-xs);
    color: var(--color-gray-450);
    margin-top: 2px;
}

.footer-section .version {
    font-size: 0.8rem;
    color: var(--color-gray-450);
}

.contact-info {
    padding: 0;
}

.contact-info li {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.contact-info i {
    color: var(--color-primary);
}

.footer-bottom {
    border-top: 1px solid var(--color-gray-850);
    padding-top: var(--space-4);
    text-align: center;
}

.footer-bottom p {
    color: #bdc3c7;
    font-size: var(--font-size-sm);
    margin: var(--space-1) 0;
}

.policy-update-info {
    font-size: var(--font-size-xs) !important;
    color: var(--color-gray-450) !important;
}

/* ============================================================================
   7. BUTTONS
   ============================================================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: var(--space-2) var(--space-4);
    border: none;
    border-radius: var(--radius-sm);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-medium);
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition-base);
}

.btn i {
    font-size: var(--font-size-md);
}

.btn-primary {
    background: var(--color-primary-gradient);
    color: var(--color-white);
}

.btn-primary:hover {
    background: var(--color-primary-gradient-hover);
    color: var(--color-white);
    transform: translateY(-1px);
    box-shadow: var(--shadow-primary);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
}

.btn-outline:hover {
    background: var(--color-primary);
    color: var(--color-white);
}

.btn-secondary {
    background: var(--color-gray-550);
    color: var(--color-white);
}

.btn-secondary:hover {
    background: #5a6268;
    color: var(--color-white);
}

.btn-success {
    background: var(--color-success);
    color: var(--color-white);
}

.btn-success:hover {
    background: var(--color-success-hover);
    color: var(--color-white);
}

.btn-warning {
    background: var(--color-warning);
    color: var(--color-white);
}

.btn-warning:hover {
    background: var(--color-warning-hover);
    color: var(--color-white);
}

.btn-danger {
    background: var(--color-danger);
    color: var(--color-white);
}

.btn-danger:hover {
    background: var(--color-danger-hover);
    color: var(--color-white);
}

.btn-info {
    background: var(--color-info);
    color: var(--color-white);
}

.btn-info:hover {
    background: var(--color-info-dark);
    color: var(--color-white);
}

.btn-link {
    background: transparent;
    color: var(--color-primary);
    padding: var(--space-2);
}

.btn-link:hover {
    text-decoration: underline;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 1.125rem;
}

.btn-icon {
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: var(--radius-full);
}

.btn-icon.btn-sm {
    width: 28px;
    height: 28px;
}

.auth-links {
    display: flex;
    gap: var(--space-2);
}

/* ============================================================================
   AUTH PAGES (Login, Register, Forgot Password)
   ============================================================================ */

.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 300px);
    padding: 40px 20px;
}

.auth-box {
    background: var(--color-white);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 450px;
    overflow: hidden;
}

.auth-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px 30px;
    text-align: center;
}

.auth-header i {
    font-size: 3rem;
    margin-bottom: 15px;
    display: block;
}

.auth-header h1 {
    margin: 0 0 10px 0;
    font-size: 1.75rem;
    color: white;
}

.auth-header p {
    margin: 0;
    opacity: 0.9;
    font-size: 0.95rem;
}

.auth-form {
    padding: 30px;
}

.auth-form .form-group {
    margin-bottom: 20px;
}

.auth-form .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.auth-form .form-group label i {
    margin-right: 8px;
    color: #667eea;
}

.auth-form .form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.auth-form .form-control:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.auth-form-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.auth-form .form-check {
    display: flex;
    align-items: center;
    gap: 8px;
}

.auth-form .form-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #667eea;
}

.auth-form .form-link a {
    color: #667eea;
    text-decoration: none;
    font-size: 0.9rem;
}

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

.auth-form .btn-block {
    width: 100%;
    padding: 14px;
    font-size: 1rem;
    font-weight: 600;
}

.auth-footer {
    padding: 20px 30px 30px;
    text-align: center;
    border-top: 1px solid #eee;
    background: #f8f9fa;
}

.auth-footer p {
    margin: 0 0 8px 0;
    color: #666;
}

.auth-footer a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

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

.auth-footer .auth-note {
    font-size: 0.85rem;
    color: #999;
    margin-top: 10px;
}

/* ============================================================================
   POLICY ACCEPTANCE PAGE
   ============================================================================ */

.policy-acceptance-container {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
}

.policy-acceptance-box {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 600px;
    overflow: hidden;
}

.policy-acceptance-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px 30px;
    text-align: center;
}

.policy-acceptance-header i {
    font-size: 3.5rem;
    margin-bottom: 20px;
    display: block;
    color: #ffc107;
}

.policy-acceptance-header h1 {
    margin: 0 0 15px 0;
    font-size: 1.75rem;
    color: white;
}

.policy-acceptance-header p {
    margin: 0;
    opacity: 0.95;
    font-size: 1rem;
    line-height: 1.6;
}

.policy-acceptance-form {
    padding: 30px;
}

.policy-card {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    margin-bottom: 20px;
    overflow: hidden;
}

.policy-card-header {
    background: white;
    padding: 15px 20px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.policy-card-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

.policy-card-header h3 i {
    color: #667eea;
}

.policy-card-header .version-badge {
    background: #667eea;
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

.policy-content {
    padding: 20px;
    max-height: 200px;
    overflow-y: auto;
    font-size: 0.9rem;
    line-height: 1.7;
    color: #555;
}

.policy-content::-webkit-scrollbar {
    width: 6px;
}

.policy-content::-webkit-scrollbar-track {
    background: #f0f0f0;
}

.policy-content::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.policy-acceptance-checkbox {
    background: #e3f2fd;
    border: 1px solid #90caf9;
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.policy-acceptance-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    accent-color: #667eea;
}

.policy-acceptance-checkbox label {
    flex: 1;
    color: #1565c0;
    font-size: 0.95rem;
    line-height: 1.5;
    cursor: pointer;
}

.policy-acceptance-actions {
    text-align: center;
}

.policy-acceptance-actions .btn-block {
    width: 100%;
    padding: 16px;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.alternative-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.alternative-actions .btn-link {
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.alternative-actions .btn-link:hover {
    color: #667eea;
}

.policy-info {
    padding: 20px 30px 30px;
    background: #f8f9fa;
    border-top: 1px solid #eee;
}

.policy-info p {
    margin: 0 0 10px 0;
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
}

.policy-info p:last-child {
    margin-bottom: 0;
}

.policy-info strong {
    color: #333;
}

/* Mobile responsive for auth pages */
@media (max-width: 480px) {
    .auth-container,
    .policy-acceptance-container {
        padding: 20px 15px;
    }
    
    .auth-header,
    .policy-acceptance-header {
        padding: 30px 20px;
    }
    
    .auth-header i,
    .policy-acceptance-header i {
        font-size: 2.5rem;
    }
    
    .auth-form,
    .policy-acceptance-form {
        padding: 20px;
    }
    
    .auth-footer,
    .policy-info {
        padding: 15px 20px 20px;
    }
    
    .auth-form-row {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ============================================================================
   8. CARDS
   ============================================================================ */

.card {
    background: var(--color-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: box-shadow var(--transition-base);
}

.card:hover {
    box-shadow: var(--shadow-card-hover);
}

.card-header {
    background: var(--color-primary-gradient);
    color: var(--color-white);
    padding: var(--space-4);
}

.card-header h1,
.card-header h2,
.card-header h3 {
    margin: 0;
    font-size: var(--font-size-lg);
    color: var(--color-white);
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: var(--font-weight-semibold);
}

.card-header h2 i {
    color: var(--color-white);
    font-size: 1.3rem;
}

.card-body {
    padding: var(--space-4);
}

.card-body ul, 
.card-body ol {
    margin-top: 1rem;
    margin-bottom: 1.5rem;
}

.card-footer {
    padding: var(--space-3) var(--space-4);
    background: var(--color-gray-50);
    border-top: 1px solid var(--color-gray-250);
}

.dashboard-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin-bottom: var(--space-6);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.dashboard-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.dashboard-card .card-header {
    background: var(--color-primary-gradient);
    color: var(--color-white);
    padding: var(--space-4) var(--space-5);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dashboard-card .card-header h2 {
    margin: 0;
    font-size: 18px;
    font-weight: var(--font-weight-semibold);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.info-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: var(--space-6);
    overflow: hidden;
}

.info-card .card-header {
    background: var(--color-primary-gradient);
    color: var(--color-white);
    padding: var(--space-4) var(--space-5);
}

.info-card .card-header h2 {
    margin: 0;
    font-size: var(--font-size-md);
    font-weight: var(--font-weight-semibold);
    display: flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--color-white);
}

.alert-card {
    border-left: 4px solid var(--color-primary);
}

.alert-card .card-header {
    background: linear-gradient(135deg, #f8f9ff 0%, #f3f0ff 100%);
    color: var(--color-gray-700);
    border-bottom: 2px solid var(--color-primary);
}

.alert-card .card-header h2 {
    color: var(--color-primary);
}

/* ============================================================================
   9. FORMS
   ============================================================================ */

.form-group {
    margin-bottom: var(--space-4);
}

.form-group label {
    display: block;
    margin-bottom: var(--space-1);
    font-weight: var(--font-weight-medium);
    color: var(--color-gray-700);
}

.form-group .required {
    color: var(--color-danger);
}

.form-control {
    width: 100%;
    padding: var(--space-2) var(--space-3);
    border: 1px solid var(--color-gray-300);
    border-radius: var(--radius-sm);
    font-size: var(--font-size-base);
    transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.form-control:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(102,126,234,0.1);
}

.form-control.error {
    border-color: var(--color-danger);
}

.form-text {
    display: block;
    margin-top: var(--space-1);
    font-size: var(--font-size-sm);
    color: var(--color-gray-500);
}

.form-text.error {
    color: var(--color-danger);
}

.form-hint {
    display: block;
    margin-top: var(--space-1);
    color: var(--color-gray-500);
    font-size: var(--font-size-sm);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23333' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right var(--space-3) center;
    padding-right: var(--space-8);
}

/* Form Select - Alternative class for select dropdowns */
.form-select {
    width: 100%;
    padding: 10px 40px 10px 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.95rem;
    background-color: white;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23333' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-select:hover {
    border-color: #bbb;
}

.form-check {
    display: flex;
    align-items: flex-start;
    gap: var(--space-2);
    margin-bottom: var(--space-2);
}

.form-check input {
    margin-top: 4px;
}

.form-check label {
    margin: 0;
    font-weight: var(--font-weight-normal);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-4);
    margin-bottom: var(--space-4);
}

.input-group {
    display: flex;
}

.input-group input {
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0 !important;
}

.input-group-text {
    display: flex;
    align-items: center;
    padding: var(--space-2) var(--space-3);
    background: var(--color-gray-50);
    border: 1px solid var(--color-gray-300);
    border-right: none;
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
    color: var(--color-gray-500);
}

/* ============================================================================
   10. ALERTS
   ============================================================================ */

.alert {
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-sm);
    margin-bottom: var(--space-4);
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: var(--space-2);
}

.alert > div {
    flex: 1;
    min-width: 0;
}

.alert i:first-child {
    font-size: 1.3rem;
    margin-top: 2px;
    flex-shrink: 0;
}

/* Force lists to their own row */
.alert ul,
.alert ol {
    flex-basis: 100%;
    margin: var(--space-2) 0 0 0;
    padding-left: 22px;
}

.alert ul li,
.alert ol li {
    margin-bottom: 6px;
    line-height: var(--line-height-base);
}

.alert-success {
    background: var(--color-success-light);
    color: var(--color-success-dark);
    border-left: 4px solid var(--color-success);
}

.alert-success i { color: var(--color-success); }

.alert-warning {
    background: var(--color-warning-light);
    color: var(--color-warning-dark);
    border-left: 4px solid var(--color-warning);
}

.alert-warning i { color: var(--color-warning); }

.alert-danger {
    background: var(--color-danger-light);
    color: var(--color-danger-dark);
    border-left: 4px solid var(--color-danger);
}

.alert-danger i { color: var(--color-danger); }

.alert-info {
    background: var(--color-info-light);
    color: var(--color-info-dark);
    border-left: 4px solid var(--color-info);
}

.alert-info i { color: var(--color-info); }

.alert-info a {
    color: var(--color-info-dark);
    font-weight: var(--font-weight-semibold);
}

.alert-info a:hover {
    text-decoration: underline;
}

.alert.alert-info .btn.btn-sm.btn-info,
.alert.alert-warning .btn.btn-sm.btn-warning {
    margin-left: auto;
    background: var(--color-primary-gradient);
    color: var(--color-white);
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: var(--font-weight-semibold);
    font-size: var(--font-size-sm);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: var(--shadow-primary);
}

.alert.alert-info .btn.btn-sm.btn-info i,
.alert.alert-warning .btn.btn-sm.btn-warning i {
    color: var(--color-white) !important;
}

.alert.alert-info .btn.btn-sm.btn-info:hover,
.alert.alert-warning .btn.btn-sm.btn-warning:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* ============================================================================
   11. TABLES
   ============================================================================ */

.table-responsive {
    overflow-x: auto;
}

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

.table th,
.table td {
    padding: 12px var(--space-3);
    text-align: left;
    border-bottom: 1px solid var(--color-gray-250);
}

.table th {
    background: var(--color-gray-50);
    font-weight: var(--font-weight-semibold);
    color: var(--color-gray-700);
}

.table tbody tr:hover {
    background: var(--color-gray-50);
}

.table .actions {
    white-space: nowrap;
}

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

.data-table thead {
    background: var(--color-primary-gradient);
    color: var(--color-white);
}

.data-table th,
.data-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--color-gray-200);
}

.data-table th {
    font-weight: var(--font-weight-semibold);
    text-transform: uppercase;
    font-size: var(--font-size-sm);
    letter-spacing: 0.5px;
}

.data-table tbody tr:hover {
    background-color: var(--color-gray-50);
}

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

/* ============================================================================
   12. BADGES
   ============================================================================ */

.badge {
    display: inline-block;
    padding: 4px var(--space-2);
    border-radius: var(--radius-xl);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-semibold);
    text-transform: uppercase;
}

.badge-success { background: var(--color-success-light); color: var(--color-success-dark); }
.badge-warning { background: var(--color-warning-light); color: var(--color-warning-dark); }
.badge-danger { background: var(--color-danger-light); color: var(--color-danger-dark); }
.badge-info { background: var(--color-info-light); color: var(--color-info-dark); }
.badge-secondary { background: var(--color-gray-100); color: var(--color-gray-500); }
.badge-primary { background: #e8eaf6; color: #3949ab; }

/* ============================================================================
   13. DASHBOARD COMPONENTS
   ============================================================================ */

.dashboard-header {
    background: var(--color-primary-gradient);
    color: var(--color-white);
    padding: var(--space-8) var(--space-6);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-6);
    box-shadow: var(--shadow-primary-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-4);
}

.dashboard-header h1 {
    margin: 0 0 var(--space-2) 0;
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-semibold);
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--color-white);
}

.dashboard-header p {
    margin: 0;
    opacity: 0.95;
    font-size: 16px;
    color: var(--color-white);
}

.dashboard-actions .btn-primary {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid var(--color-white);
    color: var(--color-white);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-md);
    font-weight: var(--font-weight-semibold);
    transition: all var(--transition-base);
}

.dashboard-actions .btn-primary:hover {
    background: var(--color-white);
    color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-4);
    margin-bottom: var(--space-6);
}

.stats-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4);
    margin-bottom: var(--space-6);
}

.stat-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    position: relative;
    overflow: hidden;
    transition: all var(--transition-base);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--color-primary);
}

.stat-card.stat-primary::before { background: var(--color-primary); }
.stat-card.stat-success::before { background: var(--color-success); }
.stat-card.stat-info::before { background: var(--color-info); }
.stat-card.stat-warning::before { background: var(--color-warning); }
.stat-card.stat-danger::before { background: var(--color-danger); }

.stat-icon {
    font-size: var(--font-size-3xl);
    color: var(--color-white);
    opacity: 0.3;
    position: absolute;
    right: var(--space-4);
    top: var(--space-4);
}

.stat-card .stat-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--space-2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.stat-card.stat-primary .stat-icon { background: linear-gradient(135deg, var(--color-info-light) 0%, #bbdefb 100%); color: #1976d2; }
.stat-card.stat-success .stat-icon { background: linear-gradient(135deg, var(--color-success-light) 0%, #c8e6c9 100%); color: #388e3c; }
.stat-card.stat-info .stat-icon { background: linear-gradient(135deg, #e1f5fe 0%, #b3e5fc 100%); color: #0288d1; }
.stat-card.stat-warning .stat-icon { background: linear-gradient(135deg, var(--color-warning) 0%, var(--color-warning-hover) 100%); color: var(--color-white); }
.stat-card.stat-danger .stat-icon { background: linear-gradient(135deg, var(--color-danger) 0%, #d32f2f 100%); color: var(--color-white); }

.stat-content { position: relative; z-index: 1; }
.stat-content h3 { font-size: 1.4rem; margin: 0; color: var(--color-gray-700); }
.stat-content p { margin: 0; color: var(--color-gray-500); font-size: 0.9rem; }

.stat-footer {
    display: flex;
    justify-content: space-between;
    font-size: var(--font-size-sm);
    color: var(--color-gray-400);
    border-top: 1px solid var(--color-gray-150);
    padding-top: var(--space-2);
}

.stat-link {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    font-size: var(--font-size-sm);
    color: var(--color-primary);
}

.stat-link:hover { color: var(--color-primary-hover); }

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: var(--space-4);
    margin-bottom: var(--space-6);
}

.quick-actions {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: var(--space-3);
    padding: var(--space-4);
    background: var(--color-white);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-6);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.quick-actions h2 {
    grid-column: 1 / -1;
    margin: 0 0 var(--space-2) 0;
    font-size: var(--font-size-lg);
    color: var(--color-gray-700);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.quick-actions h2 i { color: var(--color-primary); }

.quick-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-4) var(--space-3);
    background: var(--color-gray-50);
    border-radius: var(--space-2);
    text-decoration: none;
    color: var(--color-gray-700);
    transition: all var(--transition-base);
    text-align: center;
    position: relative;
    min-height: 90px;
    border: 2px solid transparent;
}

.quick-action-btn:hover {
    background: var(--color-primary-gradient);
    color: var(--color-white);
    transform: translateY(-3px);
    box-shadow: var(--shadow-primary);
}

.quick-action-btn i {
    font-size: var(--font-size-xl);
    margin-bottom: 8px;
    color: var(--color-primary);
}

.quick-action-btn:hover i { color: var(--color-white); }
.quick-action-btn span { font-size: var(--font-size-sm); font-weight: var(--font-weight-medium); line-height: 1.3; }
.quick-action-btn .badge { position: absolute; top: var(--space-2); right: var(--space-2); font-size: 0.7rem; padding: 3px 8px; }

.empty-state { text-align: center; padding: var(--space-8) var(--space-4); color: var(--color-gray-400); }
.empty-state i { font-size: 4rem; color: var(--color-gray-300); margin-bottom: var(--space-3); }
.empty-state p { margin: var(--space-3) 0; font-size: var(--font-size-md); }

.empty-state-large { text-align: center; padding: var(--space-12) var(--space-4); background: var(--color-white); border-radius: var(--radius-md); margin: var(--space-4) 0; }
.empty-state-large i { font-size: 5rem; color: var(--color-gray-300); margin-bottom: var(--space-4); }
.empty-state-large h2 { margin: var(--space-4) 0 var(--space-2) 0; color: var(--color-gray-700); }
.empty-state-large p { margin: var(--space-2) 0; color: var(--color-gray-500); }

.empty-state-card { background: var(--color-white); border-radius: var(--radius-lg); padding: var(--space-10) var(--space-8); text-align: center; box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.empty-state-card .empty-state-icon { width: 100px; height: 100px; border-radius: var(--radius-full); background: var(--color-primary-gradient); color: var(--color-white); display: flex; align-items: center; justify-content: center; font-size: 3rem; margin: 0 auto var(--space-5); }
.empty-state-card h2 { margin: 0 0 var(--space-3) 0; color: var(--color-gray-700); font-size: var(--font-size-xl); }
.empty-state-card p { color: var(--color-gray-500); margin-bottom: var(--space-2); }
.empty-state-card .btn { margin-top: var(--space-4); }

.list-container { max-height: 500px; overflow-y: auto; padding: var(--space-2) var(--space-4); }
.list-item { display: flex; gap: var(--space-3); padding: var(--space-3); border-bottom: 1px solid var(--color-gray-150); align-items: center; }
.list-item:last-child { border-bottom: none; }
.list-item:hover { background: var(--color-gray-50); }
.list-item-icon { font-size: 2rem; color: var(--color-white); }
.list-item-content { flex: 1; }
.list-item-content h3 { margin: 0 0 var(--space-1) 0; font-size: var(--font-size-base); color: var(--color-gray-700); }
.list-item-content p { margin: 0 0 8px 0; color: var(--color-gray-500); font-size: 0.9rem; }
.list-item-actions { display: flex; gap: var(--space-1); }

.notifications-list { max-height: 400px; overflow-y: auto; padding: 0; }
.notification-item { display: flex; gap: var(--space-4); padding: var(--space-4) var(--space-5); border-bottom: 1px solid var(--color-gray-150); transition: background-color 0.2s ease; }
.notification-item:last-child { border-bottom: none; }
.notification-item:hover { background-color: var(--color-gray-50); }
.notification-icon { width: 50px; height: 50px; border-radius: var(--space-2); background: var(--color-primary-gradient); color: var(--color-white); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0; }
.notification-content h4 { margin: 0 0 8px 0; color: var(--color-gray-700); font-size: var(--font-size-base); }
.notification-content p { margin: 0 0 12px 0; color: var(--color-gray-500); font-size: 0.9rem; }
.notification-content small { color: var(--color-gray-400); }

.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--space-4); }
.info-item label { display: block; font-weight: var(--font-weight-semibold); color: var(--color-primary); margin-bottom: var(--space-1); font-size: var(--font-size-sm); }
.info-item span { color: var(--color-gray-700); font-size: var(--font-size-base); }
.rent-amount { font-size: 1.2rem !important; font-weight: var(--font-weight-bold) !important; color: var(--color-primary) !important; }

.property-info { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6); padding: var(--space-4); }
.property-address h3 { margin: 0 0 var(--space-2) 0; color: var(--color-gray-700); }
.property-address p { margin: var(--space-1) 0; color: var(--color-gray-500); }

.landlord-info { display: flex; gap: var(--space-4); align-items: center; padding: var(--space-5); }
.landlord-info h4, .landlord-info h3 { margin: 0 0 var(--space-2) 0; color: var(--color-gray-700); }
.landlord-info p { margin: var(--space-1) 0; color: var(--color-gray-500); }
.landlord-info i { margin-right: 8px; color: var(--color-primary); width: var(--space-4); }
.landlord-avatar { width: 80px; height: 80px; border-radius: var(--radius-full); background: var(--color-primary-gradient); color: var(--color-white); display: flex; align-items: center; justify-content: center; font-size: 2rem; font-weight: var(--font-weight-bold); flex-shrink: 0; }

.tenancy-meta { display: flex; gap: var(--space-2); flex-wrap: wrap; font-size: var(--font-size-sm); color: var(--color-gray-500); }

.breadcrumb { display: flex; align-items: center; gap: var(--space-2); margin-bottom: var(--space-4); padding: 12px 0; font-size: 0.9rem; }
.breadcrumb a { color: var(--color-primary); }
.breadcrumb a:hover { color: var(--color-primary-dark); }
.breadcrumb .fa-chevron-right { font-size: 0.7rem; color: var(--color-gray-400); }
.breadcrumb span { color: var(--color-gray-500); }

/* ============================================================================
   14. MODALS
   ============================================================================ */

.custom-modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: var(--z-modal); align-items: center; justify-content: center; }
.custom-modal.show { display: flex; }
.modal-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.5); }
.modal-container { position: relative; background: var(--color-white); border-radius: var(--radius-lg); max-width: 600px; width: 90%; max-height: 90vh; overflow-y: auto; box-shadow: var(--shadow-xl); animation: modalSlideIn var(--transition-base); }

@keyframes modalSlideIn {
    from { opacity: 0; transform: translateY(-50px); }
    to { opacity: 1; transform: translateY(0); }
}

.modal-header-custom { background: var(--color-primary-gradient); color: var(--color-white); padding: var(--space-4); border-radius: var(--radius-lg) var(--radius-lg) 0 0; display: flex; justify-content: space-between; align-items: center; }
.modal-header-custom h3, .modal-header h2 { margin: 0; font-size: 1.3rem; color: var(--color-white); }
.modal-close-btn { background: none; border: none; color: var(--color-white); font-size: 2rem; cursor: pointer; padding: 0; width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; border-radius: var(--radius-full); transition: background var(--transition-base); }
.modal-close-btn:hover { background: rgba(255, 255, 255, 0.2); }
.modal-body-custom { padding: var(--space-5); }
.modal-footer-custom { padding: var(--space-4) var(--space-5); border-top: 1px solid var(--color-gray-200); display: flex; justify-content: flex-end; gap: var(--space-2); }

/* ============================================================================
   15. UTILITIES
   ============================================================================ */

.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }
.text-muted { color: var(--color-gray-500); }
.text-success { color: var(--color-success); }

.mt-1 { margin-top: var(--space-2); }
.mt-2 { margin-top: var(--space-4); }
.mt-3 { margin-top: var(--space-6); }
.mb-1 { margin-bottom: var(--space-2); }
.mb-2 { margin-bottom: var(--space-4); }
.mb-3 { margin-bottom: var(--space-6); }
.p-1 { padding: var(--space-2); }
.p-2 { padding: var(--space-4); }
.p-3 { padding: var(--space-6); }

.d-flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.align-items-center { align-items: center; }
.justify-content-between { justify-content: space-between; }
.gap-1 { gap: var(--space-2); }
.gap-2 { gap: var(--space-4); }

.results-summary { text-align: center; color: var(--color-gray-500); padding: var(--space-4); }
.results-summary p { margin: 0; }

/* ============================================================================
   16. PAGE-SPECIFIC STYLES
   ============================================================================ */

.cookie-banner { position: fixed; bottom: 0; left: 0; right: 0; background: var(--color-white); box-shadow: 0 -2px 10px rgba(0,0,0,0.2); padding: var(--space-4); z-index: var(--z-toast); }
.cookie-content { max-width: var(--container-max); margin: 0 auto; display: flex; align-items: center; gap: var(--space-4); }
.cookie-content i { font-size: 2rem; color: var(--color-warning); }
.cookie-text { flex: 1; }
.cookie-text strong { display: block; margin-bottom: var(--space-1); }
.cookie-text p { margin: 0; font-size: 0.9rem; color: var(--color-gray-500); }
.cookie-actions { display: flex; gap: var(--space-2); }

.stage-banner { display: flex; gap: var(--space-4); padding: var(--space-6); background: var(--color-primary-gradient); color: var(--color-white); border-radius: var(--radius-lg); margin-bottom: var(--space-6); box-shadow: var(--shadow-primary); }
.stage-banner .banner-icon { font-size: 4rem; opacity: 0.9; }
.stage-banner .banner-content h2 { margin: 0 0 var(--space-2) 0; font-size: var(--font-size-xl); color: var(--color-white); }
.stage-banner .banner-content p { margin: 0; opacity: 0.95; color: var(--color-white); }

.pets-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); gap: var(--space-4); margin-bottom: var(--space-6); }
.pet-card { background: var(--color-white); border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.08); transition: transform var(--transition-base), box-shadow var(--transition-base); border-left: 4px solid var(--color-gray-300); }
.pet-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.pet-card.status-pending { border-left-color: var(--color-warning); }
.pet-card.status-approved { border-left-color: var(--color-success); }
.pet-card.status-rejected { border-left-color: var(--color-danger); }
.pet-card-header { display: flex; justify-content: space-between; align-items: center; padding: var(--space-4); background: var(--color-gray-50); }
.pet-card-header .pet-icon { font-size: var(--font-size-3xl); color: var(--color-primary); }
.pet-card-body { padding: var(--space-4); }
.pet-card-body h3 { margin: 0 0 var(--space-1) 0; color: var(--color-gray-700); font-size: 1.3rem; }
.pet-type-label { margin: 0 0 var(--space-3) 0; color: var(--color-gray-500); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.5px; }
.pet-details-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: var(--space-3); }
.pet-detail-row { display: flex; align-items: center; gap: var(--space-2); color: var(--color-gray-500); font-size: 0.9rem; }
.pet-status-message { margin-top: var(--space-3); padding: var(--space-2); border-radius: var(--radius-sm); }
.pet-status-message.pending { color: var(--color-warning); }
.pet-status-message.approved { color: var(--color-success); }
.pet-status-message.rejected { color: var(--color-danger); }

.period-paid { background: var(--color-success-light); border-left: 4px solid var(--color-success); }
.period-current { background: var(--color-warning-light); border-left: 4px solid var(--color-warning); }
.period-overdue { background: var(--color-danger-light); border-left: 4px solid var(--color-danger); }
.period-partial { background: var(--color-info-light); border-left: 4px solid var(--color-info); }

.policy-banner { background: var(--color-warning-light); border: 1px solid var(--color-warning); border-radius: var(--radius-md); padding: var(--space-3) var(--space-4); margin-bottom: var(--space-4); }
.policy-banner .banner-content { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); }

/* ============================================================================
   17. RESPONSIVE STYLES
   ============================================================================ */

@media (max-width: 992px) {
    .quick-actions { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .mobile-menu-toggle { display: block; order: 2; }
    .header-content { flex-wrap: wrap; position: relative; }
    .logo { order: 1; }
    .user-menu { order: 3; }
    .user-btn span { display: none; }
    .user-btn { padding: 8px var(--space-2); }
    
    .main-nav { display: none; position: fixed; top: 0; left: 0; width: 280px; height: 100vh; background: var(--color-white); box-shadow: 2px 0 10px rgba(0,0,0,0.2); z-index: var(--z-nav-mobile); overflow-y: auto; padding-top: var(--space-10); transform: translateX(-100%); transition: transform var(--transition-base); }
    .main-nav.mobile-open { display: block; transform: translateX(0); }
    .mobile-menu-close { display: block; }
    .main-nav ul { flex-direction: column; width: 100%; padding: 0; margin: 0; }
    .main-nav li { border-bottom: 1px solid var(--color-gray-150); margin: 0; }
    .main-nav a { width: 100%; padding: var(--space-3) var(--space-4); border-radius: 0; }
    .main-nav a:hover, .main-nav a.active { background: var(--color-primary-gradient); color: var(--color-white); }
    .dropdown { position: static; box-shadow: none; background: var(--color-gray-50); margin: 0; border-radius: 0; }
    .dropdown a { padding-left: var(--space-8); }
    
    .footer-content { grid-template-columns: 1fr; }
    .cookie-content { flex-direction: column; text-align: center; }
    .cookie-actions { flex-direction: column; width: 100%; }
    .cookie-actions .btn { width: 100%; }
    .dashboard-header { flex-direction: column; align-items: flex-start; gap: var(--space-3); }
    .dashboard-actions { width: 100%; flex-direction: column; }
    .dashboard-actions .btn { width: 100%; }
    .stats-grid, .stats-grid-3 { grid-template-columns: 1fr; }
    .dashboard-grid { grid-template-columns: 1fr; }
    .property-info { grid-template-columns: 1fr; }
    .quick-actions { grid-template-columns: repeat(2, 1fr); }
    .pets-grid { grid-template-columns: 1fr; }
    .policy-banner .banner-content { flex-direction: column; align-items: flex-start; gap: 12px; }
    .policy-banner .btn { width: 100%; text-align: center; }
    .notification-item { flex-direction: column; gap: var(--space-3); }
    .modal-container { width: 95%; }
}

@media (max-width: 600px) {
    .quick-actions { grid-template-columns: repeat(2, 1fr); gap: var(--space-2); padding: var(--space-3); }
    .quick-action-btn { padding: var(--space-3) var(--space-2); min-height: 80px; }
    .quick-action-btn i { font-size: 1.3rem; }
    .quick-action-btn span { font-size: 0.8rem; }
}

@media (max-width: 480px) {
    .logo span { display: none; }
    .logo i { font-size: 1.8rem; }
    .container { padding: 0 var(--space-3); }
    .dashboard-header { padding: var(--space-5) var(--space-4); }
    .dashboard-header h1 { font-size: 24px; justify-content: center; }
    .stage-banner { flex-direction: column; text-align: center; }
}

@media print {
    .main-header, .main-footer, .mobile-menu-toggle, .cookie-banner, .btn, .quick-actions { display: none !important; }
    body { background: var(--color-white); }
    .card { box-shadow: none; border: 1px solid var(--color-gray-300); }
}

/**
 * Rent Management Hub - Consolidated CSS Additions
 * Version: 1.0.0
 * Date: 2025-12-02
 * 
 * CONSOLIDATED FROM:
 * - css_additions_session6.css (Index, Inventory, Notice Detail)
 * - css_additions_session7.css (Payment Reconciliation, Profile)
 * - css_additions_session8.css (Rent Increase Pages)
 * - css_additions_session9.css (Tenancies, RTR, Audit Trail, Cancel, Send Docs)
 * - css_additions_session10.css (Checkout, Detail, Pre-tenancy, Screening)
 * - css_additions_session11.css (Tenant Notice, Tenancy Wizard)
 * - billing_css_additions.css
 * - deposit_document_css_additions.css
 * - stat_icon_css_additions.css
 * 
 * DUPLICATES REMOVED - Append this to style.css
 */

/* ============================================================================
   UTILITY CLASSES (Consolidated from all sessions)
   ============================================================================ */

/* Margin Utilities */
.mb-0 { margin-bottom: 0; }
.mb-5 { margin-bottom: 5px; }
.mb-8 { margin-bottom: 8px; }
.mb-10 { margin-bottom: 10px; }
.mb-15 { margin-bottom: 15px; }
.mb-20 { margin-bottom: 20px; }
.mb-25 { margin-bottom: 25px; }
.mb-30 { margin-bottom: 30px; }

.mt-5 { margin-top: 5px; }
.mt-10 { margin-top: 10px; }
.mt-15 { margin-top: 15px; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }

.ml-5 { margin-left: 5px; }
.ml-10 { margin-left: 10px; }

.pt-15 { padding-top: 15px; }
.p-0 { padding: 0; }

/* Text Utilities */
.text-primary { color: var(--color-primary); }
.text-danger { color: var(--color-danger); }
.text-warning { color: var(--color-warning); }
.text-info { color: var(--color-info); }
.text-light-muted { color: #999; }
.text-dark { color: #333; }
.text-white { color: white; }
.text-sm { font-size: var(--font-size-sm); }
.text-italic { font-style: italic; }

/* Font Weight */
.font-600, .fw-600 { font-weight: 600; }
.font-700, .fw-bold { font-weight: 700; }

/* Display Utilities */
.d-inline { display: inline; }
.js-hidden { display: none; }
.hidden-input { display: none; }

/* Flex Utilities */
.flex-1 { flex: 1; }

/* Border Utilities */
.border-top { border-top: 1px solid var(--color-gray-200); }

/* Width Utilities */
.full-width { grid-column: 1 / -1; }

/* ============================================================================
   CARD ACCENT BORDERS
   ============================================================================ */

.card-accent-purple { border-left: 4px solid #667eea; }
.card-accent-green { border-left: 4px solid #4caf50; }
.card-accent-red { border-left: 4px solid #f44336; }
.card-accent-blue { border-left: 4px solid #2196f3; }
.card-accent-orange { border-left: 4px solid #ff9800; }

/* Card padding utility - use when card content needs padding without .card-body wrapper */
.card-padded { padding: var(--space-4); }

/* ============================================================================
   CARD HEADER GRADIENTS
   ============================================================================ */

.card-header-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem 1.25rem;
    border: none;
}

.card-header-gradient h2,
.card-header-gradient h3 {
    margin: 0;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
}

.card-header-gradient-purple {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    margin: -20px -20px 20px -20px;
    padding: 20px;
    border-radius: 8px 8px 0 0;
}

.card-header-gradient-green {
    background: linear-gradient(135deg, #56ab2f 0%, #a8e063 100%);
    color: white;
    margin: -20px -20px 20px -20px;
    padding: 20px;
    border-radius: 8px 8px 0 0;
}

.card-header-gradient-purple h2,
.card-header-gradient-purple h3,
.card-header-gradient-green h2,
.card-header-gradient-green h3 {
    color: white;
    margin: 0;
    font-size: 1.2rem;
}

.card-header-danger {
    background: linear-gradient(135deg, var(--color-danger), #e91e63);
    color: var(--color-white);
}

.card-header-danger h2 { color: var(--color-white); margin: 0; }

.card-header-warning {
    background: linear-gradient(135deg, var(--color-warning), #ff5722);
    color: var(--color-white);
}

.card-header-warning h2 { color: var(--color-white); margin: 0; }

.card-header-success {
    background: linear-gradient(135deg, var(--color-success), #00897b);
    color: var(--color-white);
}

.card-header-success h2 { color: var(--color-white); margin: 0; }

.card-header-info {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
    color: white;
    padding: 20px;
    border: none;
    border-radius: 8px 8px 0 0;
}

/* Card Header Titles */
.card-header-title {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    color: white;
}

.card-header-title-sm {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
    color: white;
}

.card-section-title {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
}

.card-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* Card Body Sizes */
.card-body-lg { padding: 30px; }
.card-body-md { padding: 25px; }
.card-body-no-padding { padding: 0; }

/* Card Footer */
.card-footer-centered { text-align: center; }

/* ============================================================================
   PAGE HEADERS
   ============================================================================ */

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.page-header-content h1 {
    margin: 0 0 0.5rem 0;
    font-size: 1.75rem;
    color: #333;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.page-header-content h1 i { color: #667eea; }
.page-header-content p { margin: 0; color: #666; }

.page-header-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px 30px;
    border-radius: 12px;
    margin-bottom: 30px;
}

.page-header-hero h1 {
    margin: 0 0 10px 0;
    font-size: 32px;
    color: white;
}

.page-header-hero p { margin: 0; opacity: 0.9; }

.page-header-gradient-danger {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    padding: 1.5rem 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.page-header-gradient-danger h1 {
    margin: 0 0 0.5rem 0;
    font-size: 1.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: white;
}

.page-header-gradient-danger p { margin: 0; opacity: 0.9; }

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

.dashboard-header.enhanced {
    background: var(--color-primary-gradient);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    margin-bottom: var(--space-6);
    box-shadow: var(--shadow-primary);
    color: var(--color-white);
    position: relative;
    overflow: hidden;
}

.dashboard-header.enhanced::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-full);
    pointer-events: none;
}

.dashboard-header.enhanced::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-full);
    pointer-events: none;
}

.header-content-wrapper {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    position: relative;
    z-index: 1;
}

.header-icon-badge {
    flex-shrink: 0;
    width: 65px;
    height: 65px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.header-icon-badge i { font-size: 2rem; color: var(--color-white); }
.header-icon-badge.round { border-radius: var(--radius-full); width: 70px; height: 70px; }

.header-text { flex: 1; }

.header-label {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: var(--color-white);
    padding: 5px 14px;
    border-radius: 18px;
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-semibold);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: var(--space-2);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.dashboard-header.enhanced h1 {
    font-size: var(--font-size-2xl);
    margin: 0 0 8px 0;
    font-weight: var(--font-weight-bold);
    color: var(--color-white);
    line-height: var(--line-height-tight);
}

.dashboard-header.enhanced .subtitle {
    font-size: var(--font-size-base);
    opacity: 0.95;
    margin: 0 0 var(--space-3) 0;
    font-weight: var(--font-weight-normal);
    color: var(--color-white);
    line-height: var(--line-height-base);
    max-width: 800px;
}

.header-meta {
    display: flex;
    gap: var(--space-3);
    flex-wrap: wrap;
    margin-top: var(--space-3);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 7px;
    background: rgba(255, 255, 255, 0.15);
    padding: 6px 14px;
    border-radius: var(--radius-md);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.meta-item i { font-size: 0.9rem; opacity: 0.9; }
.meta-item span { color: var(--color-white); }

/* ============================================================================
   INFO BOXES & GRIDS
   ============================================================================ */

.info-box {
    background: var(--color-gray-50);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    text-align: center;
    border: 2px solid var(--color-gray-200);
    transition: all var(--transition-base);
}

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

.info-box.highlight { background: var(--color-primary-gradient); }
.info-box.highlight .info-label,
.info-box.highlight .info-sublabel { color: rgba(255, 255, 255, 0.9); }
.info-box.highlight .info-value { color: var(--color-white); }

.info-label {
    font-size: var(--font-size-sm);
    color: var(--color-gray-500);
    font-weight: var(--font-weight-semibold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: var(--space-2);
}

.info-value {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-gray-700);
    margin-bottom: 5px;
}

.info-value.sm { font-size: 1.3rem; }
.info-value.primary { color: var(--color-primary); font-size: var(--font-size-xl); }
.info-value.danger { color: var(--color-danger); }

.info-sublabel { font-size: 0.9rem; color: var(--color-gray-400); }

.info-item-full { grid-column: 1 / -1; }

.info-link {
    margin-left: 10px;
    font-size: 0.85rem;
    color: var(--color-primary);
    text-decoration: none;
}

.info-link:hover { text-decoration: underline; }

.info-date { margin-left: 5px; color: #666; }

/* ============================================================================
   STAT CARDS (Extended)
   ============================================================================ */

.stats-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin: 0 auto 1.5rem;
    max-width: 1200px;
}

.stat-card-wrapper {
    flex: 1 1 calc(16.666% - 0.5rem);
    min-width: 100px;
    max-width: 180px;
}

.stats-grid-sm {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.stat-card-body { padding: 0.75rem; }

.stat-card-purple {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    gap: 20px;
}

.stat-card-green {
    background: linear-gradient(135deg, #56ab2f 0%, #a8e063 100%);
    color: white;
    display: flex;
    align-items: center;
    gap: 20px;
}

.stat-card-pink {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    display: flex;
    align-items: center;
    gap: 20px;
}

.stat-card-orange {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    color: white;
    display: flex;
    align-items: center;
    gap: 20px;
}

.stat-card-centered {
    text-align: center;
    padding: 20px;
    color: white;
}

.stat-card-centered .stat-value-lg {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.stat-card-centered .stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

.stat-icon-container {
    background: rgba(255,255,255,0.2);
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon-container i { font-size: 1.8rem; }

.stat-card-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    margin-bottom: 5px;
}

.stat-label-light {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.9);
}

/* Stat Icon Color Variants */
.stat-icon.stat-icon-info { background: var(--color-info); }
.stat-icon.stat-icon-warning { background: var(--color-warning); }
.stat-icon.stat-icon-success { background: var(--color-success); }
.stat-icon.stat-icon-danger { background: var(--color-danger); }
.stat-icon.stat-icon-primary { background: var(--color-primary); }
.stat-icon.stat-icon-secondary { background: var(--color-gray-500); }
.stat-icon.stat-icon-superadmin { background: var(--color-role-superadmin); }
.stat-icon.stat-icon-landlord { background: var(--color-role-landlord); }
.stat-icon.stat-icon-tenant { background: var(--color-role-tenant); }

/* ============================================================================
   TIMELINE COMPONENT
   ============================================================================ */

.timeline {
    position: relative;
    padding: 20px 0 20px 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--color-primary-gradient);
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
    padding-left: var(--space-6);
}

.timeline-item:last-child { margin-bottom: 0; }

.timeline-marker {
    position: absolute;
    left: -25px;
    top: 0;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    font-size: var(--font-size-base);
    border: 4px solid var(--color-white);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 1;
}

.timeline-content {
    background: var(--color-white);
    padding: var(--space-4);
    border-radius: var(--radius-lg);
    border: 2px solid var(--color-gray-200);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.timeline-date {
    font-size: var(--font-size-sm);
    color: var(--color-gray-400);
    font-weight: var(--font-weight-semibold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.timeline-content h3 { margin: 0 0 8px 0; font-size: 1.2rem; }
.timeline-content p { margin: 0 0 var(--space-3) 0; color: var(--color-gray-500); }

.timeline-details {
    background: var(--color-gray-50);
    padding: var(--space-3);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--color-primary);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e9ecef;
}

.timeline-body { margin-top: 10px; }

/* Event Type Colors (Audit Trail) */
.event-stage_change .timeline-marker { border-color: #007bff; color: #007bff; }
.event-tenant_added .timeline-marker { border-color: #28a745; color: #28a745; }
.event-document_sent .timeline-marker { border-color: #ffc107; color: #ffc107; }
.event-document_acknowledged .timeline-marker { border-color: #28a745; color: #28a745; }
.event-payment_recorded .timeline-marker { border-color: #28a745; color: #28a745; }
.event-charge_added .timeline-marker { border-color: #dc3545; color: #dc3545; }
.event-rtr_check .timeline-marker { border-color: #6610f2; color: #6610f2; }
.event-reference_check .timeline-marker { border-color: #fd7e14; color: #fd7e14; }

.event-type-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-stage_change { background: #007bff; color: white; }
.badge-tenant_added { background: #28a745; color: white; }
.badge-document_sent { background: #ffc107; color: #000; }
.badge-document_acknowledged { background: #28a745; color: white; }
.badge-payment_recorded { background: #28a745; color: white; }
.badge-charge_added { background: #dc3545; color: white; }
.badge-rtr_check { background: #6610f2; color: white; }
.badge-reference_check { background: #fd7e14; color: white; }

.event-description { font-size: 16px; margin-bottom: 8px; }

.event-notes {
    font-size: 14px;
    padding: 8px;
    background: #f8f9fa;
    border-radius: 4px;
    margin-bottom: 8px;
}

.event-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 13px;
    color: #6c757d;
    margin-top: 10px;
}

/* Notice Timeline (Session 11) */
.notice-timeline {
    position: relative;
    padding-left: 30px;
    margin: 20px 0;
}

.notice-timeline:before {
    content: '';
    position: absolute;
    left: 9px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #dee2e6;
}

.notice-timeline .timeline-item {
    position: relative;
    padding-bottom: 30px;
    padding-left: 15px;
    margin-bottom: 0;
}

.notice-timeline .timeline-item:last-child { padding-bottom: 0; }

.notice-timeline .timeline-marker {
    position: absolute;
    left: -26px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #dee2e6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

.notice-timeline .timeline-item.completed .timeline-marker {
    background: #28a745;
    border-color: #28a745;
    color: #fff;
}

.notice-timeline .timeline-item.pending .timeline-marker {
    background: #ffc107;
    border-color: #ffc107;
    color: #fff;
}

.notice-timeline .timeline-content strong {
    display: block;
    margin-bottom: 5px;
    color: #333;
}

.notice-timeline .timeline-content small { color: #6c757d; }

/* ============================================================================
   STATUS BANNERS
   ============================================================================ */

.status-banner {
    padding: var(--space-6);
    color: var(--color-white);
    margin-bottom: 20px;
}

.status-banner.border-info { border-left: 4px solid #17a2b8; }
.status-banner.border-success { border-left: 4px solid #28a745; }
.status-banner.border-warning { border-left: 4px solid #ff9800; }
.status-banner.border-primary { border-left: 4px solid #667eea; }
.status-banner.border-secondary { border-left: 4px solid #6c757d; }

.status-banner-content {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.status-banner-icon {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.status-banner-icon i { font-size: 2.5rem; }
.status-banner-text { flex: 1; }
.status-banner-text { margin: 5px 0 0 0; font-size: 0.95rem; }

.status-banner-label { font-size: 0.9rem; opacity: 0.9; margin-bottom: 5px; }

.status-banner-title {
    margin: 0 0 var(--space-2) 0;
    color: var(--color-white);
    font-size: var(--font-size-2xl);
}

.status-banner-message { margin: 0; font-size: var(--font-size-md); opacity: 0.95; }

.btn-auto-margin { margin-left: auto; white-space: nowrap; }

/* ============================================================================
   ALERT ENHANCEMENTS
   ============================================================================ */

.alert-flex {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.alert-flex-layout {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.alert-flex-layout > i { font-size: 1.5rem; margin-top: 3px; }
.alert-flex-layout ul { margin: 10px 0 0 0; padding-left: 20px; }

.alert-flex-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.alert-icon-lg { font-size: 2rem; flex-shrink: 0; margin-top: 3px; }
.alert-icon-lg.warning { color: var(--color-danger); }
.alert-icon-lg.info { color: var(--color-info); }
.alert-icon-lg.text-warning { color: #ff9800; }
.alert-icon-lg.text-danger { color: #f44336; }
.alert-icon-lg.text-success { color: #4caf50; }

.alert-text-content { flex: 1; }
.alert-content { flex: 1; }

.alert-title {
    font-size: var(--font-size-md);
    font-weight: var(--font-weight-semibold);
    display: block;
    margin-bottom: 5px;
}

.alert-title-warning { color: #f57c00; }
.alert-title-danger { color: #c62828; }
.alert-title-success { color: #2e7d32; }

.alert-subtitle { margin: 5px 0 0 0; }
.alert-meta { margin: 5px 0 0 0; font-size: 0.9rem; color: var(--color-gray-500); }
.alert-description { margin: 0; color: #666; }
.alert-text { margin: 5px 0 0 0; font-size: 0.9rem; }

.alert-list { margin: 10px 0 0 0; padding-left: 20px; }
.alert-list-sm { margin: 5px 0 0 0; padding-left: 20px; }

.alert-heading-sm { font-size: 1.1rem; margin-bottom: 10px; }

/* Withdrawn Alert */
.alert-withdrawn { border-left: 4px solid #17a2b8; }
.alert-withdrawn .alert-title { margin: 0 0 10px 0; color: #0c5460; }
.alert-withdrawn p { margin: 0 0 10px 0; }

.withdrawn-details-box {
    background: rgba(255,255,255,0.5);
    padding: 10px;
    border-radius: 5px;
    margin-top: 10px;
}

.withdrawn-details-box ul { margin: 5px 0 0 0; padding-left: 20px; }
.withdrawn-status { color: #856404; }
.withdrawn-note { margin: 10px 0 0 0; font-style: italic; color: #0c5460; }

/* Modern Alerts */
.modern-alert {
    border: none;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.modern-alert .alert-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.alert-warning .alert-icon { background: #fef3c7; color: #92400e; }
.alert-info .alert-icon { background: #dbeafe; color: #1e40af; }

.modern-alert .alert-content h5 { margin: 0 0 5px 0; font-size: 1.1rem; font-weight: 600; }
.modern-alert .alert-content p { margin: 0; color: #4b5563; line-height: 1.5; }

/* Alert Box Styled */
.alert-box-styled { margin-bottom: 25px; }

/* ============================================================================
   FORMS (Extended)
   ============================================================================ */

.form-inline-clean { margin: 0; }
.form-inline-delete { display: inline; }
.form-inline-hidden { margin: 0; }

.form-group-modal { margin-bottom: 20px; }
.form-group-mt { margin-top: var(--space-3); }

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e0e0e0;
}

.form-actions-row {
    display: flex;
    gap: var(--space-2);
    flex-wrap: wrap;
}

.form-actions-flex {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 20px;
}

.form-actions-flex-inline {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

.form-actions-right {
    display: flex;
    gap: var(--space-2);
    justify-content: flex-end;
    padding-top: var(--space-4);
    border-top: 1px solid var(--color-gray-200);
}

.form-actions-right.no-border { border-top: none; padding-top: 0; }

.form-confirmation {
    display: flex;
    gap: var(--space-3);
    justify-content: flex-end;
    margin-top: var(--space-4);
}

.form-check-highlight {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 15px;
    background: #e3f2fd;
    border-radius: 6px;
    border-left: 4px solid #2196f3;
}

.form-check-highlight input { margin-top: 4px; }
.form-check-highlight label { cursor: pointer; line-height: 1.6; }
.form-check-title { color: #1565c0; font-weight: 600; }
.form-check-description { font-size: 0.9rem; color: #666; }

/* Checkbox Wrapper */
.checkbox-wrapper {
    padding: 10px;
    border-bottom: 1px solid #eee;
}

.checkbox-wrapper:last-child { border-bottom: none; }
.checkbox-wrapper input[type="checkbox"] { margin-right: 10px; }
.checkbox-wrapper label { display: inline; font-weight: normal; }

/* Checkbox Label Flex */
.checkbox-label-flex {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    cursor: pointer;
}

/* Confirmation Checkbox */
.confirmation-checkbox {
    background: #fff8e1;
    border: 2px solid #ffc107;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 1.5rem;
}

.confirmation-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 10px;
    cursor: pointer;
}

.confirmation-checkbox label {
    font-size: 1rem;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    user-select: none;
}

/* Modern Form */
.modern-form .form-group { margin-bottom: 1.5rem; }

.modern-input {
    width: 100%;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    padding: 12px 15px;
    font-size: 1rem;
    transition: all 0.3s;
    font-family: inherit;
}

.modern-input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    outline: none;
}

/* Form Input (Session 10) */
.form-input {
    padding: 12px;
    width: 100%;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.2s ease;
}

.form-input:focus {
    border-color: var(--color-primary);
    outline: none;
}

/* Field styling */
.field-label {
    font-size: 1rem;
    margin-bottom: 8px;
    display: block;
    font-weight: 600;
}

.field-hint {
    color: #666;
    display: block;
    margin-top: 5px;
    font-size: 0.85rem;
}

.field-flex { flex: 1; min-width: 200px; }

/* Input Addons */
.input-addon {
    background: var(--color-gray-200);
    padding: 8px 12px;
    border: 1px solid var(--color-gray-300);
    border-right: none;
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
    color: var(--color-gray-500);
    font-weight: var(--font-weight-semibold);
    display: flex;
    align-items: center;
}

/* ============================================================================
   BUTTONS (Extended)
   ============================================================================ */

.btn-ml-auto { margin-left: auto; }
.btn-delete-auto { margin-left: auto; }
.btn-generate-report { margin-left: var(--space-2); }
.btn-pill { border-radius: 20px; }
.btn-disabled { opacity: 0.5; cursor: not-allowed; }

.btn-confirm {
    background: linear-gradient(135deg, var(--color-success), #45a049);
}

.btn-confirm:hover {
    background: linear-gradient(135deg, #45a049, #388e3c);
}

.btn-confirm-green {
    background: linear-gradient(135deg, #4caf50, #45a049);
    color: #fff;
    border: none;
}

.btn-confirm-green:hover {
    background: linear-gradient(135deg, #45a049, #3d8b40);
    color: #fff;
}

.btn-full-width {
    width: 100%;
    margin-bottom: var(--space-2);
}

.btn-full-width:last-child { margin-bottom: 0; }

.btn-back {
    width: 100%;
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 8px;
    border: 2px solid #cbd5e0;
    background: white;
    color: #4a5568;
    text-align: center;
    transition: all 0.3s ease;
}

.btn-back:hover {
    background: #f7fafc;
    border-color: #a0aec0;
    color: #2d3748;
    transform: translateY(-1px);
}

.btn-group-sm .btn { padding: 0.25rem 0.5rem; }

/* Quick Action Variants */
.quick-action-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.quick-action-success {
    background: linear-gradient(135deg, #4caf50 0%, #388e3c 100%);
    color: white;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.action-buttons-row {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    padding-top: 20px;
    border-top: 2px solid #f0f0f0;
}

/* Delete Charge Button */
.btn-delete-charge {
    color: var(--color-danger);
    border-color: var(--color-danger);
    padding: 4px 12px;
}

.btn-delete-charge:hover {
    background: var(--color-danger);
    color: white;
}

/* ============================================================================
   TABLES (Extended)
   ============================================================================ */

.table th a { color: inherit; text-decoration: none; }
.table th a:hover { color: var(--color-primary); }

.table-secondary-muted { opacity: 0.6; }

/* Charges Table */
.amount-cell { text-align: right; font-weight: 600; font-size: 1rem; }
.action-cell { text-align: center; }
.amount-charge { color: var(--color-danger); }
.amount-credit { color: var(--color-success); }
.amount-positive { color: var(--color-danger); }
.amount-negative { color: var(--color-success); }
.amount-neutral { color: var(--color-gray-600); }
.amount-original { text-decoration: line-through; color: var(--color-gray-500); font-size: 0.9em; }
.amount-prorated { color: var(--color-primary); }

.charges-total-row {
    border-top: 2px solid var(--color-gray-800);
    background: var(--color-gray-100);
}

.charges-total-row td { padding: var(--space-3); }
.charges-total-label { text-align: right; font-weight: 600; }
.charges-total-amount { text-align: right; font-weight: 700; font-size: 1.1rem; }

/* ============================================================================
   BADGES (Extended)
   ============================================================================ */

.badge-lg {
    font-size: 1rem;
    padding: 8px 15px;
}

.badge-large {
    padding: 6px 12px;
    font-size: 0.9rem;
    border-radius: 6px;
}

.badge-inverted { background: white; color: #4caf50; }
.badge-current { margin-left: var(--space-1); }
.badge-prorated { margin-left: var(--space-1); }
.badge-charge { background: var(--color-danger); color: white; padding: 6px 12px; border-radius: var(--radius-xl); font-size: 0.85rem; }
.badge-credit { background: var(--color-success); color: white; padding: 6px 12px; border-radius: var(--radius-xl); font-size: 0.85rem; }

.status-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    text-transform: capitalize;
    color: white;
}

/* Help badges */
.help-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.85rem;
    color: white;
}

.help-badge-red { background: #f44336; }
.help-badge-blue { background: #2196f3; }
.help-badge-orange { background: #ff9800; }
.help-badge-gray { background: #666; }
.help-badge-purple { background: #9c27b0; }

/* Added badge (Session 11) */
.added-badge {
    display: inline-block;
    background: #e2e8f0;
    color: #64748b;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-left: 8px;
}

/* Lead badge */
.lead-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #f6ad55 0%, #ed8936 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(237, 137, 54, 0.3);
}

.lead-badge i { font-size: 0.9rem; }

/* Saved badge */
.saved-badge {
    margin-left: auto;
    font-size: 0.75rem;
    background: #4caf50;
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
}

.room-saved-badge {
    margin-left: auto;
    font-size: var(--font-size-xs);
    background: var(--color-success);
    color: var(--color-white);
    padding: 2px 8px;
    border-radius: 10px;
}

/* ============================================================================
   MODALS (Extended)
   ============================================================================ */

.modal-vanilla {
    display: none;
    position: fixed;
    z-index: 1050;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
}

.modal-vanilla-dialog {
    position: relative;
    margin: 50px auto;
    max-width: 600px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-4);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    color: var(--color-white);
    background: var(--color-primary-gradient);
}

.modal-header h2 { margin: 0; font-size: 1.3rem; color: var(--color-white); }

.modal-header .close {
    background: none;
    border: none;
    color: var(--color-white);
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    transition: background var(--transition-base);
}

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

.modal-header-styled {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    margin: 0;
    padding: 20px;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header-styled h3 { color: white; margin: 0; font-size: 1.2rem; }

.modal-header-danger { background: linear-gradient(135deg, #f44336 0%, #c62828 100%); }
.modal-header-info { background: linear-gradient(135deg, #2196f3 0%, #1565c0 100%); }
.modal-header-success { background: linear-gradient(135deg, #4caf50 0%, #2e7d32 100%); }
.modal-header-warning { background: linear-gradient(135deg, #ff9800 0%, #e65100 100%); }

.modal-body-styled { padding: 25px; }
.modal-footer-styled { background: #f8f9fa; padding: 15px 25px; border-radius: 0 0 12px 12px; }

/* ============================================================================
   BREADCRUMBS
   ============================================================================ */

.breadcrumb-styled { margin-bottom: var(--space-4); }
.breadcrumb-styled a { color: var(--color-success); }
.breadcrumb-styled a:hover { color: var(--color-success-dark); }
.breadcrumb-styled span { color: var(--color-gray-500); }

.breadcrumb-nav { margin-bottom: 20px; }

.breadcrumb-inline {
    background: transparent;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 8px;
    font-size: 0.9rem;
    list-style: none;
}

.breadcrumb-link { color: var(--color-primary); text-decoration: none; }
.breadcrumb-link:hover { text-decoration: underline; }
.breadcrumb-current { color: #666; }

/* ============================================================================
   HELP SECTIONS
   ============================================================================ */

.help-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

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

.help-section-title { color: #667eea; font-size: 1.1rem; margin-bottom: 15px; }
.help-section-title-margin { color: #667eea; font-size: 1.1rem; margin: 25px 0 15px 0; }
.help-intro-text { margin-bottom: 15px; }
.help-list { line-height: 1.8; color: #555; font-size: 0.9rem; margin: 0 0 20px 0; padding-left: 20px; }
.help-list li { margin-bottom: 5px; }
.help-list-numbered { line-height: 1.8; color: #555; }

.help-table { width: 100%; border-collapse: collapse; }
.help-table-row { border-bottom: 1px solid #e0e0e0; }
.help-table-cell { padding: 12px 8px; }
.help-table-cell-text { padding: 12px 8px; color: #555; }

.help-tip-box {
    background: #e3f2fd;
    border-left: 4px solid #2196f3;
    padding: 15px;
    border-radius: 4px;
    margin-top: 20px;
}

.help-tip-content {
    margin: 0;
    color: #1976d2;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.help-tip-icon { margin-top: 3px; }

.help-warning-box {
    background: #fff3cd;
    border-left: 4px solid #ff9800;
    padding: 15px;
    border-radius: 4px;
    margin-top: 15px;
}

.help-warning-content {
    margin: 0;
    color: #f57c00;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.help-close-section {
    text-align: right;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.help-title { color: #333; margin: 0 0 10px 0; }
.help-text { font-size: 0.9rem; color: #666; margin-bottom: 20px; }
.help-divider { border: none; border-top: 1px solid #e0e0e0; margin: 20px 0; }

.help-content { font-size: 0.9rem; }
.help-content h5 { color: #333; margin-bottom: 15px; font-size: 1.1rem; font-weight: 600; }

.help-content ul.checklist { list-style: none; padding: 0; margin: 10px 0; }

.help-content ul.checklist li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 10px 0;
    color: #666;
}

.help-content ul.checklist i { margin-top: 3px; flex-shrink: 0; }

.help-links { list-style: none; padding: 0; margin: 0; }
.help-links li { margin-bottom: var(--space-2); }
.help-links li:last-child { margin-bottom: 0; }

.help-links a {
    color: var(--color-primary);
    text-decoration: none;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color var(--transition-base);
}

.help-links a:hover { color: var(--color-primary-dark); }
.help-links i { font-size: var(--font-size-xs); }

/* ============================================================================
   TENANCY CARDS & GRIDS
   ============================================================================ */

.tenancy-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}

.tenancy-card {
    border-left: 4px solid #667eea;
    transition: all 0.3s;
    cursor: pointer;
}

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

.tenancy-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.tenancy-card-title { margin: 0 0 5px 0; color: #333; font-size: 1.1rem; }
.tenancy-card-subtitle { margin: 0; color: #666; font-size: 0.9rem; }

.tenancy-card-footer {
    display: flex;
    justify-content: space-between;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
}

.tenancy-card-meta { color: #999; font-size: 0.85rem; }
.tenancy-card-meta strong { display: block; color: #333; font-size: 0.95rem; }
.tenancy-card-meta-right { text-align: right; }
.tenancy-card-meta-right strong { color: #667eea; font-size: 1.1rem; }

/* ============================================================================
   TENANT CARDS & MANAGEMENT (Session 11)
   ============================================================================ */

.tenants-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.tenant-management-card .gradient-header-tenants {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 30px;
}

.tenant-management-card .header-content-tenants {
    display: flex;
    align-items: center;
    gap: 20px;
}

.tenant-management-card .header-icon-tenants {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
}

.tenant-management-card .header-text-tenants h2 { margin: 0; font-size: 1.6rem; font-weight: 600; }
.tenant-management-card .header-text-tenants p { margin: 5px 0 0 0; opacity: 0.9; font-size: 0.95rem; }

.section-header-small { margin-bottom: 20px; }

.section-header-small h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-size: 1.3rem;
    color: #2d3748;
    font-weight: 600;
}

.section-header-small i { color: #667eea; }

.section-divider { margin: 40px 0; border-top: 2px solid #e2e8f0; }

/* Tenant Card (Wizard style) */
.tenant-card {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.tenant-card:hover {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
    transform: translateY(-2px);
}

.tenant-card-header {
    padding: 20px;
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f4ff 100%);
    display: flex;
    align-items: flex-start;
    gap: 15px;
    position: relative;
}

.tenant-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.tenant-avatar-small {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    flex-shrink: 0;
}

.tenant-info { flex: 1; min-width: 0; }

.tenant-card .tenant-name,
.tenant-card h5.tenant-name {
    margin: 0 0 8px 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d3748;
    word-break: break-word;
}

.tenant-card .tenant-email,
.tenant-card p.tenant-email {
    margin: 0;
    font-size: 0.9rem;
    color: #718096;
    display: flex;
    align-items: center;
    gap: 6px;
    word-break: break-all;
}

.tenant-card .tenant-email i { flex-shrink: 0; color: #667eea; }

.tenant-card-footer {
    padding: 15px 20px;
    background: white;
    border-top: 1px solid #e2e8f0;
}

.remove-btn {
    width: 100%;
    border: 2px solid #e53e3e;
    color: #e53e3e;
    font-weight: 600;
    transition: all 0.3s ease;
}

.remove-btn:hover {
    background: #e53e3e;
    color: white;
    border-color: #e53e3e;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(229, 62, 62, 0.3);
}

.tenant-name-small { font-weight: 600; color: #2d3748; }
.tenant-email-small { color: #718096; font-size: 0.9rem; }

/* Tenant Selection Table */
.tenant-selection-table { width: 100%; border-collapse: collapse; }

.tenant-selection-table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.tenant-selection-table thead th {
    padding: 15px;
    color: white;
    font-weight: 600;
    text-align: left;
    border: none;
}

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

.tenant-selection-table tbody tr:hover { background: #f8f9ff; }
.tenant-selection-table tbody td { padding: 15px; vertical-align: middle; }
.tenant-selection-table .tenant-details { display: flex; align-items: center; gap: 12px; }

/* Tenants List (Cancel page) */
.tenants-list { display: flex; flex-direction: column; gap: 15px; }

.tenant-icon { font-size: 2.5rem; color: #667eea; flex-shrink: 0; }
.tenant-icon-lg { font-size: 3rem; color: var(--color-primary); flex-shrink: 0; }

.tenant-row {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
    margin-bottom: 15px;
}

.tenant-row:last-child { margin-bottom: 0; }

.tenant-name { margin: 0 0 5px 0; font-size: 1.1rem; }
.tenant-name-sm { margin: 0 0 5px 0; font-size: 1rem; }
.tenant-email { margin: 0; color: #666; font-size: 0.95rem; }

/* Tenant Acknowledgement Card */
.tenant-ack-card {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.tenant-ack-card:last-child { margin-bottom: 0; }

.tenant-ack-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
}

.tenant-ack-name { margin: 0 0 5px 0; font-size: 1.2rem; }
.tenant-ack-email { margin: 0; color: #666; }
.tenant-ack-documents { background: white; padding: 20px; border-radius: 6px; }
.tenant-ack-empty { margin: 0; color: #999; text-align: center; padding: 20px 0; }

/* Compact Tenant List */
.tenant-compact {
    padding: var(--space-2);
    background: var(--color-gray-50);
    border-radius: 6px;
    margin-bottom: 8px;
    border-left: 3px solid var(--color-primary);
}

.tenant-compact:last-child { margin-bottom: 0; }

.tenant-contact {
    font-size: var(--font-size-sm);
    color: var(--color-gray-500);
    margin-left: var(--space-4);
    margin-bottom: 3px;
}

.tenant-contact:last-child { margin-bottom: 0; }
.tenant-contact i { width: 14px; margin-right: 4px; opacity: 0.6; }

/* ============================================================================
   DETAILS & DOCUMENT STYLES
   ============================================================================ */

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.detail-item { margin-bottom: 20px; }
.detail-item-last { margin-bottom: 0; }
.detail-label { display: block; color: #666; font-size: 0.9rem; margin-bottom: 5px; }
.detail-value { font-size: 1.05rem; }
.detail-ref { color: #999; }

.detail-row {
    display: flex;
    gap: var(--space-2);
    margin-bottom: 8px;
}

.detail-row:last-child { margin-bottom: 0; }

/* Detail Item Notice (Session 11) */
.detail-item-notice {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 3px solid #3498db;
}

.detail-item-notice .detail-label {
    font-size: 0.875rem;
    color: #6c757d;
    margin-bottom: 5px;
    font-weight: 500;
}

.detail-item-notice .detail-label i { margin-right: 5px; color: #3498db; }

.detail-item-notice .detail-value {
    font-size: 1rem;
    color: #2c3e50;
    font-weight: 600;
}

.details-grid .detail-item-notice { transition: all 0.3s ease; }

.details-grid .detail-item-notice:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Document Row */
.document-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

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

.document-info { display: flex; align-items: center; gap: 12px; flex: 1; }
.document-icon { font-size: 1.5rem; color: #f44336; }
.document-icon-lg { font-size: 2rem; color: #f44336; }
.document-name { display: block; margin-bottom: 3px; font-size: 1.05rem; }
.document-date { color: #999; }
.document-actions { display: flex; align-items: center; gap: 10px; }

.document-list-scroll { max-height: 500px; overflow-y: auto; }

.document-list-item {
    padding: 20px 30px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s;
}

.document-list-item:hover { background: #f8f9fa; }

.document-select-list,
.tenant-select-list {
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px;
}

/* Acknowledgement Document Row */
.ack-document-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.ack-document-row:last-child { border-bottom: none; }
.ack-document-info { display: flex; align-items: center; gap: 12px; }
.ack-document-icon { color: #999; }

/* ============================================================================
   PROGRESS COMPONENTS
   ============================================================================ */

.progress-box {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.progress-box-lg {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 20px;
}

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

.progress-label { font-weight: 600; }
.progress-label-lg { font-size: 1.1rem; font-weight: 600; }
.progress-value { font-weight: 600; }
.progress-value-lg { font-size: 1.3rem; font-weight: 600; }

.progress-bar-container {
    background: #e0e0e0;
    height: 30px;
    border-radius: 15px;
    overflow: hidden;
}

.progress-bar-container-lg {
    background: #e0e0e0;
    height: 35px;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.progress-bar-fill {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    transition: width 0.6s ease;
}

.progress-bar-fill-lg {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.05rem;
    transition: width 0.6s ease;
}

.progress-primary { background: linear-gradient(90deg, #667eea, #764ba2); }
.progress-success { background: linear-gradient(90deg, #4caf50, #66bb6a); }

/* Tribunal Progress */
.tribunal-progress { display: flex; flex-direction: column; gap: var(--space-6); }

.progress-stage {
    display: flex;
    gap: var(--space-4);
    padding: var(--space-4);
    background: var(--color-gray-50);
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--color-gray-300);
    position: relative;
}

.progress-stage.active {
    background: var(--color-info-light);
    border-left-color: var(--color-primary);
}

.progress-stage.completed {
    background: var(--color-success-light);
    border-left-color: var(--color-success);
}

.stage-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-white);
    border-radius: var(--radius-full);
    border: 3px solid var(--color-gray-300);
    font-size: var(--font-size-xl);
    color: var(--color-gray-400);
}

.progress-stage.active .stage-icon { border-color: var(--color-primary); color: var(--color-primary); }

.progress-stage.completed .stage-icon {
    border-color: var(--color-success);
    background: var(--color-success);
    color: var(--color-white);
}

.stage-content { flex: 1; }
.stage-content h3 { margin: 0 0 5px 0; color: var(--color-gray-700); font-size: 1.2rem; }
.stage-content p { margin: 0; color: var(--color-gray-500); font-size: 0.9rem; }
.stage-meta { margin-top: 5px; font-size: 0.9rem; color: var(--color-gray-500); }
.stage-meta strong { color: var(--color-gray-700); }

/* ============================================================================
   COLLAPSIBLE SECTIONS
   ============================================================================ */

.collapsible-header {
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.collapsible-header:hover { background-color: #e9ecef; opacity: 0.9; }

.toggle-icon { transition: transform 0.3s ease; font-size: 0.8rem; margin-left: auto; }
.toggle-icon.rotate { transform: rotate(180deg); }
.toggle-icon.rotated { transform: rotate(180deg); }

.collapse-content { display: none; }
.collapse-content.show { display: block; }

/* ============================================================================
   GUIDE COMPONENTS
   ============================================================================ */

.guide-header {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-4);
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.guide-title { margin: 0; color: #667eea; font-size: 1.1rem; }
.guide-toggle-icon { color: #667eea; }
.guide-content { padding: var(--space-4); padding-top: 20px; }

.guide-steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.guide-step {
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.guide-step-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px auto;
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
}

.guide-step-title { margin: 0 0 10px 0; color: #333; font-size: 1rem; }
.guide-step-text { margin: 0; font-size: 0.85rem; color: #666; }

/* ============================================================================
   INVESTIGATION & COMPARISON
   ============================================================================ */

.investigation-summary { text-align: center; padding: 40px 20px; }
.investigation-icon { margin-bottom: 20px; }
.investigation-icon i { font-size: 4rem; }
.investigation-icon-success i { color: #4caf50; }
.investigation-icon-info i { color: #2196f3; }
.investigation-icon-danger i { color: #f44336; }
.investigation-title { margin: 0 0 10px 0; color: #333; font-size: 1.8rem; }
.investigation-variance { margin: 0 0 20px 0; color: #666; font-size: 1.1rem; }

.investigation-stats-inline {
    display: inline-flex;
    gap: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.investigation-stat { text-align: center; }
.investigation-stat-label { color: #999; font-size: 0.85rem; margin-bottom: 5px; }
.investigation-stat-value { font-size: 1.5rem; font-weight: 700; color: #333; }
.investigation-stat-value-success { color: #4caf50; }
.investigation-divider { width: 1px; background: #ddd; }

.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

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

.comparison-content { text-align: center; padding: 30px 20px; }
.comparison-amount { font-size: 3rem; font-weight: 700; color: #333; margin-bottom: 10px; }
.comparison-amount-success { color: #4caf50; }
.comparison-label { color: #666; margin-bottom: 20px; }

.comparison-details {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    text-align: left;
}

.comparison-detail-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.comparison-detail-row:last-child { margin-bottom: 0; }
.comparison-detail-label { color: #666; }

/* ============================================================================
   PAYMENTS
   ============================================================================ */

.payments-list { text-align: left; max-height: 250px; overflow-y: auto; }

.payment-item {
    padding: 12px;
    background: #f8f9fa;
    border-radius: 6px;
    margin-bottom: 10px;
}

.payment-item:last-child { margin-bottom: 0; }

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

.payment-amount { font-weight: 600; color: #4caf50; }
.payment-date { font-size: 0.85rem; color: #666; }
.payment-method { font-size: 0.85rem; color: #666; }
.payment-reference { margin-left: 10px; }

.payments-empty {
    padding: 30px;
    background: #f8f9fa;
    border-radius: 8px;
    text-align: center;
}

.payments-empty-icon { font-size: 2rem; color: #ddd; margin-bottom: 10px; }
.payments-empty-text { margin: 0; color: #999; }

.payment-actions {
    display: flex;
    gap: var(--space-3);
    flex-wrap: wrap;
    margin-top: var(--space-4);
}

/* ============================================================================
   RECONCILIATION
   ============================================================================ */

.recon-table { width: 100%; border-collapse: collapse; }
.recon-row { border-bottom: 1px solid #e0e0e0; }
.recon-row-highlight { border-bottom: 2px solid #333; background: #f8f9fa; }
.recon-cell { padding: 15px; }
.recon-cell-label { font-weight: 600; color: #333; }
.recon-cell-label-bold { font-weight: 700; color: #333; }
.recon-cell-value { text-align: right; font-size: 1.1rem; font-weight: 600; }
.recon-cell-value-lg { text-align: right; font-size: 1.3rem; font-weight: 700; }
.recon-cell-value-success { color: #4caf50; }

.recon-footer {
    padding: 20px;
    background: #f8f9fa;
    border-top: 1px solid #e0e0e0;
    margin: 20px -20px -20px -20px;
    border-radius: 0 0 8px 8px;
}

.recon-footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.recon-status-label { color: #333; font-weight: 600; }

.recon-status-badge {
    margin-left: 10px;
    padding: 6px 14px;
    color: white;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.recon-period-info { color: #666; font-size: 0.9rem; }

/* ============================================================================
   PERIOD CARDS
   ============================================================================ */

.periods-grid { display: grid; gap: 15px; }

.period-card { cursor: pointer; transition: all 0.2s; padding: var(--space-4); }

.period-card:hover {
    transform: translateX(4px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.period-card-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.period-info { flex: 1; min-width: 200px; }

.period-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.period-status-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 500;
    color: white;
}

.period-date-range { font-weight: 600; color: #333; font-size: 1rem; }
.period-payment-count { color: #666; font-size: 0.9rem; }
.period-stats { display: flex; gap: 30px; align-items: center; }
.period-stat { text-align: right; }
.period-stat-label { color: #999; font-size: 0.8rem; margin-bottom: 3px; }
.period-stat-value { font-weight: 600; font-size: 1.1rem; color: #333; }
.period-stat-value-success { color: #4caf50; }
.period-stat-value-danger { color: #f44336; }
.period-stat-value-info { color: #2196f3; }
.period-stat-value-muted { color: #666; }

/* ============================================================================
   FILTER TABS
   ============================================================================ */

.filter-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.filter-form {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
}

/* ============================================================================
   NOTES & CONTENT BOXES
   ============================================================================ */

.notes-box {
    background: var(--color-gray-50);
    border-left: 4px solid var(--color-primary);
    padding: var(--space-4);
    border-radius: var(--radius-md);
}

.notes-box pre {
    margin: 0;
    white-space: pre-wrap;
    font-family: inherit;
    line-height: var(--line-height-base);
    color: var(--color-gray-500);
}

.notes-box p {
    margin: 0;
    white-space: pre-wrap;
    line-height: var(--line-height-base);
}

.notes-box.empty { color: var(--color-gray-400); font-style: italic; }

.additional-notes-box {
    background: var(--color-white);
    border: 1px solid var(--color-gray-300);
    padding: var(--space-3);
    border-radius: var(--radius-md);
    margin-top: var(--space-2);
}

.additional-notes-box p {
    margin: 0;
    white-space: pre-wrap;
    line-height: var(--line-height-base);
    font-size: 0.9rem;
    color: var(--color-gray-500);
}

.notes-preview-box {
    margin-top: var(--space-2);
    padding: var(--space-3);
    background: var(--color-gray-100);
    border-radius: var(--radius-sm);
}

.well-notes {
    margin-top: 10px;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.pre-wrap-notes {
    white-space: pre-wrap;
    font-family: inherit;
    margin: 0;
}

/* Notice Notes Box */
.notice-notes-box {
    white-space: pre-wrap;
    background: var(--color-gray-50);
    padding: var(--space-3);
    border-radius: var(--radius-sm);
    border-left: 4px solid var(--color-primary);
}

.notice-status-served { opacity: 0.9; }
.notice-action-description { margin-bottom: var(--space-4); color: var(--color-gray-500); }

.notice-extensions-note {
    margin-top: var(--space-4);
    padding: var(--space-3);
    background: var(--color-info-light);
    border-radius: var(--radius-md);
}

.notice-extensions-note i { color: var(--color-info); }

.notice-withdrawn-box {
    background: var(--color-warning-light);
    padding: var(--space-4);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-4);
    border-left: 4px solid var(--color-warning);
}

.notice-withdrawn-box h4 { margin: 0 0 var(--space-2) 0; color: var(--color-warning-dark); }
.notice-withdrawn-box p { margin: 0; }
.notice-withdrawn-box .withdrawn-date { margin: var(--space-1) 0 0 0; color: var(--color-gray-500); }
.notice-reactivate-description { color: var(--color-gray-500); margin-bottom: var(--space-4); }

/* ============================================================================
   NEXT STEPS COMPONENTS
   ============================================================================ */

.next-steps-box { margin-bottom: 30px; }
.next-steps-danger { background: #ffebee; border-left: 4px solid #f44336; }
.next-steps-info { background: #e3f2fd; border-left: 4px solid #2196f3; }
.next-steps-title { margin: 0 0 15px 0; font-size: 1.2rem; }
.next-steps-title-danger { color: #c62828; }
.next-steps-title-info { color: #1565c0; }
.next-steps-list { margin: 0; padding-left: 20px; line-height: 2; color: #555; }

/* Next Steps Card (Session 11) */
.next-steps-card {
    margin-top: 30px;
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.next-steps-card .gradient-header-next {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
    border: none;
    padding: 30px;
}

.next-steps-card .header-content-next { display: flex; align-items: center; gap: 20px; }

.next-steps-card .header-icon-next {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.next-steps-card .header-text-next h2 { margin: 0; font-size: 1.6rem; font-weight: 600; }
.next-steps-card .header-text-next p { margin: 5px 0 0 0; opacity: 0.95; font-size: 0.95rem; }

.next-steps-body { padding: 30px; }

.completion-checklist {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.checklist-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    background: #f7fafc;
    border-radius: 8px;
    border-left: 4px solid #e2e8f0;
    transition: all 0.3s ease;
}

.checklist-item.completed {
    border-left-color: #48bb78;
    background: linear-gradient(135deg, #f0fff4 0%, #c6f6d5 10%, #f7fafc 100%);
}

.check-icon {
    width: 32px;
    height: 32px;
    background: #48bb78;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(72, 187, 120, 0.3);
}

.check-content { flex: 1; }
.check-content strong { display: block; color: #2d3748; font-size: 1.05rem; margin-bottom: 4px; }
.check-content p { color: #718096; font-size: 0.9rem; margin: 0; }

.next-action-card {
    background: linear-gradient(135deg, #fff5f5 0%, #fed7d7 10%, #fff5f5 100%);
    border: 2px solid #fc8181;
    border-radius: 12px;
    padding: 25px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
}

.action-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #f56565 0%, #e53e3e 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(229, 62, 62, 0.3);
}

.action-content { flex: 1; }
.action-content h3 { margin: 0 0 10px 0; color: #742a2a; font-size: 1.2rem; font-weight: 600; }
.action-content p { margin: 0; color: #9b2c2c; line-height: 1.6; font-size: 0.95rem; }

/* ============================================================================
   OPTIONS GRID (Objection Page)
   ============================================================================ */

.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: var(--space-4);
}

.option-card {
    background: var(--color-white);
    border: 2px solid var(--color-gray-200);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    text-align: center;
    transition: all var(--transition-base);
}

.option-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.option-card.option-withdraw { border-color: var(--color-success); }
.option-card.option-withdraw:hover { background: var(--color-success-light); }
.option-card.option-modify { border-color: var(--color-warning); }
.option-card.option-modify:hover { background: var(--color-warning-light); }
.option-card.option-tribunal { border-color: var(--color-primary); }
.option-card.option-tribunal:hover { background: var(--color-info-light); }

.option-icon { font-size: 2.5rem; margin-bottom: var(--space-2); }
.option-withdraw .option-icon { color: var(--color-success); }
.option-modify .option-icon { color: var(--color-warning); }
.option-tribunal .option-icon { color: var(--color-primary); }

.option-card h3 { margin: 0 0 5px 0; font-size: var(--font-size-base); color: var(--color-gray-700); }
.option-card p { margin: 0 0 var(--space-3) 0; font-size: var(--font-size-sm); color: var(--color-gray-500); }

/* ============================================================================
   COMPACT SIDEBAR STYLES
   ============================================================================ */

.compact-card { margin-bottom: var(--space-3); }

.compact-header {
    padding: 12px var(--space-3);
    background: var(--color-primary-gradient);
}

.compact-header h2 {
    color: var(--color-white);
    font-size: var(--font-size-base);
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.compact-header h2 i:first-child { margin-right: 8px; }

.compact-body { padding: var(--space-3); }

.compact-info-item { margin-bottom: 12px; }
.compact-info-item:last-child { margin-bottom: 0; }

.compact-info-item label {
    display: block;
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-semibold);
    color: var(--color-gray-450);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.compact-info-item label i { color: var(--color-primary); margin-right: 4px; }
.compact-info-item span { display: block; font-size: 0.9rem; color: var(--color-gray-700); line-height: 1.4; }

/* ============================================================================
   RENT INCREASE HISTORY
   ============================================================================ */

.increase-history-item {
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-md);
    padding: var(--space-4);
    margin-bottom: var(--space-3);
    background: var(--color-white);
}

.increase-history-item:last-child { margin-bottom: 0; }
.increase-history-item.active-status { background: #f0f9ff; }

.history-item-header {
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-2);
}

.history-item-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-4);
    align-items: start;
}

.history-stat { display: flex; flex-direction: column; }

.history-stat-label {
    display: block;
    color: var(--color-gray-500);
    margin-bottom: 5px;
    font-weight: var(--font-weight-semibold);
    font-size: var(--font-size-sm);
}

.history-stat-label i { margin-right: 4px; }
.history-stat-value { font-size: 0.95rem; }
.history-rent-change { font-size: 0.95rem; }
.history-rent-change .old-rent { color: var(--color-gray-400); }
.history-rent-change .arrow { margin: 0 8px; color: var(--color-primary); }
.history-rent-change .new-rent { font-weight: var(--font-weight-bold); color: var(--color-primary); }
.history-increase-amount { font-weight: var(--font-weight-bold); color: var(--color-success); }
.history-increase-pct { margin-left: 8px; color: var(--color-success); font-weight: var(--font-weight-semibold); }

/* ============================================================================
   LEGAL DATES & RENT PREVIEW
   ============================================================================ */

.legal-dates-grid {
    margin-top: var(--space-3);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-3);
}

.legal-date-item { display: flex; flex-direction: column; }
.legal-date-label { display: block; color: var(--color-gray-500); margin-bottom: 5px; font-size: var(--font-size-sm); }
.legal-date-value { font-weight: var(--font-weight-semibold); color: var(--color-gray-700); font-size: var(--font-size-md); }
.legal-date-value.primary { color: var(--color-primary); }

.legal-date-explanation {
    display: block;
    margin-top: var(--space-3);
    color: var(--color-gray-500);
    padding-top: var(--space-3);
    border-top: 1px solid var(--color-gray-200);
}

.rent-preview-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.rent-preview-item { display: flex; align-items: center; gap: var(--space-2); }
.rent-preview-value { font-size: 1.2rem; font-weight: var(--font-weight-bold); color: var(--color-success); margin-left: var(--space-2); }

.rent-amount.danger { color: var(--color-danger); }

/* ============================================================================
   MODIFICATION TIMELINE
   ============================================================================ */

.modification-timeline { padding: 0; }

.modification-item {
    display: flex;
    gap: var(--space-3);
    padding: var(--space-3) 0;
    border-bottom: 1px solid var(--color-gray-250);
}

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

.mod-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mod-icon.type-extended { background: var(--color-info-light); color: var(--color-info); }
.mod-icon.type-withdrawn { background: var(--color-warning-light); color: var(--color-warning); }
.mod-icon.type-reactivated { background: var(--color-success-light); color: var(--color-success); }
.mod-icon.type-updated { background: var(--color-gray-100); color: var(--color-gray-500); }

.mod-content { flex: 1; }

.mod-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.mod-type-label { font-weight: var(--font-weight-semibold); }
.mod-type-label.type-extended { color: var(--color-info); }
.mod-type-label.type-withdrawn { color: var(--color-warning); }
.mod-type-label.type-reactivated { color: var(--color-success); }
.mod-type-label.type-updated { color: var(--color-gray-500); }

.mod-date-change { color: var(--color-gray-500); margin-left: var(--space-2); }
.mod-date-change .fa-arrow-right { font-size: 0.8em; }
.mod-timestamp { color: var(--color-gray-400); font-size: var(--font-size-sm); }
.mod-notified { color: var(--color-success); margin-left: 8px; }
.mod-reason { margin: 8px 0 0 0; color: var(--color-gray-600); }
.mod-user { color: var(--color-gray-400); }

/* ============================================================================
   NAME COMPARISON
   ============================================================================ */

.name-comparison {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
}

.name-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e9ecef;
}

.name-item:last-child { border-bottom: none; }
.name-item label { color: #666; font-size: 0.9rem; margin-bottom: 0; }
.name-item strong { color: #333; font-size: 1.1rem; }

/* ============================================================================
   SECTION TITLES
   ============================================================================ */

.section-title {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
    color: #333;
}

.section-title:first-child { margin-top: 0; }

.section-subtitle {
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
}

.section-intro { color: #666; margin-bottom: 20px; }

/* ============================================================================
   CHECKLIST STYLES
   ============================================================================ */

.checklist {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.checklist li {
    padding: 0.5rem 0 0.5rem 1.75rem;
    position: relative;
    line-height: 1.6;
}

.checklist li::before {
    content: "âœ“";
    position: absolute;
    left: 0.25rem;
    color: #4caf50;
    font-weight: bold;
    font-size: 1.2rem;
}

.info-list {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 1rem;
}

.info-list li {
    padding: 0.4rem 0 0.4rem 1.5rem;
    position: relative;
    line-height: 1.5;
    color: #555;
}

.info-list li::before {
    content: "â€¢";
    position: absolute;
    left: 0.5rem;
    color: #667eea;
    font-weight: bold;
}

/* ============================================================================
   VALUE STYLING
   ============================================================================ */

.value-large {
    font-size: 1.2rem !important;
    font-weight: 600;
    color: #667eea !important;
}

.status-metric-value-sm { font-size: 14px; }

/* ============================================================================
   MODERN CARD
   ============================================================================ */

.modern-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.modern-card .card-body { padding: 1.5rem; }

.wizard-card { box-shadow: 0 0.125rem 0.25rem rgba(0,0,0,0.075); }
.wizard-card .list-group-item { border-left: 3px solid #0d6efd; }

/* ============================================================================
   STICKY CARD
   ============================================================================ */

.sticky-card {
    position: sticky;
    top: 20px;
    z-index: 100;
}

/* ============================================================================
   CURSOR UTILITIES
   ============================================================================ */

.cursor-pointer { cursor: pointer; }

/* ============================================================================
   LAYOUT UTILITIES
   ============================================================================ */

.container-narrow {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
}

.container-wide {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.confirmation-wrapper { max-width: 900px; margin: 0 auto; }

.two-column-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    align-items: start;
}

@media (max-width: 992px) {
    .two-column-layout { grid-template-columns: 1fr; }
}

/* Row and Column Utilities */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
}

.col-md-4,
.col-md-8 {
    padding: 0 10px;
    width: 100%;
}

@media (min-width: 768px) {
    .col-md-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
    .col-md-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
}

/* Border Utilities */
.border-warning { border-left: 4px solid #ff9800; }
.border-success { border-left: 4px solid #4caf50; }

/* Photo Fields */
.photo-fields-row {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.photos-heading { margin: 25px 0 15px 0; color: #333; }
.empty-photos-text { color: #888; font-style: italic; }

.photo-section-header { margin: var(--space-5) 0 var(--space-3) 0; }
.photo-empty-text { color: var(--color-gray-400); font-style: italic; }

.photo-selectors {
    display: flex;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
    flex-wrap: wrap;
}

.photo-selector-group { flex: 1; min-width: 200px; }

/* Checkout Dates Grid */
.checkout-dates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

/* Dividers */
.divider {
    margin: var(--space-5) 0;
    border: none;
    border-top: 1px solid var(--color-gray-200);
}

.divider-sm { margin: var(--space-3) 0; }

/* Show More Container */
.show-more-container { text-align: center; margin-top: 20px; }

/* Deposit Warning */
.deposit-warning { border: 2px solid #ff9800; }

/* Property Address */
.property-address { font-size: 1.1rem; opacity: 0.9; }

/* ============================================================================
   BILLING PAGE SPECIFIC
   ============================================================================ */

.tenancy-selector-card { margin-bottom: var(--space-4); }

.tenancy-selector-form {
    display: flex;
    gap: var(--space-3);
    align-items: center;
}

.tenancy-selector-form label { font-weight: 600; }
.tenancy-selector-form select { flex: 1; max-width: 500px; }

/* Rent Increase Banner */
.rent-increase-banner {
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    margin-bottom: var(--space-4);
}

.rent-increase-banner.status-pending {
    background: linear-gradient(135deg, rgba(255, 152, 0, 0.15), rgba(255, 152, 0, 0.08));
    border: 2px solid var(--color-warning);
}

.rent-increase-banner.status-objected {
    background: linear-gradient(135deg, rgba(244, 67, 54, 0.15), rgba(244, 67, 54, 0.08));
    border: 2px solid var(--color-danger);
}

.rent-increase-banner.status-approved {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.15), rgba(76, 175, 80, 0.08));
    border: 2px solid var(--color-success);
}

.rent-increase-banner-content {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
}

.rent-increase-banner-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: white;
    font-size: 1.4rem;
}

.rent-increase-banner-icon.icon-pending { background: var(--color-warning); }
.rent-increase-banner-icon.icon-objected { background: var(--color-danger); }
.rent-increase-banner-icon.icon-approved { background: var(--color-success); }

.rent-increase-banner-body { flex: 1; }

.rent-increase-banner-title { margin: 0 0 var(--space-2) 0; font-size: 1.2rem; }
.rent-increase-banner-title.title-pending { color: var(--color-warning); }
.rent-increase-banner-title.title-objected { color: var(--color-danger); }
.rent-increase-banner-title.title-approved { color: var(--color-success); }

.rent-increase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-3);
    margin-bottom: var(--space-3);
}

.rent-increase-grid-item label { color: var(--color-gray-600); font-size: 0.85rem; }
.rent-increase-grid-item strong { display: block; font-size: 1.1rem; }
.rent-increase-grid-item strong.new-rent-pending { color: var(--color-warning); }
.rent-increase-grid-item strong.new-rent-objected { color: var(--color-danger); }
.rent-increase-grid-item strong.new-rent-approved { color: var(--color-success); }

.rent-increase-notice {
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-md);
    margin-top: var(--space-2);
}

.rent-increase-notice.notice-warning { background: rgba(255, 152, 0, 0.1); }
.rent-increase-notice.notice-danger { background: rgba(244, 67, 54, 0.1); }
.rent-increase-notice.notice-success { background: rgba(76, 175, 80, 0.1); }
.rent-increase-notice i { margin-right: var(--space-1); }
.rent-increase-notice.notice-warning i { color: var(--color-warning); }
.rent-increase-notice.notice-danger i { color: var(--color-danger); }
.rent-increase-notice.notice-success i { color: var(--color-success); }
.rent-increase-notice span { color: var(--color-gray-600); }

.rent-increase-objection-notes { margin: var(--space-2) 0 0 0; font-style: italic; color: var(--color-gray-500); }

.rent-increase-actions { margin-top: var(--space-3); }
.rent-increase-actions .btn-outline.btn-pending { border-color: var(--color-warning); color: var(--color-warning); }
.rent-increase-actions .btn-outline.btn-objected { border-color: var(--color-danger); color: var(--color-danger); }
.rent-increase-actions .btn-outline.btn-approved { border-color: var(--color-success); color: var(--color-success); }

/* Billing Summary */
.billing-summary-card { margin-bottom: var(--space-4); }
.billing-summary-description { color: var(--color-gray-600); margin-bottom: var(--space-2); }

/* Rent Periods Card */
.rent-periods-card { margin-bottom: var(--space-4); }
.rent-periods-card .card-header-gradient { background: var(--color-primary-gradient); color: white; }
.rent-periods-card .card-header-gradient h2 { color: white; margin: 0; }

/* Charges Section */
.charges-card { margin-bottom: var(--space-6); }
.charges-card .card-header-gradient { background: var(--color-primary-gradient); color: white; }
.charges-card .card-header-gradient h2 { color: white; margin: 0; }

.charges-info-note {
    margin-top: var(--space-4);
    padding: var(--space-3);
    background: var(--color-info-light);
    border-left: 4px solid var(--color-info);
    border-radius: var(--radius-sm);
}

.charges-info-note i { color: var(--color-info-dark); }
.charges-info-note strong { color: var(--color-info-dark); }
.charges-info-note span { color: var(--color-gray-600); }

.charges-empty-state {
    text-align: center;
    padding: var(--space-8) var(--space-4);
    color: var(--color-gray-500);
}

.charges-empty-state i { font-size: 3rem; margin-bottom: var(--space-3); }
.charges-empty-state p { font-size: 1.1rem; margin-bottom: var(--space-2); }
.charges-empty-state p:last-child { font-size: 0.9rem; }

/* Record Payment */
.record-payment-card { margin-bottom: var(--space-6); }
.record-payment-checkbox { margin: var(--space-4) 0; }
.record-payment-checkbox .form-text { display: block; margin-left: 0; }
.record-payment-submit { width: 100%; }

/* ============================================================================
   CHARGES SUMMARY WIDGET
   ============================================================================ */

.charges-summary-widget {
    background: var(--color-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: var(--space-4);
    margin-bottom: var(--space-4);
}

.charges-summary-widget .widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-4);
    padding-bottom: var(--space-3);
    border-bottom: 2px solid var(--color-gray-150);
}

.charges-summary-widget .widget-header h2 {
    margin: 0;
    color: var(--color-gray-700);
    font-size: var(--font-size-lg);
}

.charges-summary-widget .widget-header h2 i {
    margin-right: var(--space-2);
    color: var(--color-primary);
}

.charges-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-3);
}

.charge-stat-card {
    padding: var(--space-3);
    border-radius: var(--radius-md);
    border-left: 4px solid;
}

.charge-stat-card.charge-type { background: var(--color-danger-light); border-left-color: var(--color-danger); }
.charge-stat-card.credit-type { background: var(--color-success-light); border-left-color: var(--color-success); }
.charge-stat-card.net-positive { background: var(--color-warning-light); border-left-color: var(--color-warning); }
.charge-stat-card.net-negative { background: var(--color-info-light); border-left-color: var(--color-info); }
.charge-stat-card.tenancies-count { background: #f3e5f5; border-left-color: var(--color-role-superadmin); }

.charge-stat-inner { display: flex; align-items: center; gap: 12px; }

.charge-stat-icon {
    width: 45px;
    height: 45px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.charge-stat-icon.charge-type { background: rgba(244, 67, 54, 0.1); color: var(--color-danger); }
.charge-stat-icon.credit-type { background: rgba(76, 175, 80, 0.1); color: var(--color-success); }
.charge-stat-icon.net-positive { background: rgba(255, 152, 0, 0.1); color: var(--color-warning); }
.charge-stat-icon.net-negative { background: rgba(33, 150, 243, 0.1); color: var(--color-info); }
.charge-stat-icon.tenancies-count { background: rgba(156, 39, 176, 0.1); color: var(--color-role-superadmin); }
.charge-stat-icon i { font-size: 1.3rem; }

.charge-stat-value { font-size: var(--font-size-xl); font-weight: var(--font-weight-bold); }
.charge-stat-value.charge-type { color: var(--color-danger); }
.charge-stat-value.credit-type { color: var(--color-success); }
.charge-stat-value.net-positive { color: var(--color-warning); }
.charge-stat-value.net-negative { color: var(--color-info); }
.charge-stat-value.tenancies-count { color: var(--color-role-superadmin); }

.charge-stat-label { font-size: var(--font-size-sm); color: var(--color-gray-500); }

.charges-info-tip {
    margin-top: var(--space-3);
    padding: 12px;
    background: var(--color-info-light);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.charges-info-tip i { color: var(--color-info-dark); }
.charges-info-tip span { color: var(--color-gray-500); font-size: 0.9rem; }
.charges-info-tip strong { color: var(--color-info-dark); }
.charges-info-tip a { color: var(--color-info-dark); text-decoration: underline; }

/* ============================================================================
   INVENTORY PAGE STYLES
   ============================================================================ */

.inventory-description { color: var(--color-gray-500); margin-bottom: var(--space-4); }

.inventory-info-box {
    background: var(--color-success-light);
    border-radius: var(--radius-md);
    padding: var(--space-4);
    margin-bottom: var(--space-4);
}

.inventory-info-box h4 { margin: 0 0 var(--space-2) 0; color: var(--color-success-dark); }
.inventory-info-box ul { margin: 0; padding-left: var(--space-4); color: var(--color-gray-500); }

/* ============================================================================
   DEPOSIT & DOCUMENT MANAGEMENT
   ============================================================================ */

.deposit-empty-state { text-align: center; padding: var(--space-8); }
.deposit-empty-state .empty-icon { font-size: 3rem; color: var(--color-success); margin-bottom: var(--space-3); }
.deposit-empty-state h3 { margin-bottom: var(--space-2); }
.empty-state-padded { padding: var(--space-6); text-align: center; color: var(--color-gray-500); }

/* ============================================================================
   EMPTY STATE LARGE
   ============================================================================ */

.empty-state-large {
    text-align: center;
    padding: var(--space-12) var(--space-4);
}

.empty-state-large i { font-size: 4rem; color: var(--color-gray-400); margin-bottom: var(--space-4); }
.empty-state-large h2 { color: var(--color-gray-700); margin-bottom: var(--space-2); }
.empty-state-large p { color: var(--color-gray-500); margin-bottom: var(--space-4); }

/* ============================================================================
   RESPONSIVE STYLES (Session Additions)
   ============================================================================ */

@media (max-width: 992px) {
    .two-column-layout { grid-template-columns: 1fr; }
}

@media (max-width: 968px) {
    .form-actions { flex-direction: column; }
    .form-actions .btn { width: 100%; }
    .name-item { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
    .sticky-card { position: relative; top: 0; }
}

@media (max-width: 768px) {
    .stat-card-wrapper { flex: 1 1 calc(33.333% - 0.5rem); max-width: none; }
    .stats-grid-3 { grid-template-columns: 1fr; }
    .help-grid { grid-template-columns: 1fr; }
    .comparison-grid { grid-template-columns: 1fr; }
    .timeline { padding-left: var(--space-4); }
    .timeline-marker { left: -20px; width: 30px; height: 30px; font-size: 0.8rem; }
    .status-banner-content { flex-direction: column; text-align: center; }
    .status-banner-icon { width: 60px; height: 60px; }
    .status-banner-icon i { font-size: 1.8rem; }
    .dashboard-header.enhanced { padding: var(--space-4); }
    .header-content-wrapper { flex-direction: column; text-align: center; }
    .header-icon-badge { width: 55px; height: 55px; }
    .header-icon-badge i { font-size: 1.7rem; }
    .dashboard-header.enhanced h1 { font-size: var(--font-size-xl); }
    .dashboard-header.enhanced .subtitle { font-size: 0.95rem; }
    .header-meta { justify-content: center; gap: var(--space-2); }
    .options-grid { grid-template-columns: 1fr; }
    .info-grid { grid-template-columns: 1fr; }
    .info-value { font-size: var(--font-size-xl); }
    .progress-stage { flex-direction: column; text-align: center; }
    .stage-icon { align-self: center; }
    .history-item-grid { grid-template-columns: 1fr; }
    .history-item-header { flex-direction: column; gap: var(--space-2); }
    .legal-dates-grid { grid-template-columns: 1fr; }
    .form-actions-right { flex-direction: column; }
    .form-actions-right .btn { width: 100%; }
    .alert { flex-direction: column; }
    .tenant-card { flex-direction: column; align-items: center; text-align: center; }
    .rent-increase-banner-content { flex-direction: column; }
    .rent-increase-grid { grid-template-columns: 1fr; }
    .payment-actions { flex-direction: column; }
    .payment-actions .btn { width: 100%; }
    .tenancy-selector-form { flex-direction: column; align-items: stretch; }
    .tenancy-selector-form select { max-width: 100%; }
    .tenant-selection-table thead th:last-child,
    .tenant-selection-table tbody td:last-child { text-align: center; }
    .tenant-details { flex-direction: column; text-align: center; }
    .tenant-avatar-small { margin: 0 auto; }
    .next-steps-card .gradient-header-next { padding: 20px; }
    .next-steps-card .header-content-next { flex-direction: column; text-align: center; }
    .next-steps-card .header-icon-next { width: 50px; height: 50px; font-size: 1.5rem; }
    .next-steps-body { padding: 20px; }
    .next-action-card { flex-direction: column; text-align: center; }
    .action-icon { margin: 0 auto; }
}

@media (max-width: 576px) {
    .tenant-card-header { flex-direction: column; align-items: center; text-align: center; }
    .lead-badge { position: static; margin-top: 10px; }
    .tenant-selection-table { font-size: 0.85rem; }
    .tenant-selection-table thead th { padding: 12px 8px; }
    .tenant-selection-table tbody td { padding: 12px 8px; }
    .checklist-item { padding: 12px; }
    .check-icon { width: 28px; height: 28px; font-size: 0.9rem; }
    .check-content strong { font-size: 0.95rem; }
    .check-content p { font-size: 0.85rem; }
}

@media (max-width: 480px) {
    .stat-card-wrapper { flex: 1 1 calc(50% - 0.5rem); }
    .header-content-wrapper { gap: var(--space-3); }
    .meta-item { padding: 4px 10px; font-size: var(--font-size-xs); }
}

@media print {
    .page-header,
    .card-header,
    .filter-form,
    .action-buttons,
    .breadcrumbs { display: none !important; }
    .timeline::before { display: none; }
    .timeline-item { page-break-inside: avoid; padding-left: 0; }
    .timeline-marker { position: relative; margin-bottom: 10px; }
}

/* ============================================================================
   DASHBOARD COMPONENT ADDITIONS
   Added: 2025-12-02
   For: landlord/index.php dashboard components
   ============================================================================ */

/* ============================================================================
   PAYMENT SUMMARY WIDGET
   ============================================================================ */

.payment-summary-widget {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: var(--space-4);
    margin-bottom: var(--space-6);
}

.payment-summary-widget .widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-4);
    padding-bottom: var(--space-3);
    border-bottom: 2px solid var(--color-gray-150);
}

.payment-summary-widget .widget-header h2 {
    margin: 0;
    font-size: var(--font-size-lg);
    color: var(--color-gray-700);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.payment-summary-widget .widget-header h2 i {
    color: var(--color-primary);
}

/* Payment Stats Row */
.payment-stats-row {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
    margin-bottom: var(--space-4);
}

/* Individual Payment Stat */
.payment-stat {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    flex: 1;
    min-width: 200px;
    padding: var(--space-3);
    background: var(--color-gray-50);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--color-gray-300);
}

.payment-stat.expected {
    border-left-color: var(--color-primary);
    background: linear-gradient(135deg, rgba(102,126,234,0.05) 0%, rgba(118,75,162,0.05) 100%);
}

.payment-stat.received {
    border-left-color: var(--color-success);
    background: var(--color-success-light);
}

.payment-stat.outstanding {
    border-left-color: var(--color-warning);
    background: var(--color-warning-light);
}

.payment-stat.overdue {
    border-left-color: var(--color-danger);
    background: var(--color-danger-light);
}

/* Stat Circle (Icon Container) */
.stat-circle {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(102, 126, 234, 0.1);
    color: var(--color-primary);
    flex-shrink: 0;
}

.stat-circle i {
    font-size: 1.3rem;
}

.stat-circle.success {
    background: rgba(76, 175, 80, 0.1);
    color: var(--color-success);
}

.stat-circle.warning {
    background: rgba(255, 152, 0, 0.1);
    color: var(--color-warning);
}

.stat-circle.danger {
    background: rgba(244, 67, 54, 0.1);
    color: var(--color-danger);
}

.stat-circle.info {
    background: rgba(33, 150, 243, 0.1);
    color: var(--color-info);
}

/* Stat Details */
.stat-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.stat-details .stat-value {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-gray-700);
    line-height: 1.2;
}

.stat-details .stat-label {
    font-size: var(--font-size-sm);
    color: var(--color-gray-500);
}

/* ============================================================================
   PAYMENT PROGRESS BAR
   ============================================================================ */

.payment-progress {
    background: var(--color-gray-50);
    padding: var(--space-3);
    border-radius: var(--radius-md);
}

.payment-progress .progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-2);
    font-size: var(--font-size-sm);
    color: var(--color-gray-500);
}

.payment-progress .progress-percent {
    font-weight: var(--font-weight-bold);
    color: var(--color-gray-700);
}

.payment-progress .progress-bar {
    height: 10px;
    background: var(--color-gray-200);
    border-radius: 5px;
    overflow: hidden;
}

.payment-progress .progress-fill {
    height: 100%;
    border-radius: 5px;
    transition: width var(--transition-base);
}

.payment-progress .progress-fill.low {
    background: linear-gradient(90deg, var(--color-danger), #ff6659);
}

.payment-progress .progress-fill.medium {
    background: linear-gradient(90deg, var(--color-warning), #ffb74d);
}

.payment-progress .progress-fill.high {
    background: linear-gradient(90deg, var(--color-success), #66bb6a);
}

.payment-progress .progress-fill.complete {
    background: var(--color-primary-gradient);
}

/* ============================================================================
   DASHBOARD WIDGET (Grid Cards)
   ============================================================================ */

.dashboard-widget {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: box-shadow var(--transition-base), transform var(--transition-base);
}

.dashboard-widget:hover {
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-2px);
}

.dashboard-widget .widget-header {
    background: var(--color-primary-gradient);
    color: var(--color-white);
    padding: var(--space-3) var(--space-4);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dashboard-widget .widget-header h2 {
    margin: 0;
    font-size: var(--font-size-md);
    font-weight: var(--font-weight-semibold);
    color: var(--color-white);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.dashboard-widget .widget-header h2 i {
    opacity: 0.9;
}

.dashboard-widget .widget-header .btn-sm,
.dashboard-widget .widget-header a {
    color: var(--color-white);
    opacity: 0.9;
    font-size: var(--font-size-sm);
    text-decoration: none;
    transition: opacity var(--transition-fast);
}

.dashboard-widget .widget-header .btn-sm:hover,
.dashboard-widget .widget-header a:hover {
    opacity: 1;
}

.dashboard-widget .widget-header .badge {
    background: rgba(255, 255, 255, 0.2);
    color: var(--color-white);
}

.dashboard-widget .widget-content {
    padding: var(--space-4);
}

/* ============================================================================
   LIST GROUP (Inside Widgets)
   ============================================================================ */

.list-group {
    margin: 0;
    padding: 0;
    list-style: none;
}

.list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-3);
    border-bottom: 1px solid var(--color-gray-200);
    transition: background var(--transition-fast);
}

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

.list-item:hover {
    background: var(--color-gray-50);
}

.list-item-content {
    flex: 1;
    min-width: 0;
}

.list-item-content strong {
    display: block;
    color: var(--color-gray-700);
    margin-bottom: 2px;
    font-size: var(--font-size-base);
}

.list-item-content p {
    margin: 0 0 var(--space-1) 0;
    font-size: var(--font-size-sm);
}

.list-item-content .badge {
    margin-right: var(--space-1);
    margin-top: var(--space-1);
}

/* List Item Icon */
.list-item-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: rgba(102, 126, 234, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    margin-right: var(--space-3);
    flex-shrink: 0;
}

/* ============================================================================
   RENT CHANGE DISPLAY
   ============================================================================ */

.rent-change {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--font-size-sm);
    margin-top: var(--space-1);
}

.rent-change span:first-child {
    color: var(--color-gray-400);
    text-decoration: line-through;
}

.rent-change i {
    color: var(--color-primary);
    font-size: 0.75rem;
}

.rent-change .text-success {
    color: var(--color-success);
}

/* ============================================================================
   RESPONSIVE STYLES
   ============================================================================ */

@media (max-width: 992px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .payment-stats-row {
        flex-direction: column;
    }
    
    .payment-stat {
        min-width: 100%;
    }
    
    .stat-circle {
        width: 45px;
        height: 45px;
    }
    
    .stat-circle i {
        font-size: 1.1rem;
    }
    
    .stat-details .stat-value {
        font-size: var(--font-size-lg);
    }
    
    .dashboard-widget .widget-header {
        flex-direction: column;
        gap: var(--space-2);
        text-align: center;
    }
    
    .list-item {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-2);
    }
    
    .list-item .btn {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .payment-summary-widget {
        padding: var(--space-3);
    }
    
    .payment-stat {
        padding: var(--space-2);
    }
    
    .rent-change {
        flex-wrap: wrap;
    }
}

/* ============================================================================
   PROPERTIES PAGE STYLES
   Added: 2025-12-02
   For: landlord/properties.php
   ============================================================================ */

/* ============================================================================
   FILTER BAR
   ============================================================================ */

.filter-bar {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    margin-bottom: var(--space-4);
    box-shadow: var(--shadow-sm);
}

.search-form {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    align-items: center;
}

.search-input-group {
    position: relative;
    flex: 1;
    min-width: 250px;
}

.search-input-group i {
    position: absolute;
    left: var(--space-3);
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-gray-400);
}

.search-input {
    width: 100%;
    padding: var(--space-2) var(--space-3) var(--space-2) 40px;
    border: 1px solid var(--color-gray-300);
    border-radius: var(--radius-sm);
    font-size: var(--font-size-base);
    transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.search-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.search-input::placeholder {
    color: var(--color-gray-400);
}

.filter-select {
    padding: var(--space-2) var(--space-3);
    border: 1px solid var(--color-gray-300);
    border-radius: var(--radius-sm);
    font-size: var(--font-size-base);
    background: var(--color-white);
    min-width: 150px;
    cursor: pointer;
    transition: border-color var(--transition-base);
}

.filter-select:focus {
    outline: none;
    border-color: var(--color-primary);
}

/* ============================================================================
   PROPERTIES GRID
   ============================================================================ */

.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--space-4);
    margin-bottom: var(--space-4);
}

/* ============================================================================
   PROPERTY CARD
   ============================================================================ */

.property-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.property-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

/* Property Header */
.property-header {
    background: var(--color-primary-gradient);
    padding: var(--space-4);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.property-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
}

.property-icon i {
    font-size: 1.5rem;
    color: var(--color-white);
}

.property-status {
    display: flex;
    gap: var(--space-1);
}

.property-status .badge {
    background: rgba(255, 255, 255, 0.2);
    color: var(--color-white);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.property-status .badge-success {
    background: rgba(76, 175, 80, 0.9);
}

.property-status .badge-warning {
    background: rgba(255, 152, 0, 0.9);
}

.property-status .badge-secondary {
    background: rgba(108, 117, 125, 0.9);
}

/* Property Body */
.property-body {
    padding: var(--space-4);
}

.property-body h3 {
    margin: 0 0 var(--space-2) 0;
    font-size: var(--font-size-lg);
    color: var(--color-gray-700);
    font-weight: var(--font-weight-semibold);
}

.property-body .text-muted {
    margin: 0 0 var(--space-2) 0;
    font-size: var(--font-size-sm);
}

.property-location {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--color-gray-500);
    font-size: var(--font-size-sm);
    margin-bottom: var(--space-3);
}

.property-location i {
    color: var(--color-primary);
}

.property-details {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    margin-bottom: var(--space-3);
}

.property-details span {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    font-size: var(--font-size-sm);
    color: var(--color-gray-500);
    background: var(--color-gray-50);
    padding: 4px 10px;
    border-radius: var(--radius-sm);
}

.property-details span i {
    color: var(--color-primary);
}

.property-ref {
    font-size: var(--font-size-xs);
    color: var(--color-gray-400);
    font-family: monospace;
    margin: 0;
}

/* Property Footer */
.property-footer {
    padding: var(--space-3) var(--space-4);
    background: var(--color-gray-50);
    border-top: 1px solid var(--color-gray-200);
    display: flex;
    justify-content: flex-end;
    gap: var(--space-2);
}

/* ============================================================================
   RESPONSIVE STYLES
   ============================================================================ */

@media (max-width: 768px) {
    .search-form {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-input-group {
        min-width: 100%;
    }
    
    .filter-select {
        width: 100%;
    }
    
    .search-form .btn {
        width: 100%;
    }
    
    .properties-grid {
        grid-template-columns: 1fr;
    }
    
    .property-footer {
        flex-direction: column;
    }
    
    .property-footer .btn {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .property-header {
        padding: var(--space-3);
    }
    
    .property-icon {
        width: 40px;
        height: 40px;
    }
    
    .property-icon i {
        font-size: 1.2rem;
    }
    
    .property-body {
        padding: var(--space-3);
    }
    
    .property-body h3 {
        font-size: var(--font-size-base);
    }
}

/* ============================================================================
   PROPERTIES PAGE STYLES
   Added: 2025-12-02
   For: landlord/properties.php
   ============================================================================ */

/* ============================================================================
   FILTER BAR
   ============================================================================ */

.filter-bar {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    margin-bottom: var(--space-4);
    box-shadow: var(--shadow-sm);
}

.search-form {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    align-items: center;
}

.search-input-group {
    position: relative;
    flex: 1;
    min-width: 250px;
}

.search-input-group i {
    position: absolute;
    left: var(--space-3);
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-gray-400);
}

.search-input {
    width: 100%;
    padding: var(--space-2) var(--space-3) var(--space-2) 40px;
    border: 1px solid var(--color-gray-300);
    border-radius: var(--radius-sm);
    font-size: var(--font-size-base);
    transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.search-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.search-input::placeholder {
    color: var(--color-gray-400);
}

.filter-select {
    padding: var(--space-2) var(--space-3);
    border: 1px solid var(--color-gray-300);
    border-radius: var(--radius-sm);
    font-size: var(--font-size-base);
    background: var(--color-white);
    min-width: 150px;
    cursor: pointer;
    transition: border-color var(--transition-base);
}

.filter-select:focus {
    outline: none;
    border-color: var(--color-primary);
}

/* ============================================================================
   PROPERTIES GRID
   ============================================================================ */

.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--space-4);
    margin-bottom: var(--space-4);
}

/* ============================================================================
   PROPERTY CARD
   ============================================================================ */

.property-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.property-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

/* Property Header */
.property-header {
    background: var(--color-primary-gradient);
    padding: var(--space-4);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.property-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
}

.property-icon i {
    font-size: 1.5rem;
    color: var(--color-white);
}

.property-status {
    display: flex;
    gap: var(--space-1);
}

.property-status .badge {
    background: rgba(255, 255, 255, 0.2);
    color: var(--color-white);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.property-status .badge-success {
    background: rgba(76, 175, 80, 0.9);
}

.property-status .badge-warning {
    background: rgba(255, 152, 0, 0.9);
}

.property-status .badge-secondary {
    background: rgba(108, 117, 125, 0.9);
}

/* Property Body */
.property-body {
    padding: var(--space-4);
}

.property-body h3 {
    margin: 0 0 var(--space-2) 0;
    font-size: var(--font-size-lg);
    color: var(--color-gray-700);
    font-weight: var(--font-weight-semibold);
}

.property-body .text-muted {
    margin: 0 0 var(--space-2) 0;
    font-size: var(--font-size-sm);
}

.property-location {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--color-gray-500);
    font-size: var(--font-size-sm);
    margin-bottom: var(--space-3);
}

.property-location i {
    color: var(--color-primary);
}

.property-details {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    margin-bottom: var(--space-3);
}

.property-details span {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    font-size: var(--font-size-sm);
    color: var(--color-gray-500);
    background: var(--color-gray-50);
    padding: 4px 10px;
    border-radius: var(--radius-sm);
}

.property-details span i {
    color: var(--color-primary);
}

.property-ref {
    font-size: var(--font-size-xs);
    color: var(--color-gray-400);
    font-family: monospace;
    margin: 0;
}

/* Property Footer */
.property-footer {
    padding: var(--space-3) var(--space-4);
    background: var(--color-gray-50);
    border-top: 1px solid var(--color-gray-200);
    display: flex;
    justify-content: flex-end;
    gap: var(--space-2);
}

/* ============================================================================
   RESPONSIVE STYLES
   ============================================================================ */

@media (max-width: 768px) {
    .search-form {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-input-group {
        min-width: 100%;
    }
    
    .filter-select {
        width: 100%;
    }
    
    .search-form .btn {
        width: 100%;
    }
    
    .properties-grid {
        grid-template-columns: 1fr;
    }
    
    .property-footer {
        flex-direction: column;
    }
    
    .property-footer .btn {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .property-header {
        padding: var(--space-3);
    }
    
    .property-icon {
        width: 40px;
        height: 40px;
    }
    
    .property-icon i {
        font-size: 1.2rem;
    }
    
    .property-body {
        padding: var(--space-3);
    }
    
    .property-body h3 {
        font-size: var(--font-size-base);
    }
}

/* ============================================================================
   BILLING PAGE STYLES
   Added: 2025-12-02
   For: landlord/billing.php
   ============================================================================ */

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

.dashboard-header .header-left {
    flex: 1;
}

.dashboard-header .header-actions {
    display: flex;
    gap: var(--space-2);
    flex-wrap: wrap;
}

/* ============================================================================
   BILLING CONTAINER
   ============================================================================ */

.billing-container {
    max-width: 100%;
}

/* ============================================================================
   BILLING SUMMARY CARDS (Top Stats)
   ============================================================================ */

.billing-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-4);
    margin-bottom: var(--space-4);
}

.billing-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: var(--space-3);
    border-left: 4px solid var(--color-gray-300);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.billing-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.billing-card .icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.billing-card .amount {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-gray-700);
    line-height: 1.2;
}

.billing-card .label {
    font-size: var(--font-size-sm);
    color: var(--color-gray-500);
    margin-top: 2px;
}

/* Billing Card Variants */
.billing-card.rent {
    border-left-color: var(--color-primary);
}

.billing-card.rent .icon {
    background: rgba(102, 126, 234, 0.1);
    color: var(--color-primary);
}

.billing-card.balance {
    border-left-color: var(--color-success);
}

.billing-card.balance .icon {
    background: rgba(76, 175, 80, 0.1);
    color: var(--color-success);
}

.billing-card.balance.negative {
    border-left-color: var(--color-danger);
}

.billing-card.balance.negative .icon {
    background: rgba(244, 67, 54, 0.1);
    color: var(--color-danger);
}

.billing-card.balance.negative .amount {
    color: var(--color-danger);
}

.billing-card.due {
    border-left-color: var(--color-warning);
}

.billing-card.due .icon {
    background: rgba(255, 152, 0, 0.1);
    color: var(--color-warning);
}

/* ============================================================================
   PAYMENT LEGEND
   ============================================================================ */

.payment-legend {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
    padding: var(--space-3);
    background: var(--color-gray-50);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-4);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--font-size-sm);
    color: var(--color-gray-600);
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: var(--radius-full);
    flex-shrink: 0;
}

.legend-dot.paid {
    background: var(--color-success);
}

.legend-dot.current {
    background: var(--color-info);
}

.legend-dot.overdue {
    background: var(--color-danger);
}

.legend-dot.partial {
    background: var(--color-warning);
}

.legend-dot.future {
    background: var(--color-gray-400);
}

/* ============================================================================
   RENT PERIODS TABLE ENHANCEMENTS
   ============================================================================ */

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

.rent-periods-table thead {
    background: var(--color-primary-gradient);
}

.rent-periods-table thead th {
    padding: var(--space-3);
    text-align: left;
    color: var(--color-white);
    font-weight: var(--font-weight-semibold);
    font-size: var(--font-size-sm);
}

.rent-periods-table tbody tr {
    border-bottom: 1px solid var(--color-gray-200);
    transition: background var(--transition-fast);
}

.rent-periods-table tbody td {
    padding: var(--space-3);
    font-size: var(--font-size-sm);
}

/* Period Row Variants */
.period-future {
    background: var(--color-gray-50);
    border-left: 4px solid var(--color-gray-400);
}

/* ============================================================================
   PAYMENT STATUS BADGES
   ============================================================================ */

.payment-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: var(--radius-xl);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-semibold);
    text-transform: uppercase;
}

.payment-status.paid {
    background: var(--color-success-light);
    color: var(--color-success-dark);
}

.payment-status.pending {
    background: var(--color-warning-light);
    color: var(--color-warning-dark);
}

.payment-status.overdue {
    background: var(--color-danger-light);
    color: var(--color-danger-dark);
}

.payment-status.partial {
    background: var(--color-info-light);
    color: var(--color-info-dark);
}

.payment-status.future {
    background: var(--color-gray-100);
    color: var(--color-gray-500);
}

/* ============================================================================
   AMOUNT DISPLAY
   ============================================================================ */

.amount-display {
    font-weight: var(--font-weight-semibold);
}

.amount-display.positive {
    color: var(--color-success);
}

.amount-display.negative {
    color: var(--color-danger);
}

/* ============================================================================
   PAYMENT ACTIONS (Bottom Buttons)
   ============================================================================ */

.payment-actions {
    display: flex;
    gap: var(--space-3);
    flex-wrap: wrap;
    margin-top: var(--space-4);
    padding-top: var(--space-4);
    border-top: 1px solid var(--color-gray-200);
}

/* ============================================================================
   RESPONSIVE STYLES
   ============================================================================ */

@media (max-width: 768px) {
    .billing-summary {
        grid-template-columns: 1fr;
    }
    
    .billing-card {
        padding: var(--space-3);
    }
    
    .billing-card .icon {
        width: 45px;
        height: 45px;
    }
    
    .billing-card .amount {
        font-size: var(--font-size-lg);
    }
    
    .payment-legend {
        flex-direction: column;
        gap: var(--space-2);
    }
    
    .rent-periods-table thead {
        display: none;
    }
    
    .rent-periods-table tbody tr {
        display: block;
        margin-bottom: var(--space-3);
        border: 1px solid var(--color-gray-200);
        border-radius: var(--radius-md);
        padding: var(--space-3);
    }
    
    .rent-periods-table tbody td {
        display: flex;
        justify-content: space-between;
        padding: var(--space-2) 0;
        border-bottom: 1px solid var(--color-gray-100);
    }
    
    .rent-periods-table tbody td:last-child {
        border-bottom: none;
    }
    
    .rent-periods-table tbody td::before {
        content: attr(data-label);
        font-weight: var(--font-weight-semibold);
        color: var(--color-gray-600);
    }
    
    .payment-actions {
        flex-direction: column;
    }
    
    .payment-actions .btn {
        width: 100%;
        text-align: center;
    }
    
    .dashboard-header .header-actions {
        width: 100%;
        justify-content: stretch;
    }
    
    .dashboard-header .header-actions .btn {
        flex: 1;
    }
}

@media (max-width: 576px) {
    .billing-card .icon {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
}

/* ============================================================================
   BILLING PAGE STYLES
   Added: 2025-12-02
   For: landlord/billing.php
   ============================================================================ */

/* ============================================================================
   FORM LABEL FIX - Required Asterisk (Override)
   ============================================================================ */

/* Fix: Show red asterisk only, not red label text */
.form-group label.required {
    color: var(--color-gray-700);
}

.form-group label.required::after {
    content: " *";
    color: var(--color-danger);
}

/* ============================================================================
   TENANCY SELECTOR CARD FIX
   ============================================================================ */

.tenancy-selector-card {
    padding: var(--space-4);
    background: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

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

.dashboard-header .header-left {
    flex: 1;
}

.dashboard-header .header-actions {
    display: flex;
    gap: var(--space-2);
    flex-wrap: wrap;
}

/* ============================================================================
   BILLING CONTAINER
   ============================================================================ */

.billing-container {
    max-width: 100%;
}

/* ============================================================================
   BILLING SUMMARY CARDS (Top Stats)
   ============================================================================ */

.billing-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-4);
    margin-bottom: var(--space-4);
}

.billing-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: var(--space-3);
    border-left: 4px solid var(--color-gray-300);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.billing-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.billing-card .icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.billing-card .amount {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-gray-700);
    line-height: 1.2;
}

.billing-card .label {
    font-size: var(--font-size-sm);
    color: var(--color-gray-500);
    margin-top: 2px;
}

/* Billing Card Variants */
.billing-card.rent {
    border-left-color: var(--color-primary);
}

.billing-card.rent .icon {
    background: rgba(102, 126, 234, 0.1);
    color: var(--color-primary);
}

.billing-card.balance {
    border-left-color: var(--color-success);
}

.billing-card.balance .icon {
    background: rgba(76, 175, 80, 0.1);
    color: var(--color-success);
}

.billing-card.balance.negative {
    border-left-color: var(--color-danger);
}

.billing-card.balance.negative .icon {
    background: rgba(244, 67, 54, 0.1);
    color: var(--color-danger);
}

.billing-card.balance.negative .amount {
    color: var(--color-danger);
}

.billing-card.due {
    border-left-color: var(--color-warning);
}

.billing-card.due .icon {
    background: rgba(255, 152, 0, 0.1);
    color: var(--color-warning);
}

/* ============================================================================
   PAYMENT LEGEND
   ============================================================================ */

.payment-legend {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
    padding: var(--space-3);
    background: var(--color-gray-50);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-4);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--font-size-sm);
    color: var(--color-gray-600);
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: var(--radius-full);
    flex-shrink: 0;
}

.legend-dot.paid {
    background: var(--color-success);
}

.legend-dot.current {
    background: var(--color-info);
}

.legend-dot.overdue {
    background: var(--color-danger);
}

.legend-dot.partial {
    background: var(--color-warning);
}

.legend-dot.future {
    background: var(--color-gray-400);
}

/* ============================================================================
   RENT PERIODS TABLE ENHANCEMENTS
   ============================================================================ */

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

.rent-periods-table thead {
    background: var(--color-primary-gradient);
}

.rent-periods-table thead th {
    padding: var(--space-3);
    text-align: left;
    color: var(--color-white);
    font-weight: var(--font-weight-semibold);
    font-size: var(--font-size-sm);
}

.rent-periods-table tbody tr {
    border-bottom: 1px solid var(--color-gray-200);
    transition: background var(--transition-fast);
}

.rent-periods-table tbody td {
    padding: var(--space-3);
    font-size: var(--font-size-sm);
}

/* Period Row Variants */
.period-future {
    background: var(--color-gray-50);
    border-left: 4px solid var(--color-gray-400);
}

/* ============================================================================
   PAYMENT STATUS BADGES
   ============================================================================ */

.payment-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: var(--radius-xl);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-semibold);
    text-transform: uppercase;
}

.payment-status.paid {
    background: var(--color-success-light);
    color: var(--color-success-dark);
}

.payment-status.pending {
    background: var(--color-warning-light);
    color: var(--color-warning-dark);
}

.payment-status.overdue {
    background: var(--color-danger-light);
    color: var(--color-danger-dark);
}

.payment-status.partial {
    background: var(--color-info-light);
    color: var(--color-info-dark);
}

.payment-status.future {
    background: var(--color-gray-100);
    color: var(--color-gray-500);
}

/* ============================================================================
   AMOUNT DISPLAY
   ============================================================================ */

.amount-display {
    font-weight: var(--font-weight-semibold);
}

.amount-display.positive {
    color: var(--color-success);
}

.amount-display.negative {
    color: var(--color-danger);
}

/* ============================================================================
   PAYMENT ACTIONS (Bottom Buttons)
   ============================================================================ */

.payment-actions {
    display: flex;
    gap: var(--space-3);
    flex-wrap: wrap;
    margin-top: var(--space-4);
    padding-top: var(--space-4);
    border-top: 1px solid var(--color-gray-200);
}

/* ============================================================================
   RESPONSIVE STYLES
   ============================================================================ */

@media (max-width: 768px) {
    .billing-summary {
        grid-template-columns: 1fr;
    }
    
    .billing-card {
        padding: var(--space-3);
    }
    
    .billing-card .icon {
        width: 45px;
        height: 45px;
    }
    
    .billing-card .amount {
        font-size: var(--font-size-lg);
    }
    
    .payment-legend {
        flex-direction: column;
        gap: var(--space-2);
    }
    
    .rent-periods-table thead {
        display: none;
    }
    
    .rent-periods-table tbody tr {
        display: block;
        margin-bottom: var(--space-3);
        border: 1px solid var(--color-gray-200);
        border-radius: var(--radius-md);
        padding: var(--space-3);
    }
    
    .rent-periods-table tbody td {
        display: flex;
        justify-content: space-between;
        padding: var(--space-2) 0;
        border-bottom: 1px solid var(--color-gray-100);
    }
    
    .rent-periods-table tbody td:last-child {
        border-bottom: none;
    }
    
    .rent-periods-table tbody td::before {
        content: attr(data-label);
        font-weight: var(--font-weight-semibold);
        color: var(--color-gray-600);
    }
    
    .payment-actions {
        flex-direction: column;
    }
    
    .payment-actions .btn {
        width: 100%;
        text-align: center;
    }
    
    .dashboard-header .header-actions {
        width: 100%;
        justify-content: stretch;
    }
    
    .dashboard-header .header-actions .btn {
        flex: 1;
    }
}

@media (max-width: 576px) {
    .billing-card .icon {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
}

/* ============================================================================
   TENANCIES PAGE STYLES
   Added: 2025-12-02
   For: landlord/tenancies.php
   Bootstrap-style utility classes for compatibility
   ============================================================================ */

/* ============================================================================
   CONTAINER FLUID
   ============================================================================ */

.container-fluid {
    width: 100%;
    padding-left: var(--space-4);
    padding-right: var(--space-4);
}

/* ============================================================================
   BACKGROUND COLOUR UTILITIES
   ============================================================================ */

.bg-light {
    background-color: var(--color-gray-100) !important;
}

.bg-primary {
    background: var(--color-primary-gradient) !important;
}

.bg-secondary {
    background-color: var(--color-gray-550) !important;
}

.bg-success {
    background-color: var(--color-success) !important;
}

.bg-warning {
    background-color: var(--color-warning) !important;
}

.bg-danger {
    background-color: var(--color-danger) !important;
}

.bg-info {
    background-color: var(--color-info) !important;
}

/* ============================================================================
   TEXT UTILITIES
   ============================================================================ */

.text-end {
    text-align: right !important;
}

.text-start {
    text-align: left !important;
}

/* ============================================================================
   MARGIN UTILITIES
   ============================================================================ */

.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: var(--space-1) !important; }
.mb-2 { margin-bottom: var(--space-2) !important; }
.mb-3 { margin-bottom: var(--space-3) !important; }
.mb-4 { margin-bottom: var(--space-4) !important; }
.mb-5 { margin-bottom: var(--space-6) !important; }

.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: var(--space-1) !important; }
.mt-2 { margin-top: var(--space-2) !important; }
.mt-3 { margin-top: var(--space-3) !important; }
.mt-4 { margin-top: var(--space-4) !important; }

/* ============================================================================
   BORDER & SHADOW UTILITIES
   ============================================================================ */

.border-0 {
    border: none !important;
}

.shadow-sm {
    box-shadow: var(--shadow-sm) !important;
}

.shadow {
    box-shadow: var(--shadow-md) !important;
}

.h-100 {
    height: 100% !important;
}

/* ============================================================================
   GRID COLUMNS (Bootstrap-style)
   ============================================================================ */

.col-md-2,
.col-md-3 {
    flex: 0 0 auto;
    padding-left: var(--space-2);
    padding-right: var(--space-2);
}

@media (min-width: 768px) {
    .col-md-2 {
        flex: 0 0 16.666667%;
        max-width: 16.666667%;
    }
    
    .col-md-3 {
        flex: 0 0 25%;
        max-width: 25%;
    }
}

@media (max-width: 767px) {
    .col-md-2,
    .col-md-3 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: var(--space-3);
    }
}

/* ============================================================================
   FORM LABEL
   ============================================================================ */

.form-label {
    display: block;
    margin-bottom: var(--space-1);
    font-weight: var(--font-weight-medium);
    color: var(--color-gray-700);
    font-size: var(--font-size-sm);
}

/* ============================================================================
   STAT CARD ENHANCEMENTS
   ============================================================================ */

.stat-card {
    border-radius: var(--radius-md);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.stat-value {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-bold);
    margin: 0;
    line-height: 1.2;
}

.stat-label {
    font-size: var(--font-size-xs);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.9;
}

/* Stat card with light background needs dark text */
.bg-light .stat-value,
.bg-light .stat-label {
    color: var(--color-gray-700);
}

/* ============================================================================
   TABLE ENHANCEMENTS
   ============================================================================ */

.table-striped tbody tr:nth-of-type(odd) {
    background-color: var(--color-gray-50);
}

.table-hover tbody tr:hover {
    background-color: rgba(102, 126, 234, 0.05);
}

/* Sortable table headers */
.table thead th a {
    color: inherit;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: var(--space-1);
}

.table thead th a:hover {
    color: var(--color-white);
    opacity: 0.8;
}

/* ============================================================================
   FILTERS CARD ENHANCEMENTS
   ============================================================================ */

.card-header.bg-light {
    background-color: var(--color-gray-50) !important;
    border-bottom: 1px solid var(--color-gray-200);
}

.card-header.bg-light h5 {
    color: var(--color-gray-700);
    margin: 0;
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.card-header.bg-light h5 i {
    color: var(--color-primary);
}

/* ============================================================================
   BADGE BACKGROUND COLOURS
   ============================================================================ */

.badge.bg-success {
    background-color: var(--color-success) !important;
    color: var(--color-white);
}

.badge.bg-warning {
    background-color: var(--color-warning) !important;
    color: var(--color-white);
}

.badge.bg-danger {
    background-color: var(--color-danger) !important;
    color: var(--color-white);
}

.badge.bg-info {
    background-color: var(--color-info) !important;
    color: var(--color-white);
}

.badge.bg-secondary {
    background-color: var(--color-gray-550) !important;
    color: var(--color-white);
}

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

/* ============================================================================
   RESPONSIVE ADJUSTMENTS
   ============================================================================ */

@media (max-width: 768px) {
    .container-fluid {
        padding-left: var(--space-3);
        padding-right: var(--space-3);
    }
    
    .stats-row {
        gap: var(--space-2);
    }
    
    .stat-card-wrapper {
        flex: 1 1 calc(33.333% - var(--space-2));
        min-width: 90px;
    }
    
    .stat-value {
        font-size: var(--font-size-lg);
    }
    
    .stat-label {
        font-size: 0.65rem;
    }
    
    /* Stack filters vertically */
    .card-body .row {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .stat-card-wrapper {
        flex: 1 1 calc(50% - var(--space-2));
    }
}

/**
 * Rent Management Hub - Form Pages CSS Additions
 * Version: 1.0.0
 * Date: 2025-12-02
 * 
 * MISSING STYLES FOR:
 * - add_charge.php
 * - add_property.php
 * - add_future_tenant.php
 * - application_settings.php
 * - application_downloads.php
 * 
 * APPEND THIS TO YOUR MAIN style.css
 */

/* ============================================================================
   FORM CONTAINER LAYOUTS
   ============================================================================ */

.form-container {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: var(--space-6);
    max-width: 1200px;
    margin: 0 auto;
}

.form-container.add-charge-container,
.form-container.add-property-container {
    align-items: start;
}

@media (max-width: 992px) {
    .form-container {
        grid-template-columns: 1fr;
    }
}

/* ============================================================================
   CONTENT GRID (Two-column layout with sidebar)
   ============================================================================ */

.content-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: var(--space-6);
    max-width: 1400px;
    margin: 0 auto;
}

.content-grid > .main-content {
    min-width: 0;
}

.content-grid > .sidebar {
    position: sticky;
    top: 80px;
    align-self: start;
}

@media (max-width: 1024px) {
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .content-grid > .sidebar {
        position: relative;
        top: 0;
    }
}

/* ============================================================================
   SIDEBAR STYLES
   ============================================================================ */

.sidebar {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.sidebar-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.help-sidebar {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.help-sidebar .help-card,
.sidebar .help-card,
.sidebar .info-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.help-sidebar .help-card h3,
.sidebar .help-card h3,
.sidebar .info-card h3 {
    margin: 0;
    font-size: var(--font-size-base);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.help-sidebar .help-section {
    margin-bottom: var(--space-4);
}

.help-sidebar .help-section:last-child {
    margin-bottom: 0;
}

.help-sidebar .help-section h4 {
    color: var(--color-primary);
    font-size: var(--font-size-sm);
    margin: 0 0 var(--space-2) 0;
    font-weight: var(--font-weight-semibold);
}

.help-sidebar .help-section p {
    margin: 0 0 var(--space-2) 0;
    font-size: var(--font-size-sm);
    color: var(--color-gray-500);
}

.help-sidebar .help-section ul {
    margin: 0;
    padding-left: var(--space-4);
    font-size: var(--font-size-sm);
    color: var(--color-gray-600);
}

.help-sidebar .help-section ul li {
    margin-bottom: 4px;
}

/* ============================================================================
   PROFESSIONAL CARD
   ============================================================================ */

.professional-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: var(--space-6);
}

/* ============================================================================
   FORM CARD (for add_charge.php)
   ============================================================================ */

.form-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: var(--space-5);
}

/* ============================================================================
   SECTION HEADER WITH ICON
   ============================================================================ */

.section-header {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
    padding-bottom: var(--space-3);
    border-bottom: 2px solid var(--color-gray-150);
}

.section-icon {
    width: 45px;
    height: 45px;
    background: var(--color-primary-gradient);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.section-header h2 {
    margin: 0;
    font-size: var(--font-size-lg);
    color: var(--color-gray-700);
}

/* ============================================================================
   FORM GRID
   ============================================================================ */

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
}

.form-grid .full-width {
    grid-column: 1 / -1;
}

/* Remove margin-bottom from form-group when inside form-grid (grid gap handles spacing) */
.form-grid > .form-group {
    margin-bottom: 0;
}

/* Form Grid - Info Display Pattern (plain div with strong/span, NOT form-group) */
.form-grid > div:not(.form-group) {
    padding: var(--space-3);
    background: var(--color-gray-50);
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-gray-200);
}

.form-grid > div:not(.form-group) > strong {
    display: block;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    color: var(--color-gray-600);
    margin-bottom: var(--space-1);
}

.form-grid > div:not(.form-group) > span,
.form-grid > div:not(.form-group) > .status-badge {
    display: inline-block;
    font-size: var(--font-size-base);
    color: var(--color-gray-800);
}

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

/* ============================================================================
   FORM ROW 2-COLUMN
   ============================================================================ */

.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
    margin-bottom: var(--space-4);
}

@media (max-width: 600px) {
    .form-row-2 {
        grid-template-columns: 1fr;
    }
}

/* ============================================================================
   FORM HELP TEXT
   ============================================================================ */

.form-help {
    display: block;
    margin-top: var(--space-1);
    font-size: var(--font-size-sm);
    color: var(--color-gray-500);
}

small.form-help {
    display: block;
    margin-top: var(--space-1);
    font-size: var(--font-size-sm);
    color: var(--color-gray-500);
}

/* ============================================================================
   TENANCY INFO BOX
   ============================================================================ */

.tenancy-info-box {
    background: var(--color-gray-50);
    border-radius: var(--radius-md);
    padding: var(--space-4);
    margin-bottom: var(--space-5);
    border-left: 4px solid var(--color-primary);
}

.tenancy-info-box h3 {
    margin: 0 0 var(--space-3) 0;
    font-size: var(--font-size-md);
    color: var(--color-primary);
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-2) 0;
    border-bottom: 1px solid var(--color-gray-200);
}

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

.info-row span {
    color: var(--color-gray-500);
    font-size: var(--font-size-sm);
}

.info-row strong {
    color: var(--color-gray-700);
}

/* ============================================================================
   CHARGE/CREDIT TYPE SELECTOR
   ============================================================================ */

.type-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3);
}

.type-option {
    cursor: pointer;
}

.type-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.type-card {
    background: var(--color-white);
    border: 2px solid var(--color-gray-200);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    text-align: center;
    transition: all var(--transition-base);
}

.type-card:hover {
    border-color: var(--color-gray-400);
    background: var(--color-gray-50);
}

.type-card i {
    font-size: 2rem;
    margin-bottom: var(--space-2);
    display: block;
}

.type-card strong {
    display: block;
    font-size: var(--font-size-md);
    color: var(--color-gray-700);
    margin-bottom: 4px;
}

.type-card p {
    margin: 0;
    font-size: var(--font-size-sm);
    color: var(--color-gray-500);
}

/* Charge option */
.charge-option .type-card i {
    color: var(--color-danger);
}

.charge-option input:checked + .type-card {
    border-color: var(--color-danger);
    background: var(--color-danger-light);
}

.charge-option input:checked + .type-card i {
    color: var(--color-danger);
}

/* Credit option */
.credit-option .type-card i {
    color: var(--color-success);
}

.credit-option input:checked + .type-card {
    border-color: var(--color-success);
    background: var(--color-success-light);
}

.credit-option input:checked + .type-card i {
    color: var(--color-success);
}

/* ============================================================================
   CUSTOM TOGGLE SWITCH
   ============================================================================ */

.status-toggle-card {
    background: var(--color-gray-50);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    border: 1px solid var(--color-gray-200);
}

.toggle-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-4);
}

.toggle-label {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-weight: var(--font-weight-semibold);
    color: var(--color-gray-700);
    margin-bottom: 0;
}

.toggle-label i {
    color: var(--color-primary);
}

.toggle-description {
    margin: 4px 0 0 0;
    font-size: var(--font-size-sm);
    color: var(--color-gray-500);
}

.custom-switch {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.switch-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.switch-label {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
    cursor: pointer;
}

.switch-slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-gray-300);
    border-radius: 26px;
    transition: var(--transition-base);
}

.switch-slider::before {
    content: '';
    position: absolute;
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background: var(--color-white);
    border-radius: var(--radius-full);
    transition: var(--transition-base);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.switch-input:checked + .switch-label .switch-slider {
    background: var(--color-success);
}

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

.switch-text {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    color: var(--color-gray-600);
    min-width: 60px;
}

/* ============================================================================
   STATUS INFO (for sidebar)
   ============================================================================ */

.status-info {
    margin-bottom: var(--space-4);
}

.status-info:last-child {
    margin-bottom: 0;
}

.status-info p {
    margin: var(--space-2) 0 0 0;
    font-size: var(--font-size-sm);
    color: var(--color-gray-500);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: var(--radius-xl);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
}

.status-badge.status-active {
    background: var(--color-success-light);
    color: var(--color-success-dark);
}

.status-badge.status-disabled {
    background: var(--color-gray-100);
    color: var(--color-gray-500);
}

/* ============================================================================
   INFO CARD HEADER/BODY (for sidebars)
   ============================================================================ */

.info-card-header {
    background: var(--color-primary-gradient);
    color: var(--color-white);
    padding: var(--space-3) var(--space-4);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.info-card-header i {
    font-size: 1.1rem;
}

.info-card-header h3 {
    margin: 0;
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-semibold);
    color: var(--color-white);
}

.info-card-body {
    padding: var(--space-4);
}

.info-card-body h4 {
    color: var(--color-primary);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    margin: var(--space-3) 0 var(--space-2) 0;
}

.info-card-body h4:first-child {
    margin-top: 0;
}

.info-card-body p {
    font-size: var(--font-size-sm);
    color: var(--color-gray-600);
    margin: 0 0 var(--space-2) 0;
}

.info-card-body .info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-card-body .info-list li {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: 6px 0;
    font-size: var(--font-size-sm);
    color: var(--color-gray-600);
}

.info-card-body .info-list li i {
    color: var(--color-primary);
    width: 16px;
    text-align: center;
}

/* ============================================================================
   FILTERS FORM
   ============================================================================ */

.filters-form {
    background: var(--color-gray-50);
    padding: var(--space-4);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-4);
}

.filters-row {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    align-items: flex-end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 150px;
}

.filter-group label {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    color: var(--color-gray-600);
}

.filter-actions {
    display: flex;
    gap: var(--space-2);
    margin-left: auto;
}

@media (max-width: 768px) {
    .filters-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-group {
        width: 100%;
    }
    
    .filter-actions {
        margin-left: 0;
        width: 100%;
    }
    
    .filter-actions .btn {
        flex: 1;
    }
}

/* ============================================================================
   FORMS LIST (application_settings.php)
   ============================================================================ */

.forms-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.forms-list .form-card {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-4);
    background: var(--color-white);
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
}

.forms-list .form-card:hover {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-sm);
}

.form-icon {
    width: 50px;
    height: 50px;
    background: var(--color-primary-gradient);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    font-size: 1.5rem;
    flex-shrink: 0;
}

.form-icon .fa-file-pdf {
    color: var(--color-white);
}

.form-icon .fa-file-word {
    color: var(--color-white);
}

.form-details {
    flex: 1;
    min-width: 0;
}

.form-details h3 {
    margin: 0 0 var(--space-1) 0;
    font-size: var(--font-size-md);
    color: var(--color-gray-700);
}

.form-instructions {
    margin: 0 0 var(--space-2) 0;
    font-size: var(--font-size-sm);
    color: var(--color-gray-500);
    line-height: 1.5;
}

.form-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    margin: 0;
}

.form-meta small {
    font-size: var(--font-size-xs);
    color: var(--color-gray-400);
}

.forms-list .form-actions {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    flex-shrink: 0;
}

@media (max-width: 600px) {
    .forms-list .form-card {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    
    .form-icon {
        margin: 0 auto;
    }
    
    .form-meta {
        justify-content: center;
    }
    
    .forms-list .form-actions {
        justify-content: center;
        flex-wrap: wrap;
    }
}

/* ============================================================================
   UPLOAD FORM
   ============================================================================ */

.upload-form {
    padding: var(--space-4);
}

.upload-form .form-group {
    margin-bottom: var(--space-4);
}

.upload-form .form-group:last-of-type {
    margin-bottom: var(--space-4);
}

/* ============================================================================
   CHARGE FORM
   ============================================================================ */

.charge-form .form-section {
    margin-bottom: var(--space-5);
}

.charge-form .form-section h2 {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--font-size-lg);
    color: var(--color-gray-700);
    margin: 0 0 var(--space-4) 0;
    padding-bottom: var(--space-3);
    border-bottom: 2px solid var(--color-gray-150);
}

.charge-form .form-section h2 i {
    color: var(--color-primary);
}

/* ============================================================================
   BUTTON BLOCK (Full Width)
   ============================================================================ */

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
    margin-bottom: var(--space-2);
}

.btn-block:last-child {
    margin-bottom: 0;
}

/* ============================================================================
   BUTTON GROUP
   ============================================================================ */

.btn-group {
    display: inline-flex;
    gap: var(--space-1);
}

.btn-group .btn {
    border-radius: 0;
}

.btn-group .btn:first-child {
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}

.btn-group .btn:last-child {
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.btn-group .btn:only-child {
    border-radius: var(--radius-sm);
}

/* ============================================================================
   CONTENT WRAPPER (add_future_tenant.php)
   ============================================================================ */

.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: var(--space-6);
    max-width: 1400px;
    margin: 0 auto;
}

@media (max-width: 1024px) {
    .content-wrapper {
        grid-template-columns: 1fr;
    }
}

/* ============================================================================
   ALERT ERROR (alias for alert-danger)
   ============================================================================ */

.alert-error {
    background: var(--color-danger-light);
    color: var(--color-danger-dark);
    border-left: 4px solid var(--color-danger);
}

.alert-error i {
    color: var(--color-danger);
}

/* ============================================================================
   MODERN FORM ENHANCEMENTS
   ============================================================================ */

.modern-form .form-section {
    margin-bottom: var(--space-6);
    padding-bottom: var(--space-5);
    border-bottom: 1px solid var(--color-gray-200);
}

.modern-form .form-section:last-of-type {
    border-bottom: none;
    margin-bottom: var(--space-4);
    padding-bottom: 0;
}

/* ============================================================================
   RESPONSIVE ADJUSTMENTS
   ============================================================================ */

@media (max-width: 768px) {
    .form-container {
        gap: var(--space-4);
    }
    
    .professional-card {
        padding: var(--space-4);
    }
    
    .form-card {
        padding: var(--space-4);
    }
    
    .tenancy-info-box {
        padding: var(--space-3);
    }
    
    .type-selector {
        grid-template-columns: 1fr;
    }
    
    .toggle-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-3);
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-2);
    }
}

@media (max-width: 480px) {
    .info-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .custom-switch {
        width: 100%;
        justify-content: space-between;
    }
}

/**
 * Rent Management Hub - CSS Additions Batch 2
 * Version: 1.0.0
 * Date: 2025-12-02
 * 
 * MISSING STYLES FOR:
 * - billing.php
 * - checkout_reports.php
 * - deposit_management.php
 * - document_acknowledgements.php
 * - document_management.php
 * - edit_property.php
 * - end_tenancy_wizard.php
 * 
 * APPEND THIS TO YOUR MAIN style.css
 */

/* ============================================================================
   CHECKOUT REPORTS (checkout_reports.php)
   ============================================================================ */

.checkout-reports-container {
    max-width: 1400px;
    margin: 0 auto;
}

/* Tab Navigation */
.tab-navigation {
    display: flex;
    gap: var(--space-2);
    margin-bottom: var(--space-5);
    background: var(--color-white);
    padding: var(--space-2);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.tab-btn {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-md);
    color: var(--color-gray-600);
    text-decoration: none;
    font-weight: var(--font-weight-medium);
    transition: all var(--transition-base);
    border: 2px solid transparent;
}

.tab-btn:hover {
    background: var(--color-gray-100);
    color: var(--color-primary);
}

.tab-btn.active {
    background: var(--color-primary-gradient);
    color: var(--color-white);
}

.tab-btn i {
    font-size: 1rem;
}

.tab-content {
    margin-bottom: var(--space-5);
}

/* Filters Card */
.filters-card {
    background: var(--color-white);
    padding: var(--space-4);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    margin-bottom: var(--space-4);
}

/* Reports Table */
.reports-table {
    width: 100%;
    border-collapse: collapse;
}

.reports-table th,
.reports-table td {
    padding: var(--space-3);
    text-align: left;
    border-bottom: 1px solid var(--color-gray-200);
}

.reports-table th {
    background: var(--color-gray-50);
    font-weight: var(--font-weight-semibold);
    color: var(--color-gray-700);
    font-size: var(--font-size-sm);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.reports-table tbody tr:hover {
    background: var(--color-gray-50);
}

/* Analytics Grid */
.analytics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-4);
    margin-bottom: var(--space-5);
}

.analytics-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    text-align: center;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--color-gray-300);
}

.analytics-card.primary { border-left-color: var(--color-primary); }
.analytics-card.success { border-left-color: var(--color-success); }
.analytics-card.info { border-left-color: var(--color-info); }
.analytics-card.warning { border-left-color: var(--color-warning); }
.analytics-card.danger { border-left-color: var(--color-danger); }

.analytics-card .card-icon {
    font-size: 2rem;
    color: var(--color-primary);
    margin-bottom: var(--space-2);
}

.analytics-card .card-value {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-gray-800);
    margin-bottom: var(--space-1);
}

.analytics-card .card-label {
    font-size: var(--font-size-sm);
    color: var(--color-gray-500);
}

/* Analytics Section */
.analytics-section {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    margin-bottom: var(--space-4);
    box-shadow: var(--shadow-sm);
}

.analytics-section h3 {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin: 0 0 var(--space-4) 0;
    font-size: var(--font-size-lg);
    color: var(--color-gray-700);
}

.analytics-section h3 i {
    color: var(--color-primary);
}

/* Timing Breakdown */
.timing-breakdown {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.timing-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3);
    background: var(--color-gray-50);
    border-radius: var(--radius-md);
}

.timing-item.early { border-left: 4px solid #4caf50; }
.timing-item.ontime { border-left: 4px solid #2196f3; }
.timing-item.late { border-left: 4px solid #f44336; }

.timing-bar {
    height: 8px;
    background: var(--color-primary);
    border-radius: var(--radius-full);
    min-width: 4px;
    max-width: 200px;
}

.timing-item.early .timing-bar { background: #4caf50; }
.timing-item.ontime .timing-bar { background: #2196f3; }
.timing-item.late .timing-bar { background: #f44336; }

.timing-info {
    display: flex;
    gap: var(--space-3);
    align-items: center;
}

.timing-count {
    font-weight: var(--font-weight-bold);
    font-size: var(--font-size-lg);
    min-width: 30px;
}

.timing-label {
    color: var(--color-gray-600);
    font-size: var(--font-size-sm);
}

/* Notice Type Grid */
.notice-type-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--space-3);
}

.notice-type-card {
    background: var(--color-white);
    border: 1px solid var(--color-gray-200);
    border-left: 4px solid var(--color-primary);
    border-radius: var(--radius-md);
    padding: var(--space-4);
    text-align: center;
}

.notice-type-card .notice-count {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-gray-800);
}

.notice-type-card .notice-label {
    font-size: var(--font-size-sm);
    color: var(--color-gray-500);
}

/* Monthly Chart */
.monthly-chart {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    height: 200px;
    gap: var(--space-2);
    padding: var(--space-4) 0;
}

.chart-bar {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

.bar-fill {
    width: 100%;
    max-width: 40px;
    background: var(--color-primary-gradient);
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: var(--space-1);
    min-height: 20px;
}

.bar-value {
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-bold);
    color: var(--color-white);
}

.bar-label {
    margin-top: var(--space-2);
    font-size: var(--font-size-xs);
    color: var(--color-gray-500);
}

/* Availability */
.availability-header {
    margin-bottom: var(--space-4);
}

.availability-header h3 {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin: 0;
    font-size: var(--font-size-lg);
    color: var(--color-gray-700);
}

.availability-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--space-4);
}

.availability-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--color-gray-300);
}

.availability-card.status-available_now { border-left-color: #4caf50; }
.availability-card.status-checkout_pending { border-left-color: #ff9800; }
.availability-card.status-ending_soon { border-left-color: #2196f3; }
.availability-card.status-occupied { border-left-color: #9e9e9e; }

.availability-status {
    margin-bottom: var(--space-3);
}

.availability-status .status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: var(--radius-xl);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
}

.status-badge.available { background: #e8f5e9; color: #2e7d32; }
.status-badge.pending { background: #fff3e0; color: #ef6c00; }
.status-badge.ending { background: #e3f2fd; color: #1565c0; }
.status-badge.occupied { background: #f5f5f5; color: #616161; }

.property-info h4 {
    margin: 0 0 var(--space-1) 0;
    font-size: var(--font-size-md);
    color: var(--color-gray-800);
}

.property-info p {
    margin: 0 0 var(--space-2) 0;
    color: var(--color-gray-500);
    font-size: var(--font-size-sm);
}

.property-beds,
.property-rent {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: var(--font-size-sm);
    color: var(--color-gray-600);
    margin-right: var(--space-3);
}

.ending-date {
    margin-top: var(--space-3);
    padding-top: var(--space-3);
    border-top: 1px solid var(--color-gray-200);
    font-size: var(--font-size-sm);
    color: var(--color-gray-600);
}

.ending-date i {
    color: var(--color-warning);
    margin-right: var(--space-1);
}

.card-actions {
    margin-top: var(--space-3);
    display: flex;
    gap: var(--space-2);
}

/* ============================================================================
   DEPOSIT MANAGEMENT (deposit_management.php)
   ============================================================================ */

/* Deposit Container */
.deposit-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-4);
}

/* Deposit Header */
.deposit-header {
    margin-bottom: var(--space-5);
}

.deposit-header h1 {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-gray-800);
    margin: 0 0 var(--space-2) 0;
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.deposit-header h1 i {
    color: var(--color-primary);
}

.deposit-header .subtitle {
    font-size: var(--font-size-base);
    color: var(--color-gray-600);
    margin: 0;
}

/* Deposit Summary Grid - 3 column layout for stat cards */
.deposit-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4);
    margin-bottom: var(--space-5);
}

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

/* Deposit Tab Navigation */
.deposit-tab-nav {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-bottom: var(--space-5);
    border-bottom: 2px solid var(--color-gray-200);
    padding-bottom: var(--space-3);
}

.deposit-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    background: var(--color-gray-100);
    color: var(--color-gray-600);
    border-radius: var(--radius-md);
    text-decoration: none;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.deposit-tab-btn:hover {
    background: var(--color-gray-200);
    color: var(--color-gray-800);
}

.deposit-tab-btn.active {
    background: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
}

.deposit-tab-btn i {
    font-size: var(--font-size-sm);
}

@media (max-width: 576px) {
    .deposit-tab-nav {
        flex-direction: column;
    }
    
    .deposit-tab-btn {
        justify-content: center;
        width: 100%;
    }
}

/* Deposit Info Box */
.deposit-info-box {
    background: var(--color-gray-50);
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-md);
    padding: var(--space-4);
    margin-bottom: var(--space-4);
}

.deposit-info-box h4 {
    margin: 0 0 var(--space-2) 0;
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-semibold);
    color: var(--color-gray-800);
}

.deposit-info-box p {
    margin: 0;
    font-size: var(--font-size-sm);
    color: var(--color-gray-600);
}

.deposit-info-box.warning {
    background: #fff3cd;
    border-color: #ffc107;
}

.deposit-info-box.success {
    background: #d1e7dd;
    border-color: #198754;
}

.deposit-info-box.danger {
    background: #f8d7da;
    border-color: #dc3545;
}

/* Deposit Summary Card */
.deposit-summary-card {
    background: var(--color-white);
    border-radius: var(--radius-md);
    padding: var(--space-4);
    text-align: center;
    border: 1px solid var(--color-gray-200);
}

.deposit-summary-card.primary { border-top: 3px solid var(--color-primary); }
.deposit-summary-card.danger { border-top: 3px solid var(--color-danger); }
.deposit-summary-card.success { border-top: 3px solid var(--color-success); }

.deposit-summary-card .amount {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-gray-800);
}

.deposit-summary-card.danger .amount { color: var(--color-danger); }
.deposit-summary-card.success .amount { color: var(--color-success); }

.deposit-summary-card .label {
    font-size: var(--font-size-sm);
    color: var(--color-gray-500);
    margin-top: var(--space-1);
}

/* Deposit Timeline */
.deposit-timeline {
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
}

.deposit-timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--color-gray-200);
}

.deposit-timeline-item {
    display: flex;
    gap: var(--space-4);
    padding: var(--space-4) 0;
    position: relative;
}

.deposit-timeline-icon {
    width: 40px;
    height: 40px;
    background: var(--color-primary-gradient);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    flex-shrink: 0;
    z-index: 1;
}

.deposit-timeline-content {
    flex: 1;
}

.deposit-timeline-content h4 {
    margin: 0 0 var(--space-1) 0;
    font-size: var(--font-size-base);
    color: var(--color-gray-800);
}

.deposit-timeline-content p {
    margin: 0;
    font-size: var(--font-size-sm);
    color: var(--color-gray-600);
}

.deposit-timeline-date {
    font-size: var(--font-size-sm);
    color: var(--color-gray-500);
    white-space: nowrap;
}

/* Deduction Category Badge */
.deduction-category-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: var(--radius-xl);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
}

/* ============================================================================
   DOCUMENT ACKNOWLEDGEMENTS (document_acknowledgements.php)
   ============================================================================ */

.acknowledgement-status-section {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    margin-bottom: var(--space-5);
}

.tenant-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--space-3);
    flex-wrap: wrap;
    gap: var(--space-2);
}

.tenant-email {
    font-size: var(--font-size-sm);
    color: var(--color-gray-500);
    margin-top: 4px;
}

.ack-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: var(--radius-xl);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
}

.ack-status-badge.complete { background: #e8f5e9; color: #2e7d32; }
.ack-status-badge.partial { background: #fff3e0; color: #ef6c00; }
.ack-status-badge.pending { background: #e3f2fd; color: #1565c0; }
.ack-status-badge.no-docs { background: #f5f5f5; color: #616161; }

.status-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: var(--space-3);
    padding: var(--space-3);
    background: var(--color-gray-50);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-3);
}

.status-metric-label {
    font-size: var(--font-size-xs);
    color: var(--color-gray-500);
    margin-bottom: 4px;
}

.status-metric-value {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-bold);
    color: var(--color-gray-800);
}

/* Acknowledgement Timeline */
.ack-timeline {
    padding: var(--space-3);
    background: var(--color-gray-50);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-3);
}

.ack-timeline-item {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) 0;
    font-size: var(--font-size-sm);
    color: var(--color-gray-600);
}

.ack-timeline-icon {
    color: var(--color-success);
}

/* Detail Actions */
.detail-actions {
    margin-bottom: var(--space-3);
}

.btn-toggle-details {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-3);
    background: var(--color-gray-100);
    border: 1px solid var(--color-gray-300);
    border-radius: var(--radius-md);
    font-size: var(--font-size-sm);
    color: var(--color-gray-600);
    cursor: pointer;
    transition: all var(--transition-base);
}

.btn-toggle-details:hover {
    background: var(--color-gray-200);
}

.toggle-icon {
    transition: transform var(--transition-base);
}

.toggle-icon.rotated {
    transform: rotate(180deg);
}

/* Document Detail List */
.document-detail-list {
    border-top: 1px solid var(--color-gray-200);
    padding-top: var(--space-3);
}

.document-item-detail {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-3);
    background: var(--color-gray-50);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-2);
    gap: var(--space-3);
}

.document-item-info {
    flex: 1;
    min-width: 0;
}

.document-item-name {
    font-weight: var(--font-weight-semibold);
    color: var(--color-gray-800);
    margin-bottom: 4px;
}

.document-item-meta {
    font-size: var(--font-size-xs);
    color: var(--color-gray-500);
}

.document-item-status {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    text-align: right;
}

.doc-status-icon {
    font-size: 1.5rem;
}

.doc-status-text {
    font-size: var(--font-size-sm);
    color: var(--color-gray-600);
}

.doc-status-text small {
    display: block;
    color: var(--color-gray-400);
}

/* No Docs Message */
.no-docs-message {
    text-align: center;
    padding: var(--space-5);
    color: var(--color-gray-500);
}

.no-docs-icon {
    font-size: 3rem;
    margin-bottom: var(--space-3);
}

.no-docs-message p {
    margin: 0 0 var(--space-3) 0;
}

/* Summary Stats */
.summary-stats {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    margin-bottom: var(--space-5);
    box-shadow: var(--shadow-sm);
}

.summary-stats h3 {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin: 0 0 var(--space-4) 0;
    font-size: var(--font-size-lg);
    color: var(--color-gray-700);
}

.summary-stats h3 i {
    color: var(--color-primary);
}

.summary-stats .stat-card.highlight {
    background: var(--color-primary-gradient);
}

.summary-stats .stat-card.highlight .stat-value,
.summary-stats .stat-card.highlight .stat-label {
    color: var(--color-white);
}

/* ============================================================================
   DOCUMENT MANAGEMENT (document_management.php)
   ============================================================================ */

.doc-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.doc-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3);
    background: var(--color-gray-50);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-gray-200);
}

.doc-item:hover {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-sm);
}

.doc-icon {
    width: 50px;
    height: 50px;
    background: var(--color-white);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
    border: 1px solid var(--color-gray-200);
}

.doc-info {
    flex: 1;
    min-width: 0;
}

.doc-info strong {
    display: block;
    color: var(--color-gray-800);
    margin-bottom: 4px;
}

.doc-info small {
    display: block;
    font-size: var(--font-size-xs);
    color: var(--color-gray-500);
}

.doc-actions {
    display: flex;
    gap: var(--space-2);
    flex-shrink: 0;
}

.send-actions {
    display: flex;
    gap: var(--space-2);
    padding: var(--space-4);
    background: var(--color-gray-50);
    border-radius: var(--radius-md);
    margin-top: var(--space-4);
    flex-wrap: wrap;
}

/* ============================================================================
   EDIT PROPERTY (edit_property.php)
   ============================================================================ */

.tenancy-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.tenancy-item {
    padding: var(--space-3);
    background: var(--color-gray-50);
    border-radius: var(--radius-md);
    border-left: 3px solid var(--color-primary);
}

.tenancy-ref {
    margin-bottom: var(--space-1);
}

.tenancy-ref a {
    color: var(--color-primary);
    font-weight: var(--font-weight-semibold);
    text-decoration: none;
}

.tenancy-ref a:hover {
    text-decoration: underline;
}

.tenancy-status {
    margin-bottom: var(--space-1);
}

.tenancy-dates {
    font-size: var(--font-size-xs);
    color: var(--color-gray-500);
}

.property-info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-2) 0;
    border-bottom: 1px solid var(--color-gray-100);
}

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

.property-info-item span {
    color: var(--color-gray-500);
    font-size: var(--font-size-sm);
}

.property-info-item strong {
    color: var(--color-gray-800);
}

.property-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: var(--radius-xl);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-semibold);
}

.property-status-badge.status-active {
    background: var(--color-success-light);
    color: var(--color-success-dark);
}

.property-status-badge.status-disabled {
    background: var(--color-gray-100);
    color: var(--color-gray-500);
}

.warning-card {
    border: 1px solid var(--color-danger);
    background: var(--color-danger-light);
}

.warning-card .info-card-header {
    background: var(--color-danger);
}

.warning-card .info-card-body p {
    color: var(--color-danger-dark);
}

/* ============================================================================
   BILLING (billing.php)
   ============================================================================ */

.record-payment-form {
    background: var(--color-gray-50);
    padding: var(--space-4);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-4);
}

.record-payment-form .form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--space-3);
    margin-bottom: var(--space-3);
}

/* ============================================================================
   END TENANCY WIZARD (end_tenancy_wizard.php)
   ============================================================================ */

.wizard-container {
    max-width: 1000px;
    margin: 0 auto;
}

.notice-type-selector {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-4);
    margin-bottom: var(--space-5);
}

.notice-option {
    cursor: pointer;
}

.notice-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.notice-option .option-card {
    background: var(--color-white);
    border: 2px solid var(--color-gray-200);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    text-align: center;
    transition: all var(--transition-base);
}

.notice-option .option-card:hover {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-md);
}

.notice-option input:checked + .option-card {
    border-color: var(--color-primary);
    background: var(--color-primary-light, #f3e8ff);
}

.notice-option .option-card i {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: var(--space-3);
}

.notice-option .option-card h3 {
    margin: 0 0 var(--space-2) 0;
    color: var(--color-gray-800);
}

.notice-option .option-card p {
    margin: 0;
    font-size: var(--font-size-sm);
    color: var(--color-gray-500);
}

/* Arrears Summary */
.arrears-summary {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    margin-bottom: var(--space-5);
    box-shadow: var(--shadow-sm);
}

.arrears-summary h3 {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin: 0 0 var(--space-4) 0;
    color: var(--color-gray-700);
}

.arrears-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--space-3);
}

.arrears-grid .arrears-item {
    text-align: center;
    padding: var(--space-3);
    background: var(--color-gray-50);
    border-radius: var(--radius-md);
}

.arrears-grid .arrears-label {
    font-size: var(--font-size-xs);
    color: var(--color-gray-500);
    margin-bottom: var(--space-1);
}

.arrears-grid .arrears-value {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-bold);
    color: var(--color-gray-800);
}

/* Deemed Date Display */
.deemed-date-display {
    background: #e3f2fd;
    border-left: 4px solid #2196f3;
    padding: var(--space-4);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-4);
}

.deemed-date-display .deemed-label {
    font-size: var(--font-size-sm);
    color: #1565c0;
    margin-bottom: var(--space-1);
}

.deemed-date-display .deemed-value {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-bold);
    color: #0d47a1;
}

.deemed-date-display .deemed-explanation {
    font-size: var(--font-size-sm);
    color: var(--color-gray-600);
    margin-top: var(--space-2);
}

/* Ground Description */
.ground-description {
    background: #fff8e1;
    border-left: 4px solid #ffc107;
    padding: var(--space-4);
    border-radius: var(--radius-md);
    margin-top: var(--space-3);
}

.ground-description h4 {
    margin: 0 0 var(--space-2) 0;
    color: #f57f17;
}

.ground-description p {
    margin: 0;
    font-size: var(--font-size-sm);
    color: var(--color-gray-600);
}

/* Existing Notice Card */
.existing-notice-card {
    background: var(--color-white);
    border: 2px solid var(--color-warning);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    margin-bottom: var(--space-5);
}

.existing-notice-card h3 {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin: 0 0 var(--space-3) 0;
    color: var(--color-warning-dark, #e65100);
}

.existing-notice-card .notice-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--space-3);
    margin-bottom: var(--space-4);
}

.existing-notice-card .notice-detail-item {
    text-align: center;
    padding: var(--space-3);
    background: var(--color-gray-50);
    border-radius: var(--radius-md);
}

.existing-notice-card .notice-detail-label {
    font-size: var(--font-size-xs);
    color: var(--color-gray-500);
    margin-bottom: 4px;
}

.existing-notice-card .notice-detail-value {
    font-weight: var(--font-weight-bold);
    color: var(--color-gray-800);
}

/* ============================================================================
   RESPONSIVE ADJUSTMENTS
   ============================================================================ */

@media (max-width: 768px) {
    .tab-navigation {
        flex-wrap: wrap;
    }
    
    .tab-btn {
        flex: 1;
        min-width: 120px;
        justify-content: center;
    }
    
    .analytics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .availability-grid {
        grid-template-columns: 1fr;
    }
    
    .tenant-header {
        flex-direction: column;
    }
    
    .document-item-detail {
        flex-direction: column;
        text-align: center;
    }
    
    .document-item-status {
        justify-content: center;
    }
    
    .notice-type-selector {
        grid-template-columns: 1fr;
    }
    
    .monthly-chart {
        overflow-x: auto;
        min-width: 500px;
    }
}

@media (max-width: 480px) {
    .analytics-grid {
        grid-template-columns: 1fr;
    }
    
    .arrears-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .status-overview {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .send-actions {
        flex-direction: column;
    }
    
    .send-actions .btn {
        width: 100%;
    }
}

/**
 * CSS Additions for Landlord Portal Pages
 * Version: 1.0.0
 * Created: 2025-12-02
 * 
 * This file contains missing CSS classes identified from:
 * - index.php (landlord dashboard) - mostly complete
 * - movein_inventory.php - wizard, room cards, photo uploads, meters
 * - notice_detail.php - notice info, actions, modification history
 * - notice_section8.php / notice_section21.php - wizard, grounds selection
 * - payment_reconciliation.php - mostly inline styles
 * - pet_approval.php - content grid, info cards
 * - pet_request_detail.php - detail layout, status banners, attributes
 * - pet_requests.php - status summary, requests grid
 * - profile.php - profile layout, bank preview
 * - reference_check.php - summary list, help sections
 * - rent_history.php - timeline, action cards (has inline)
 * - invite_tenant.php - invite container, help sidebar
 * - properties.php - mostly complete
 * - fix_billing_integrity.php - handler, no CSS needed
 * 
 * Deployment: Append to style.css or include as separate file
 */

/* ==========================================================================
   1. PROFILE PAGE
   ========================================================================== */

.profile-container {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.profile-main {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.profile-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.profile-card .card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
}

.profile-card .card-header h2 {
    margin: 0;
    font-size: 1.2rem;
    color: white;
}

.profile-card .card-body {
    padding: 25px;
}

.profile-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 25px;
}

.profile-summary {
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 20px;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.profile-avatar i {
    font-size: 36px;
    color: white;
}

.profile-summary h3 {
    margin: 0 0 8px 0;
    font-size: 1.3rem;
    color: #333;
}

.profile-stats {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

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

.profile-stats .stat-item:last-child {
    border-bottom: none;
}

.profile-stats .stat-item span {
    color: #666;
    font-size: 0.9rem;
}

.profile-stats .stat-item strong {
    color: #333;
    font-size: 0.9rem;
}

/* Bank Details Preview */
.bank-details-card {
    border-left: 4px solid #4caf50;
}

.bank-preview {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid #e0e0e0;
}

.bank-preview h4 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 1rem;
}

.bank-display-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #e0e0e0;
}

.bank-display-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #e8e8e8;
}

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

.bank-display-row .bank-label {
    color: #666;
    font-size: 0.9rem;
}

.bank-display-row .bank-value {
    color: #333;
    font-weight: 600;
}

.bank-display-row .bank-highlight {
    font-family: 'Courier New', monospace;
    background: #e3f2fd;
    padding: 4px 10px;
    border-radius: 4px;
    color: #1976d2;
}

.bank-status {
    margin-top: 15px;
    padding: 15px;
    background: #e8f5e9;
    border-radius: 8px;
    text-align: center;
}

.tips-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tips-list li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    color: #666;
    font-size: 0.9rem;
}

.tips-list li::before {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: #4caf50;
}

/* ==========================================================================
   2. INVITE TENANT PAGE
   ========================================================================== */

.invite-container {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.invitation-form {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.invitation-form .form-section {
    padding: 25px;
    border-bottom: 1px solid #e0e0e0;
}

.invitation-form .form-section:last-of-type {
    border-bottom: none;
}

.invitation-form .form-section h2 {
    margin: 0 0 20px 0;
    font-size: 1.1rem;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

.invitation-form .form-section h2 i {
    color: #667eea;
}

.help-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.help-sidebar .help-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 20px;
}

.help-sidebar .help-card h3 {
    margin: 0 0 15px 0;
    font-size: 1rem;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.help-sidebar .help-card h3 i {
    color: #667eea;
}

.help-sidebar .help-card p {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.6;
}

.help-sidebar .help-card ul,
.help-sidebar .help-card ol {
    margin: 0;
    padding-left: 20px;
    color: #666;
    font-size: 0.9rem;
}

.help-sidebar .help-card li {
    margin-bottom: 8px;
}

/* ==========================================================================
   3. PET REQUESTS LIST
   ========================================================================== */

.status-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.status-summary .summary-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: transform 0.2s, box-shadow 0.2s;
}

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

.status-summary .summary-card.pending {
    border-left: 4px solid #ff9800;
}

.status-summary .summary-card.approved {
    border-left: 4px solid #4caf50;
}

.status-summary .summary-card.denied {
    border-left: 4px solid #f44336;
}

.status-summary .summary-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.status-summary .summary-card.pending .summary-icon {
    background: #fff3e0;
    color: #ff9800;
}

.status-summary .summary-card.approved .summary-icon {
    background: #e8f5e9;
    color: #4caf50;
}

.status-summary .summary-card.denied .summary-icon {
    background: #ffebee;
    color: #f44336;
}

.status-summary .summary-content h3 {
    margin: 0;
    font-size: 1.8rem;
    color: #333;
}

.status-summary .summary-content p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}

.requests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.request-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.request-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.request-card.status-pending {
    border-top: 3px solid #ff9800;
}

.request-card.status-approved {
    border-top: 3px solid #4caf50;
}

.request-card.status-denied {
    border-top: 3px solid #f44336;
}

.request-header {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f0f0f0;
}

.request-header .pet-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
}

.request-body {
    padding: 20px;
}

.request-body h3 {
    margin: 0 0 5px 0;
    font-size: 1.2rem;
    color: #333;
}

.request-body .pet-type {
    color: #666;
    font-size: 0.9rem;
    margin: 0 0 15px 0;
}

.request-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 15px;
}

.request-details .detail-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #666;
    font-size: 0.9rem;
}

.request-details .detail-item i {
    color: #999;
    width: 16px;
}

.request-card .pet-attributes {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.request-card .pet-attributes .attribute {
    padding: 4px 10px;
    background: #e8f5e9;
    color: #2e7d32;
    border-radius: 20px;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 4px;
}

.request-tenant {
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

.request-tenant strong {
    font-size: 0.85rem;
    color: #999;
}

.request-tenant p {
    margin: 5px 0 0 0;
    color: #333;
}

.request-tenant .property-address {
    color: #666;
    font-size: 0.85rem;
    margin-top: 5px;
}

.request-tenant .property-address i {
    margin-right: 5px;
    color: #999;
}

.request-meta {
    margin-top: 10px;
}

.request-meta small {
    color: #999;
    font-size: 0.8rem;
}

.request-footer {
    padding: 15px 20px;
    background: #f8f9fa;
    border-top: 1px solid #f0f0f0;
}

/* ==========================================================================
   4. PET REQUEST DETAIL PAGE
   ========================================================================== */

.detail-container {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.detail-main {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.detail-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.status-banner {
    padding: 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.status-banner i {
    font-size: 2rem;
}

.status-banner h2 {
    margin: 0;
    font-size: 1.2rem;
}

.status-banner p {
    margin: 5px 0 0 0;
    font-size: 0.9rem;
    opacity: 0.8;
}

.status-banner.status-pending {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    color: white;
}

.status-banner.status-approved {
    background: linear-gradient(135deg, #4caf50 0%, #388e3c 100%);
    color: white;
}

.status-banner.status-denied {
    background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
    color: white;
}

.info-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.info-card .card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 18px 20px;
}

.info-card .card-header h2 {
    margin: 0;
    font-size: 1.1rem;
    color: white;
}

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

.pet-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 20px;
}

.pet-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
}

.pet-header h3 {
    margin: 0 0 5px 0;
    font-size: 1.3rem;
    color: #333;
}

.pet-header .pet-type {
    margin: 0;
    color: #666;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.detail-grid .detail-item {
    padding: 12px 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.detail-grid .detail-item span {
    display: block;
    color: #666;
    font-size: 0.85rem;
    margin-bottom: 4px;
}

.detail-grid .detail-item strong {
    color: #333;
    font-size: 1rem;
}

.attributes-section {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 20px;
}

.attributes-section h4 {
    margin: 0 0 15px 0;
    font-size: 1rem;
    color: #333;
}

.attributes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}

.attribute-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.attribute-item.yes {
    border-color: #4caf50;
    background: #e8f5e9;
}

.attribute-item.yes i {
    color: #4caf50;
}

.attribute-item.no {
    border-color: #f44336;
    background: #ffebee;
}

.attribute-item.no i {
    color: #f44336;
}

.attribute-item span {
    font-size: 0.9rem;
    color: #333;
}

.info-section {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.info-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.info-section h4 {
    margin: 0 0 10px 0;
    font-size: 0.95rem;
    color: #333;
}

.info-section p {
    margin: 0;
    color: #666;
    line-height: 1.6;
}

.response-card {
    border-left: 4px solid #667eea;
}

.response-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.detail-sidebar .help-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 20px;
}

.detail-sidebar .help-card h3 {
    margin: 0 0 15px 0;
    font-size: 1rem;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.detail-sidebar .help-card h3 i {
    color: #667eea;
}

.detail-sidebar .summary-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.detail-sidebar .summary-item:last-child {
    border-bottom: none;
}

.detail-sidebar .summary-item span {
    color: #666;
    font-size: 0.9rem;
}

.detail-sidebar .summary-item strong {
    color: #333;
}

.detail-sidebar .help-card ul {
    margin: 0;
    padding-left: 20px;
    color: #666;
    font-size: 0.9rem;
}

.detail-sidebar .help-card li {
    margin-bottom: 8px;
}

/* ==========================================================================
   5. MOVE-IN INVENTORY
   ========================================================================== */

.inventory-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.inventory-header-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 25px;
}

.inventory-header-card h1 {
    margin: 0;
    font-size: 1.8rem;
    color: white;
}

.inventory-header-card .subtitle {
    margin: 10px 0 0 0;
    opacity: 0.9;
}

.completed-banner {
    background: linear-gradient(135deg, #4caf50 0%, #388e3c 100%);
    color: white;
    padding: 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.completed-banner i {
    font-size: 2.5rem;
}

.completed-banner h3 {
    margin: 0;
    font-size: 1.2rem;
}

.completed-banner p {
    margin: 5px 0 0 0;
    opacity: 0.9;
    font-size: 0.9rem;
}

/* Info Grid */
.inventory-container .info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.inventory-container .info-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 20px;
}

.inventory-container .info-card h3 {
    margin: 0 0 10px 0;
    font-size: 0.85rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.inventory-container .info-card h3 i {
    margin-right: 8px;
    color: #667eea;
}

.inventory-container .info-card .value {
    font-size: 1.1rem;
    color: #333;
    font-weight: 600;
}

/* Wizard Steps */
.wizard-steps {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.wizard-step {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: white;
    border-radius: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    transition: all 0.3s;
}

.wizard-step:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.wizard-step.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.wizard-step .step-number {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
}

.wizard-step.active .step-number {
    background: rgba(255, 255, 255, 0.3);
    color: white;
}

.wizard-step.completed .step-number {
    background: #4caf50;
    color: white;
}

.wizard-step .step-label {
    font-size: 0.9rem;
    font-weight: 500;
}

/* Step Content */
.step-content {
    display: none;
}

.step-content.active {
    display: block;
}

/* Room Cards */
.room-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}

.room-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border: 2px solid transparent;
    transition: border-color 0.3s;
}

.room-card.has-data {
    border-color: #4caf50;
}

.room-card h4 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 20px;
    margin: 0;
    font-size: 1rem;
}

.room-card h4 i {
    margin-right: 10px;
}

.room-fields {
    padding: 20px;
}

.field-group {
    margin-bottom: 15px;
}

.field-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

/* Photo Upload */
.photo-upload-area {
    margin-top: 25px;
}

.photo-upload-area h3 {
    margin: 0 0 15px 0;
    font-size: 1.1rem;
    color: #333;
}

.drop-zone {
    border: 2px dashed #ccc;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background: #fafafa;
}

.drop-zone:hover,
.drop-zone.dragover {
    border-color: #667eea;
    background: #f0f0ff;
}

.drop-zone i {
    font-size: 3rem;
    color: #999;
    margin-bottom: 15px;
}

.drop-zone p {
    margin: 0;
    color: #666;
}

.drop-zone small {
    color: #999;
}

/* Photo Grid */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.photo-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.photo-item img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.photo-info {
    padding: 10px;
    background: white;
}

.photo-room {
    font-size: 0.8rem;
    color: #666;
    margin: 0;
}

.photo-type {
    font-size: 0.75rem;
    color: #999;
    margin: 2px 0 0 0;
}

.delete-photo {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(244, 67, 54, 0.9);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.photo-item:hover .delete-photo {
    opacity: 1;
}

/* Meter Readings */
.meter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.meter-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.meter-card h4 {
    padding: 15px 20px;
    margin: 0;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.meter-card.electric h4 {
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
    color: white;
}

.meter-card.gas h4 {
    background: linear-gradient(135deg, #f44336 0%, #e91e63 100%);
    color: white;
}

.meter-card.water h4 {
    background: linear-gradient(135deg, #2196f3 0%, #03a9f4 100%);
    color: white;
}

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

/* Action Bar */
.action-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-top: 25px;
    position: sticky;
    bottom: 20px;
}

/* ==========================================================================
   6. NOTICE DETAIL PAGE
   ========================================================================== */

.notice-detail-container {
    max-width: 1200px;
    margin: 0 auto;
}

.notice-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 25px;
}

.notice-header h1 {
    margin: 0;
    font-size: 1.6rem;
    color: white;
}

.notice-header .badge {
    margin-left: 15px;
}

.notice-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.notice-info-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 20px;
}

.notice-info-card h3 {
    margin: 0 0 15px 0;
    font-size: 0.85rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.notice-info-card .value {
    font-size: 1.1rem;
    color: #333;
    font-weight: 600;
}

.notice-info-card .value.highlight {
    color: #667eea;
}

.notice-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 25px;
}

.modification-history {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 25px;
    margin-top: 25px;
}

.modification-history h3 {
    margin: 0 0 20px 0;
    font-size: 1.1rem;
    color: #333;
}

.modification-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}

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

.modification-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e3f2fd;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2196f3;
    flex-shrink: 0;
}

.modification-content {
    flex: 1;
}

.modification-content strong {
    display: block;
    color: #333;
    margin-bottom: 4px;
}

.modification-content p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}

.modification-date {
    color: #999;
    font-size: 0.8rem;
}

/* ==========================================================================
   7. SECTION 8/21 NOTICE WIZARD
   ========================================================================== */

.notice-wizard-container {
    max-width: 900px;
    margin: 0 auto;
}

.content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: #667eea;
    text-decoration: none;
}

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

.breadcrumb i.fa-chevron-right {
    color: #999;
    font-size: 0.7rem;
}

.breadcrumb span {
    color: #666;
}

/* Summary Card */
.summary-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 25px;
    overflow: hidden;
}

.summary-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 18px 20px;
}

.summary-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: white;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    padding: 20px;
}

.summary-grid .info-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.summary-grid .info-item label {
    font-size: 0.85rem;
    color: #666;
    display: flex;
    align-items: center;
    gap: 6px;
}

.summary-grid .info-item label i {
    color: #667eea;
}

.summary-grid .info-item span {
    font-weight: 600;
    color: #333;
}

/* Grounds Selection */
.grounds-section {
    margin-bottom: 25px;
}

.grounds-section h3 {
    margin: 0 0 15px 0;
    font-size: 1.1rem;
    color: #333;
}

.grounds-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
}

.ground-option {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s;
}

.ground-option:hover {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.ground-option.selected {
    border-color: #667eea;
    background: #f0f0ff;
}

.ground-option input[type="checkbox"] {
    display: none;
}

.ground-option h4 {
    margin: 0 0 8px 0;
    font-size: 1rem;
    color: #333;
}

.ground-option p {
    margin: 0;
    font-size: 0.85rem;
    color: #666;
    line-height: 1.5;
}

/* Service Method Selection */
.service-method-section {
    margin-bottom: 25px;
}

.service-method-section h3 {
    margin: 0 0 15px 0;
}

/* Confirmation Section */
.confirmation-section {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
}

.confirmation-section h3 {
    margin: 0 0 20px 0;
    font-size: 1.1rem;
    color: #333;
}

.confirmation-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #e0e0e0;
}

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

.confirmation-item label {
    color: #666;
}

.confirmation-item strong {
    color: #333;
}

/* Deemed Date Preview */
.deemed-date-preview,
.deemed-date-display,
#deemedDatePreview {
    background: #e3f2fd;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    border-left: 4px solid #2196f3;
}

.deemed-date-preview h4,
.deemed-date-display h4 {
    margin: 0 0 15px 0;
    font-size: 1rem;
    color: #1976d2;
}

.date-preview-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.date-preview-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.date-preview-item label {
    font-size: 0.85rem;
    color: #666;
}

.date-preview-item strong {
    font-size: 1.1rem;
    color: #333;
}

.preview-explanation {
    margin: 15px 0 0 0;
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
}

/* Wizard Form */
.wizard-form .form-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 25px;
    overflow: hidden;
}

.wizard-form .form-card .card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
}

.wizard-form .form-card .card-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: white;
}

.wizard-form .form-card .card-subtitle {
    margin: 5px 0 0 0;
    opacity: 0.9;
    font-size: 0.9rem;
}

.wizard-form .form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px;
}

.wizard-form .form-hint {
    font-size: 0.85rem;
    color: #666;
    margin-top: 5px;
}

/* Info Box */
.info-box {
    background: #e3f2fd;
    border-radius: 12px;
    padding: 20px;
    margin: 20px;
    border-left: 4px solid #2196f3;
}

.info-box h4 {
    margin: 0 0 10px 0;
    color: #1976d2;
}

/* Ground Description */
.ground-description {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin-top: 10px;
}

.ground-description p {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
}

/* Existing Notice Card */
.existing-notice-card {
    background: #fff3e0;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
    border-left: 4px solid #ff9800;
}

.existing-notice-card h4 {
    margin: 0 0 10px 0;
    color: #e65100;
}

/* ==========================================================================
   8. REFERENCE CHECK PAGE
   ========================================================================== */

.reference-container {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
}

.reference-main {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.reference-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.modern-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.card-header-gradient,
.card-header-gradient-info {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 18px 20px;
}

.card-header-gradient-info h3 {
    margin: 0;
    font-size: 1rem;
    color: white;
}

.summary-list {
    display: flex;
    flex-direction: column;
}

.summary-list .summary-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
}

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

.summary-list .summary-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e3f2fd;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2196f3;
}

.summary-list .summary-info {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.summary-list .summary-label {
    color: #666;
    font-size: 0.9rem;
}

.summary-list .summary-value {
    font-weight: 600;
    color: #333;
    background: #f0f0f0;
    padding: 4px 12px;
    border-radius: 20px;
}

.total-summary {
    padding: 15px;
    background: #f8f9fa;
    border-top: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.badge-lg {
    font-size: 1.1rem;
    padding: 6px 16px;
}

.sticky-card {
    position: sticky;
}

.help-content {
    padding: 20px;
}

.help-section {
    margin-bottom: 20px;
}

.help-section h5 {
    margin: 0 0 15px 0;
    font-size: 1rem;
    color: #333;
}

.help-item {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

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

.help-item h6 {
    margin: 0 0 8px 0;
    font-size: 0.9rem;
    color: #333;
}

.help-item h6 i {
    margin-right: 8px;
    color: #667eea;
}

.help-item p {
    margin: 0 0 5px 0;
    font-size: 0.85rem;
    color: #666;
}

.help-item ul {
    margin: 0;
    padding-left: 20px;
    font-size: 0.8rem;
    color: #666;
}

.help-item li {
    margin-bottom: 3px;
}

.file-upload-modern {
    position: relative;
}

.file-upload-modern input[type="file"] {
    padding: 15px;
    border: 2px dashed #ccc;
    border-radius: 8px;
    width: 100%;
    cursor: pointer;
    transition: border-color 0.3s;
}

.file-upload-modern input[type="file"]:hover {
    border-color: #667eea;
}

/* ==========================================================================
   9. RENT HISTORY TIMELINE (supplement to inline)
   ========================================================================== */

.rent-timeline {
    position: relative;
    padding-left: 30px;
}

.rent-timeline::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e0e0e0;
}

.timeline-item {
    position: relative;
    padding-bottom: 25px;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: -26px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #667eea;
    border: 3px solid white;
    box-shadow: 0 0 0 2px #667eea;
}

.timeline-content {
    background: white;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* ==========================================================================
   10. PAYMENT RECONCILIATION (supplement to inline)
   ========================================================================== */

.reconciliation-container {
    max-width: 1200px;
    margin: 0 auto;
}

.allocation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.allocation-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 20px;
}

.allocation-card.unallocated {
    border-left: 4px solid #ff9800;
}

.allocation-card.allocated {
    border-left: 4px solid #4caf50;
}

/* ==========================================================================
   11. CONTENT GRID (pet_approval.php)
   ========================================================================== */

.content-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.content-grid .main-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.content-grid .sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.content-grid .sidebar .card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.content-grid .sidebar .card-header {
    background: #f8f9fa;
    padding: 15px 20px;
    border-bottom: 1px solid #e0e0e0;
}

.content-grid .sidebar .card-header h3 {
    margin: 0;
    font-size: 1rem;
    color: #333;
}

.content-grid .sidebar .card-body {
    padding: 20px;
}

.content-grid .sidebar .card-body h4 {
    margin: 0 0 10px 0;
    font-size: 0.9rem;
    color: #333;
}

.content-grid .sidebar .card-body ul {
    margin: 0 0 15px 0;
    padding-left: 20px;
    color: #666;
    font-size: 0.9rem;
}

.content-grid .sidebar .card-body li {
    margin-bottom: 6px;
}

.info-card .info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.info-card .info-item {
    padding: 12px 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.info-card .info-item label {
    display: block;
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 4px;
}

.info-card .info-item span {
    font-weight: 600;
    color: #333;
}

/* ==========================================================================
   12. RESPONSIVE ADJUSTMENTS
   ========================================================================== */

@media (max-width: 992px) {
    .profile-container,
    .invite-container,
    .detail-container,
    .content-grid,
    .reference-container {
        grid-template-columns: 1fr;
    }
    
    .profile-sidebar,
    .help-sidebar,
    .detail-sidebar,
    .sidebar,
    .reference-sidebar {
        order: -1;
    }
    
    .notice-info-grid,
    .summary-grid,
    .grounds-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .status-summary {
        grid-template-columns: 1fr;
    }
    
    .requests-grid,
    .room-grid,
    .meter-grid {
        grid-template-columns: 1fr;
    }
    
    .wizard-steps {
        flex-direction: column;
        align-items: stretch;
    }
    
    .wizard-step {
        justify-content: center;
    }
    
    .date-preview-grid {
        grid-template-columns: 1fr;
    }
    
    .field-row {
        grid-template-columns: 1fr;
    }
    
    .response-actions {
        flex-direction: column;
    }
    
    .action-bar {
        flex-direction: column;
        gap: 15px;
        position: static;
    }
    
    .attributes-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .detail-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .attributes-grid {
        grid-template-columns: 1fr;
    }
    
    .photo-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .pet-header {
        flex-direction: column;
        text-align: center;
    }
    
    .status-banner {
        flex-direction: column;
        text-align: center;
    }
    
    .completed-banner {
        flex-direction: column;
        text-align: center;
    }
}


/**
 * CSS Additions for Landlord Portal - Batch 4-5
 * Version: 1.0.0
 * Created: 2025-12-02
 * 
 * This file contains missing CSS classes for:
 * - rent_increase_detail.php (has inline CSS)
 * - rent_increase_objection.php (has inline CSS)
 * - rent_increase_tribunal.php (has inline CSS)
 * - rent_increase_wizard.php (has inline CSS)
 * - rent_periods_diagnostic.php (functions file - no CSS)
 * - right_to_rent_check.php
 * - send_documents.php
 * - tenancies.php (uses Bootstrap-like classes)
 * - tenancy_audit_trail.php
 * - tenancy_cancel.php
 * - tenancy_checkout.php
 * - tenancy_detail.php
 * - tenancy_draft.php
 * - tenancy_pre_tenancy.php
 * - tenancy_screening.php
 * 
 * Deployment: Append to style.css
 */

/* ==========================================================================
   1. ROW/COL GRID SYSTEM (Bootstrap-compatible)
   ========================================================================== */

.row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -15px;
    margin-right: -15px;
}

.col-md-4,
.col-md-6,
.col-md-8,
.col-md-12 {
    position: relative;
    width: 100%;
    padding-left: 15px;
    padding-right: 15px;
}

@media (min-width: 768px) {
    .col-md-4 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
    
    .col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    .col-md-8 {
        flex: 0 0 66.666667%;
        max-width: 66.666667%;
    }
    
    .col-md-12 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* ==========================================================================
   2. ENHANCED DASHBOARD HEADER (rent_increase files)
   ========================================================================== */

.dashboard-header.enhanced {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    color: white;
}

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

.header-icon-badge {
    background: rgba(255, 255, 255, 0.2);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    flex-shrink: 0;
    backdrop-filter: blur(10px);
}

.header-text {
    flex: 1;
}

.header-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
    margin-bottom: 5px;
    font-weight: 600;
}

.header-text h1 {
    margin: 0 0 8px 0;
    font-size: 2rem;
    font-weight: 700;
    color: white;
}

.header-text .subtitle {
    margin: 0;
    opacity: 0.9;
    font-size: 1rem;
}

/* ==========================================================================
   3. TIMELINE STYLES (rent increase detail)
   ========================================================================== */

.timeline {
    position: relative;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #667eea, #764ba2);
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
    padding-left: 30px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: -25px;
    top: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #667eea;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    border: 4px solid white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 1;
}

.timeline-content {
    background: white;
    padding: 20px;
    border-radius: 12px;
    border: 2px solid #e0e0e0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.timeline-date {
    font-size: 0.85rem;
    color: #999;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.timeline-content h3 {
    margin: 0 0 8px 0;
    font-size: 1.2rem;
}

.timeline-content p {
    margin: 0 0 15px 0;
    color: #666;
}

.timeline-details {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.detail-row {
    display: flex;
    gap: 10px;
    margin-bottom: 8px;
}

.detail-row:last-child {
    margin-bottom: 0;
}

.detail-label {
    font-weight: 600;
    color: #555;
    white-space: nowrap;
}

.detail-value {
    color: #666;
    flex: 1;
}

/* ==========================================================================
   4. INFO BOX STYLES (rent increase)
   ========================================================================== */

.info-box {
    background: #f9f9f9;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
}

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

.info-label {
    font-size: 0.85rem;
    color: #666;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.info-value {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 5px;
}

.info-sublabel {
    font-size: 0.9rem;
    color: #999;
}

/* ==========================================================================
   5. INFO GRID (used across multiple pages)
   ========================================================================== */

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.info-item {
    margin-bottom: 15px;
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-item label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #555;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.info-item label i {
    color: #667eea;
    width: 16px;
}

.info-item span {
    display: block;
    color: #333;
    line-height: 1.6;
}

.info-item .highlight {
    color: #667eea;
    font-weight: 700;
}

.rent-amount {
    font-size: 1.1rem;
    font-weight: 600;
}

/* ==========================================================================
   6. TENANCY DETAIL - QUICK ACTIONS
   ========================================================================== */

.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
    padding: 20px;
}

.quick-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 15px 10px;
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    text-align: center;
    min-height: 80px;
}

.quick-action-btn:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.quick-action-btn i {
    font-size: 1.4rem;
    color: #667eea;
}

.quick-action-btn:hover i {
    color: white;
}

.quick-action-btn span {
    font-size: 0.8rem;
    font-weight: 500;
    line-height: 1.2;
}

.quick-action-btn .badge {
    font-size: 0.65rem;
    padding: 2px 6px;
    margin-top: 4px;
}

.quick-action-btn.btn-danger-action {
    background: #ffebee;
    border-color: #f44336;
}

.quick-action-btn.btn-danger-action i {
    color: #f44336;
}

.quick-action-btn.btn-danger-action:hover {
    background: #f44336;
    border-color: #f44336;
}

/* ==========================================================================
   7. TENANCY SCREENING PAGE
   ========================================================================== */

.page-header-content {
    flex: 1;
}

.page-header-content h1 {
    margin: 0 0 8px 0;
    font-size: 1.8rem;
    color: #333;
}

.page-header-content p {
    margin: 0;
    color: #666;
}

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

.screening-progress {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 25px;
    margin-bottom: 25px;
}

.screening-progress h3 {
    margin: 0 0 15px 0;
    font-size: 1.1rem;
    color: #333;
}

.progress-bar-container {
    height: 12px;
    background: #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 6px;
    transition: width 0.5s ease;
}

.progress-text {
    font-size: 0.9rem;
    color: #666;
    text-align: center;
}

.tenant-screening-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin-bottom: 20px;
}

.tenant-screening-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tenant-screening-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: white;
}

.tenant-screening-header .lead-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
}

.tenant-screening-body {
    padding: 20px;
}

.check-status-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.check-status-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px solid #e0e0e0;
}

.check-status-item.complete {
    border-color: #4caf50;
    background: #e8f5e9;
}

.check-status-item .check-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.check-status-item.complete .check-icon {
    background: #4caf50;
    color: white;
}

.check-status-item:not(.complete) .check-icon {
    background: #e0e0e0;
    color: #999;
}

.check-status-info h4 {
    margin: 0 0 4px 0;
    font-size: 0.95rem;
    color: #333;
}

.check-status-info p {
    margin: 0;
    font-size: 0.85rem;
    color: #666;
}

.screening-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s;
}

/* ==========================================================================
   8. TENANCY CHECKOUT PAGE
   ========================================================================== */

.checkout-container {
    max-width: 1200px;
    margin: 0 auto;
}

.checkout-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 25px;
}

.checkout-header h1 {
    margin: 0;
    font-size: 1.8rem;
    color: white;
}

.checkout-progress {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.checkout-step {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: white;
    border-radius: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    transition: all 0.3s;
}

.checkout-step.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.checkout-step.completed {
    background: #e8f5e9;
    border: 2px solid #4caf50;
}

.checkout-step .step-number {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
}

.checkout-step.active .step-number {
    background: rgba(255, 255, 255, 0.3);
    color: white;
}

.checkout-step.completed .step-number {
    background: #4caf50;
    color: white;
}

.checkout-summary {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 25px;
    margin-bottom: 25px;
}

.checkout-summary h3 {
    margin: 0 0 20px 0;
    font-size: 1.1rem;
    color: #333;
}

/* ==========================================================================
   9. RIGHT TO RENT CHECK PAGE
   ========================================================================== */

.rtr-container {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
}

.rtr-main {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.rtr-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.rtr-form-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.rtr-form-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
}

.rtr-form-header h2 {
    margin: 0;
    font-size: 1.2rem;
    color: white;
}

.rtr-form-body {
    padding: 25px;
}

.name-verification-box {
    background: #fff3e0;
    border: 2px solid #ff9800;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.name-verification-box h4 {
    margin: 0 0 15px 0;
    color: #e65100;
}

.name-comparison {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 15px;
}

.name-box {
    padding: 15px;
    background: white;
    border-radius: 8px;
    text-align: center;
}

.name-box label {
    display: block;
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 5px;
}

.name-box .name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
}

.existing-checks-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.existing-check-item {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    border-left: 4px solid #4caf50;
}

.existing-check-item.expired {
    border-left-color: #f44336;
}

.existing-check-item.expiring-soon {
    border-left-color: #ff9800;
}

/* ==========================================================================
   10. SEND DOCUMENTS PAGE
   ========================================================================== */

.send-documents-container {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
}

.document-selection {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.document-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
}

.document-item:hover {
    border-color: #667eea;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
}

.document-item.selected {
    border-color: #667eea;
    background: #f0f0ff;
}

.document-item input[type="checkbox"] {
    display: none;
}

.document-checkbox {
    width: 24px;
    height: 24px;
    border: 2px solid #ccc;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.document-item.selected .document-checkbox {
    background: #667eea;
    border-color: #667eea;
    color: white;
}

.document-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #666;
}

.document-info {
    flex: 1;
}

.document-info h4 {
    margin: 0 0 4px 0;
    font-size: 0.95rem;
    color: #333;
}

.document-info p {
    margin: 0;
    font-size: 0.85rem;
    color: #666;
}

/* ==========================================================================
   11. TENANCY AUDIT TRAIL
   ========================================================================== */

.audit-trail-container {
    max-width: 900px;
    margin: 0 auto;
}

.audit-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 15px;
}

.audit-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.audit-content {
    flex: 1;
}

.audit-content h4 {
    margin: 0 0 5px 0;
    font-size: 1rem;
    color: #333;
}

.audit-content p {
    margin: 0 0 8px 0;
    color: #666;
    font-size: 0.9rem;
}

.audit-meta {
    display: flex;
    gap: 15px;
    font-size: 0.8rem;
    color: #999;
}

.audit-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ==========================================================================
   12. TENANCY PRE-TENANCY PAGE
   ========================================================================== */

.pre-tenancy-container {
    max-width: 1200px;
    margin: 0 auto;
}

.pre-tenancy-checklist {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.checklist-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-left: 4px solid #e0e0e0;
    transition: all 0.3s;
}

.checklist-item.complete {
    border-left-color: #4caf50;
}

.checklist-item.in-progress {
    border-left-color: #ff9800;
}

.checklist-item.pending {
    border-left-color: #e0e0e0;
}

.checklist-status {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.checklist-item.complete .checklist-status {
    background: #e8f5e9;
    color: #4caf50;
}

.checklist-item.in-progress .checklist-status {
    background: #fff3e0;
    color: #ff9800;
}

.checklist-item.pending .checklist-status {
    background: #f5f5f5;
    color: #999;
}

.checklist-content {
    flex: 1;
}

.checklist-content h4 {
    margin: 0 0 5px 0;
    font-size: 1rem;
    color: #333;
}

.checklist-content p {
    margin: 0;
    font-size: 0.85rem;
    color: #666;
}

.checklist-action {
    flex-shrink: 0;
}

/* ==========================================================================
   13. ACTION CARDS (objection/tribunal pages)
   ========================================================================== */

.action-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.action-card {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 25px;
    transition: all 0.3s;
}

.action-card:hover {
    border-color: #667eea;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
}

.action-card h3 {
    margin: 0 0 10px 0;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.action-card h3 i {
    font-size: 1.3rem;
}

.action-card p {
    margin: 0 0 20px 0;
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
}

.action-card.warning {
    border-color: #ff9800;
    background: #fff8e1;
}

.action-card.danger {
    border-color: #f44336;
    background: #ffebee;
}

.action-card.info {
    border-color: #2196f3;
    background: #e3f2fd;
}

/* ==========================================================================
   14. STATUS BANNERS
   ========================================================================== */

.status-banner {
    padding: 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.status-banner.notice-active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.status-banner.awaiting-moveout {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    color: white;
}

.status-banner.checkout-pending {
    background: linear-gradient(135deg, #2196f3 0%, #1976d2 100%);
    color: white;
}

.status-banner.archived {
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    color: #666;
}

.status-banner i {
    font-size: 2rem;
}

.status-banner-content h3 {
    margin: 0 0 5px 0;
    font-size: 1.1rem;
}

.status-banner-content p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

/* ==========================================================================
   15. FORM SECTIONS
   ========================================================================== */

.form-section {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 25px;
    overflow: hidden;
}

.form-section-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 18px 20px;
}

.form-section-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: white;
}

.form-section-body {
    padding: 25px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

/* ==========================================================================
   16. RESPONSIVE ADJUSTMENTS
   ========================================================================== */

@media (max-width: 992px) {
    .rtr-container,
    .send-documents-container {
        grid-template-columns: 1fr;
    }
    
    .rtr-sidebar,
    .send-documents-sidebar {
        order: -1;
    }
}

@media (max-width: 768px) {
    .header-content-wrapper {
        flex-direction: column;
        text-align: center;
    }
    
    .header-icon-badge {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .header-text h1 {
        font-size: 1.5rem;
    }
    
    .timeline {
        padding-left: 20px;
    }
    
    .timeline-marker {
        left: -20px;
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }
    
    .info-value {
        font-size: 1.5rem;
    }
    
    .quick-actions {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .check-status-grid {
        grid-template-columns: 1fr;
    }
    
    .name-comparison {
        grid-template-columns: 1fr;
    }
    
    .action-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .quick-actions {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .audit-item {
        flex-direction: column;
        text-align: center;
    }
    
    .audit-meta {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .checklist-item {
        flex-direction: column;
        text-align: center;
    }
    
    .checklist-action {
        width: 100%;
    }
    
    .checklist-action .btn {
        width: 100%;
    }
}


/* ==========================================================================
   17. TENANCY WIZARD - TENANT MANAGEMENT
   ========================================================================== */

.tenant-management-card {
    overflow: hidden;
}

.gradient-header-tenants {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0;
}

.header-content-tenants {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
}

.header-icon-tenants {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.header-text-tenants h2 {
    margin: 0;
    font-size: 1.2rem;
    color: white;
}

.header-text-tenants p {
    margin: 5px 0 0 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

.section-header-small {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
}

.section-header-small h4 {
    margin: 0;
    font-size: 1rem;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-header-small h4 i {
    color: #667eea;
}

.tenant-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tenant-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 2px solid #e0e0e0;
    transition: all 0.3s;
}

.tenant-item:hover {
    border-color: #667eea;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.15);
}

.tenant-item.lead-tenant {
    border-color: #667eea;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
}

.tenant-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    flex-shrink: 0;
}

.tenant-info {
    flex: 1;
}

.tenant-info .tenant-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 2px;
}

.tenant-info .tenant-email {
    font-size: 0.85rem;
    color: #666;
}

.tenant-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tenant-actions {
    display: flex;
    gap: 8px;
}

.add-tenant-section {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    margin-top: 25px;
}

.add-tenant-section h4 {
    margin: 0 0 15px 0;
    font-size: 1rem;
    color: #333;
}

.tenant-select-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.tenant-select-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.tenant-select-item:hover {
    border-color: #667eea;
}

.tenant-select-item.selected {
    border-color: #667eea;
    background: #f0f0ff;
}

.tenant-select-item input[type="checkbox"] {
    display: none;
}

.tenant-checkbox {
    width: 22px;
    height: 22px;
    border: 2px solid #ccc;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s;
}

.tenant-select-item.selected .tenant-checkbox {
    background: #667eea;
    border-color: #667eea;
    color: white;
}

.tenant-select-info {
    flex: 1;
    min-width: 0;
}

.tenant-select-info .name {
    font-weight: 500;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tenant-select-info .email {
    font-size: 0.8rem;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ==========================================================================
   18. TENANT NOTICE PAGE
   ========================================================================== */

.header-meta {
    display: flex;
    gap: 20px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    opacity: 0.9;
}

.meta-item i {
    font-size: 1rem;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.details-grid .detail-item {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 3px solid #667eea;
    transition: all 0.3s ease;
}

.details-grid .detail-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.well {
    background: #f5f5f5;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

/* Notice Card Variants */
.card.border-warning {
    border: 2px solid #ff9800 !important;
}

.card.border-info {
    border: 2px solid #2196f3 !important;
}

.card-header.bg-warning {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%) !important;
}

.card-header.bg-info {
    background: linear-gradient(135deg, #2196f3 0%, #1976d2 100%) !important;
}

/* Approval Status Cards */
.status-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    border: 2px solid #e0e0e0;
}

.status-card.pending {
    border-color: #ff9800;
    background: #fff8e1;
}

.status-card.approved {
    border-color: #4caf50;
    background: #e8f5e9;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.status-indicator .icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.status-indicator.pending .icon {
    background: #ff9800;
    color: white;
}

.status-indicator.approved .icon {
    background: #4caf50;
    color: white;
}

/* Contact Tenant Button */
.contact-tenant-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s;
}

.contact-tenant-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    color: white;
}

/* ==========================================================================
   19. UTILITY CLASSES (Bootstrap-like)
   ========================================================================== */

.d-flex {
    display: flex;
}

.justify-content-between {
    justify-content: space-between;
}

.align-items-center {
    align-items: center;
}

.gap-2 {
    gap: 0.5rem;
}

.mb-0 {
    margin-bottom: 0 !important;
}

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

.mb-3 {
    margin-bottom: 1rem !important;
}

.mb-4 {
    margin-bottom: 1.5rem !important;
}

.ms-2 {
    margin-left: 0.5rem !important;
}

.me-2 {
    margin-right: 0.5rem !important;
}

.fw-bold {
    font-weight: 700 !important;
}

.text-danger {
    color: #dc3545 !important;
}

.text-muted {
    color: #6c757d !important;
}

.text-white {
    color: white !important;
}

.bg-light {
    background-color: #f8f9fa !important;
}

.bg-warning {
    background-color: #ffc107 !important;
}

.bg-info {
    background-color: #17a2b8 !important;
}

.bg-primary {
    background-color: #667eea !important;
}

.border-0 {
    border: 0 !important;
}

.shadow-sm {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

.h-100 {
    height: 100% !important;
}

.container-fluid {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}

/* Form Controls */
.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-control {
    display: block;
    width: 100%;
    padding: 0.5rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
    color: #495057;
    background-color: #fff;
    border-color: #667eea;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.input-group {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    width: 100%;
}

.input-group-text {
    display: flex;
    align-items: center;
    padding: 0.5rem 0.75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #495057;
    text-align: center;
    white-space: nowrap;
    background-color: #e9ecef;
    border: 1px solid #ced4da;
    border-radius: 0.375rem 0 0 0.375rem;
}

.input-group > .form-control {
    position: relative;
    flex: 1 1 auto;
    width: 1%;
    min-width: 0;
    border-radius: 0 0.375rem 0.375rem 0;
}

/* Alert Variants */
.alert-dismissible {
    padding-right: 4rem;
}

.btn-close {
    position: absolute;
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
    background: transparent;
    border: 0;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0.5;
}

.btn-close:hover {
    opacity: 1;
}

.fade.show {
    opacity: 1;
}

/* Alert Heading */
.alert-heading {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
}

/* ============================================================================
   CSS FIXES - Payment Overview Widget + Dashboard Header White Text
   Version: 3.1.0
   Date: 2025-12-02
   
   Fixes:
   - Payment Overview Widget grid layout
   - Tenancy Detail page layout (full-width without sidebar)
   - Dashboard header white text/icons
   - Stats grid icon colours
   - Quick actions grid
   - Tenant list and compliance display
   - Rent history timeline
   ============================================================================ */


/* ==========================================================================
   1. PAYMENT OVERVIEW WIDGET (Missing classes)
   ========================================================================== */

.payment-overview-widget {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    margin-bottom: var(--space-4);
    box-shadow: var(--shadow-sm);
}

.payment-overview-widget .widget-header {
    margin-bottom: var(--space-4);
    padding-bottom: var(--space-3);
    border-bottom: 1px solid var(--color-gray-200);
}

.payment-overview-widget .widget-header h2 {
    margin: 0;
    font-size: var(--font-size-lg);
    color: var(--color-gray-700);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.payment-overview-widget .widget-header h2 i {
    color: var(--color-primary);
}

/* Payment Stats Grid - 4 column layout */
.payment-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-4);
    margin-bottom: var(--space-4);
}

/* Individual Payment Stat Card */
.payment-stats-grid .payment-stat {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-4);
    background: var(--color-gray-50);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--color-gray-300);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.payment-stats-grid .payment-stat:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Payment Stat Icon */
.payment-stat-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.3rem;
}

/* Payment Stat Content */
.payment-stat-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.payment-stat-value {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-gray-700);
    line-height: 1.2;
}

.payment-stat-label {
    font-size: var(--font-size-sm);
    color: var(--color-gray-500);
}

/* Payment Stat Variants */
.payment-stats-grid .payment-stat.expected {
    border-left-color: var(--color-primary);
    background: linear-gradient(135deg, rgba(102,126,234,0.08) 0%, rgba(118,75,162,0.08) 100%);
}

.payment-stats-grid .payment-stat.expected .payment-stat-icon {
    background: rgba(102, 126, 234, 0.15);
    color: var(--color-primary);
}

.payment-stats-grid .payment-stat.received {
    border-left-color: var(--color-success);
    background: var(--color-success-light);
}

.payment-stats-grid .payment-stat.received .payment-stat-icon {
    background: rgba(76, 175, 80, 0.15);
    color: var(--color-success);
}

.payment-stats-grid .payment-stat.overdue {
    border-left-color: var(--color-danger);
    background: var(--color-danger-light);
}

.payment-stats-grid .payment-stat.overdue .payment-stat-icon {
    background: rgba(244, 67, 54, 0.15);
    color: var(--color-danger);
}

.payment-stats-grid .payment-stat.overdue.has-overdue {
    animation: pulse-danger 2s infinite;
}

.payment-stats-grid .payment-stat.upcoming {
    border-left-color: var(--color-info);
    background: var(--color-info-light);
}

.payment-stats-grid .payment-stat.upcoming .payment-stat-icon {
    background: rgba(33, 150, 243, 0.15);
    color: var(--color-info);
}

/* Collection Progress Bar */
.collection-progress {
    margin-top: var(--space-3);
}

.collection-progress .progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-2);
    font-size: var(--font-size-sm);
    color: var(--color-gray-600);
}

.collection-progress .progress-percentage {
    font-weight: var(--font-weight-bold);
    color: var(--color-primary);
}

.collection-progress .progress-bar-outer {
    height: 10px;
    background: var(--color-gray-200);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.collection-progress .progress-bar-inner {
    height: 100%;
    background: var(--color-primary-gradient);
    border-radius: var(--radius-full);
    transition: width 0.5s ease;
}

/* Responsive - Payment Stats */
@media (max-width: 1200px) {
    .payment-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .payment-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .payment-stats-grid .payment-stat {
        padding: var(--space-3);
    }
    
    .payment-stat-icon {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
    
    .payment-stat-value {
        font-size: var(--font-size-lg);
    }
}

/* Pulse animation for overdue */
@keyframes pulse-danger {
    0%, 100% { box-shadow: 0 0 0 0 rgba(244, 67, 54, 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(244, 67, 54, 0); }
}


/* ==========================================================================
   2. TENANCY DETAIL PAGE - MISSING LAYOUT CLASSES
   ========================================================================== */

/* Content Wrapper - Full width variant for pages without sidebar */
.content-wrapper.full-width {
    display: block !important;
    grid-template-columns: none !important;
    max-width: 100%;
    width: 100%;
}

/* Also handle pages with .dashboard-header.enhanced that don't have sidebar */
.content-wrapper:has(.dashboard-header.enhanced):not(:has(.sidebar)):not(:has(.dashboard-sidebar)) {
    display: block;
    grid-template-columns: none;
}

/* All cards should have consistent margins */
.content-wrapper > .card {
    margin-bottom: var(--space-4);
}

/* Enhanced Dashboard Header */
.dashboard-header.enhanced {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.header-content-wrapper {
    display: flex;
    gap: 25px;
    align-items: center;
}

.header-icon-badge {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    flex-shrink: 0;
}

.header-text {
    flex: 1;
}

.header-label {
    font-size: 0.9rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.header-text h1 {
    font-size: 2.2rem;
    margin: 0 0 8px 0;
    font-weight: 700;
}

.subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin: 0 0 15px 0;
}

.header-meta {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
}

.meta-item i {
    opacity: 0.8;
}

/* Info Cards Grid - 2 column layout for Property Details & Tenancy Info */
.info-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: var(--space-4);
    margin-bottom: var(--space-4);
}

/* Ensure cards inside info-cards-grid fill their space */
.info-cards-grid > .card {
    margin-bottom: 0;
    height: 100%;
}

/* Info Grid inside cards - 2 columns */
.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.info-item label {
    color: #666;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-item label i {
    color: var(--color-primary);
    width: 16px;
}

.info-item span {
    color: #333;
    font-size: 1rem;
}

.info-item-full {
    grid-column: 1 / -1;
}

.info-link {
    color: var(--color-primary);
    font-size: var(--font-size-sm);
    margin-left: var(--space-2);
}

.info-link:hover {
    text-decoration: underline;
}

/* Rent Amount Highlight */
.rent-amount {
    font-size: 1.3rem;
    font-weight: 700;
    color: #667eea;
}

/* Quick Actions Grid */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    padding: 20px;
}

.quick-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 15px;
    background: #f8f9fa;
    border-radius: 10px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    min-height: 90px;
    border: 2px solid transparent;
}

.quick-action-btn:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
    border-color: transparent;
}

.quick-action-btn i {
    font-size: 1.5rem;
    margin-bottom: 8px;
    color: #667eea;
}

.quick-action-btn:hover i {
    color: white;
}

.quick-action-btn span {
    font-size: 0.85rem;
    font-weight: 500;
    line-height: 1.3;
}

.quick-action-btn .badge {
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 10px;
}

.quick-action-btn.deposit-warning {
    border-color: var(--color-warning);
    background: rgba(255, 152, 0, 0.05);
}

/* Status Banner Content */
.status-banner-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.status-banner-icon {
    font-size: 1.5rem;
}

.status-banner-text {
    margin: 5px 0 0 0;
    font-size: 0.95rem;
}

.btn-auto-margin {
    margin-left: auto;
    white-space: nowrap;
}

/* Tenants List */
.tenants-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.tenant-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    align-items: flex-start;
}

.tenant-icon {
    font-size: 2.5rem;
    color: #667eea;
    flex-shrink: 0;
}

.tenant-info {
    flex: 1;
}

.tenant-info h4 {
    margin: 0 0 8px 0;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.tenant-info p {
    margin: 3px 0;
    color: #666;
    font-size: 0.9rem;
}

.tenant-info i {
    margin-right: 5px;
    color: #667eea;
}

.tenant-compliance {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #e0e0e0;
}

.compliance-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.compliance-item i {
    color: #667eea;
    width: 18px;
}

.compliance-item span {
    font-weight: 500;
}

.compliance-item .badge {
    margin-left: 5px;
}

.tenant-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-shrink: 0;
}

.tenant-actions .btn {
    white-space: nowrap;
}

/* Rent History Timeline */
.rent-history-timeline {
    padding: 20px;
}

.rent-history-timeline .timeline-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    position: relative;
}

.rent-history-timeline .timeline-item::before {
    content: '';
    position: absolute;
    left: 18px;
    top: 40px;
    bottom: -30px;
    width: 2px;
    background: #e0e0e0;
}

.rent-history-timeline .timeline-item:last-child::before {
    display: none;
}

.rent-history-timeline .timeline-marker {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #4caf50;
    border: 3px solid #4caf50;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.rent-history-timeline .timeline-content {
    flex: 1;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
}

.rent-history-timeline .timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.rent-history-timeline .timeline-header strong {
    font-size: 1.3rem;
    color: #333;
}

.rent-history-timeline .timeline-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 10px;
    font-size: 0.9rem;
    color: #666;
}

.rent-history-timeline .timeline-meta i {
    margin-right: 5px;
}

/* Danger Action Button */
.btn-danger-action {
    background: #ffe5e5 !important;
    color: #f44336 !important;
    border: 2px solid #f44336 !important;
}

.btn-danger-action:hover {
    background: #f44336 !important;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(244, 67, 54, 0.3);
}

/* Responsive for Tenancy Detail */
@media (max-width: 1200px) {
    .quick-actions {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {
    .info-cards-grid {
        grid-template-columns: 1fr !important;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .header-content-wrapper {
        flex-direction: column;
        text-align: center;
    }
    
    .header-meta {
        justify-content: center;
    }
    
    .quick-actions {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .tenant-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .tenant-info {
        width: 100%;
    }
    
    .tenant-compliance {
        align-items: center;
    }
    
    .compliance-item {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .tenant-actions {
        width: 100%;
        flex-direction: row;
    }
    
    .tenant-actions .btn {
        flex: 1;
    }
}

@media (max-width: 600px) {
    .quick-actions {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 15px;
    }
    
    .quick-action-btn {
        padding: 15px 10px;
        min-height: 80px;
    }
    
    .quick-action-btn i {
        font-size: 1.3rem;
    }
    
    .quick-action-btn span {
        font-size: 0.8rem;
    }
    
    .dashboard-header.enhanced {
        padding: 25px;
    }
    
    .header-icon-badge {
        width: 60px;
        height: 60px;
        font-size: 1.8rem;
    }
    
    .header-text h1 {
        font-size: 1.6rem;
    }
}


/* ==========================================================================
   3. STATS GRID - ICON COLOUR VARIANTS (Missing classes)
   ========================================================================== */

/* Properties icon - Blue */
.stat-icon.properties {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    color: #1976d2;
}

/* Tenancies icon - Purple */
.stat-icon.tenancies {
    background: linear-gradient(135deg, #f3e5f5 0%, #e1bee7 100%);
    color: #7b1fa2;
}

/* Tenants icon - Green */
.stat-icon.tenants {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    color: #388e3c;
}

/* Income icon - Orange/Gold */
.stat-icon.income {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    color: #f57c00;
}

/* Ensure stat-value and stat-label inside stat-content are styled */
.stat-content .stat-value {
    font-size: 1.8rem;
    font-weight: var(--font-weight-bold);
    color: var(--color-gray-700);
    margin: 0;
    line-height: 1.2;
}

.stat-content .stat-label {
    font-size: var(--font-size-sm);
    color: var(--color-gray-500);
    margin: 0;
}


/* ==========================================================================
   4. DASHBOARD HEADER - WHITE TEXT/ICONS FIX
   ========================================================================== */

/* Base white color for all dashboard header content */
.dashboard-header,
.dashboard-header * {
    color: var(--color-white);
}

/* Breadcrumbs inside dashboard header */
.dashboard-header .breadcrumb,
.dashboard-header .breadcrumb a,
.dashboard-header .breadcrumb span,
.dashboard-header .breadcrumb i,
.dashboard-header .breadcrumb .fa-chevron-right {
    color: var(--color-white) !important;
    opacity: 0.9;
}

.dashboard-header .breadcrumb a:hover {
    opacity: 1;
    text-decoration: underline;
}

/* All icons inside dashboard header */
.dashboard-header i,
.dashboard-header .fa,
.dashboard-header .fas,
.dashboard-header .far,
.dashboard-header .fab {
    color: var(--color-white) !important;
}

/* All buttons inside dashboard header */
.dashboard-header .btn,
.dashboard-header .btn-back,
.dashboard-header .btn-primary,
.dashboard-header .btn-secondary,
.dashboard-header .btn-outline-primary,
.dashboard-header .btn-outline-secondary,
.dashboard-header .btn-light,
.dashboard-header a.btn {
    color: var(--color-white) !important;
    border-color: rgba(255, 255, 255, 0.6) !important;
    background: rgba(255, 255, 255, 0.15) !important;
}

.dashboard-header .btn:hover,
.dashboard-header .btn-back:hover,
.dashboard-header a.btn:hover {
    background: rgba(255, 255, 255, 0.25) !important;
    border-color: var(--color-white) !important;
    transform: translateY(-1px);
}

.dashboard-header .btn i,
.dashboard-header .btn-back i,
.dashboard-header a.btn i {
    color: var(--color-white) !important;
}

/* Subtitle and meta text */
.dashboard-header .subtitle,
.dashboard-header .header-meta,
.dashboard-header .meta-item,
.dashboard-header p,
.dashboard-header small {
    color: var(--color-white) !important;
    opacity: 0.95;
}

/* Links inside dashboard header */
.dashboard-header a:not(.btn) {
    color: var(--color-white) !important;
}

.dashboard-header a:not(.btn):hover {
    opacity: 0.85;
    text-decoration: underline;
}

/* Header labels and values */
.dashboard-header .header-label,
.dashboard-header .header-value,
.dashboard-header .header-text {
    color: var(--color-white) !important;
}


/* ==========================================================================
   5. ENHANCED DASHBOARD HEADER VARIANTS
   ========================================================================== */

.dashboard-header.enhanced,
.dashboard-header.enhanced * {
    color: var(--color-white);
}

.dashboard-header.enhanced .breadcrumb,
.dashboard-header.enhanced .breadcrumb a,
.dashboard-header.enhanced .breadcrumb i {
    color: var(--color-white) !important;
}

.dashboard-header.enhanced .btn,
.dashboard-header.enhanced .btn i {
    color: var(--color-white) !important;
    border-color: rgba(255, 255, 255, 0.6) !important;
    background: rgba(255, 255, 255, 0.15) !important;
}


/* ==========================================================================
   6. PAGE HEADER ACTIONS (Buttons in header area)
   ========================================================================== */

.dashboard-header .header-actions .btn,
.dashboard-header .page-header-actions .btn {
    color: var(--color-white) !important;
    border-color: rgba(255, 255, 255, 0.6) !important;
    background: rgba(255, 255, 255, 0.15) !important;
    padding: 8px 16px;
    border-radius: var(--radius-md);
    font-weight: var(--font-weight-medium);
    transition: all var(--transition-base);
}

.dashboard-header .header-actions .btn:hover,
.dashboard-header .page-header-actions .btn:hover {
    background: rgba(255, 255, 255, 0.25) !important;
    border-color: var(--color-white) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

.dashboard-header .header-actions .btn i,
.dashboard-header .page-header-actions .btn i {
    color: var(--color-white) !important;
    margin-right: 6px;
}


/* ==========================================================================
   7. GRADIENT HEADER SECTIONS (Card headers with gradient)
   ========================================================================== */

.gradient-header,
.card-header.gradient-header,
[class*="gradient-header"] {
    color: var(--color-white) !important;
}

.gradient-header *,
.card-header.gradient-header *,
[class*="gradient-header"] * {
    color: var(--color-white) !important;
}

.gradient-header i,
.card-header.gradient-header i,
[class*="gradient-header"] i {
    color: var(--color-white) !important;
}


/* ==========================================================================
   8. RESPONSIVE ADJUSTMENTS
   ========================================================================== */

@media (max-width: 768px) {
    .dashboard-header .btn,
    .dashboard-header .btn-back {
        padding: 6px 12px;
        font-size: 0.9rem;
    }
    
    .dashboard-header .breadcrumb {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .dashboard-header .header-actions {
        width: 100%;
        justify-content: center;
        margin-top: var(--space-3);
    }
    
    .dashboard-header .btn {
        flex: 1;
        text-align: center;
    }
}


/* ==========================================================================
   9. UTILITY CLASSES FOR MANUAL OVERRIDE
   ========================================================================== */

.text-white-force,
.text-white-force * {
    color: var(--color-white) !important;
}

.icon-white-force i,
.icon-white-force .fa,
.icon-white-force .fas,
.icon-white-force .far {
    color: var(--color-white) !important;
}

.btn-white-force {
    color: var(--color-white) !important;
    border-color: rgba(255, 255, 255, 0.6) !important;
    background: rgba(255, 255, 255, 0.15) !important;
}

.btn-white-force:hover {
    background: rgba(255, 255, 255, 0.25) !important;
    border-color: var(--color-white) !important;
}

/* ============================================================================
   FINAL OVERRIDES - Tenancy Detail Page Layout Fix
   Added: 2025-12-02
   ============================================================================ */

/* Force full-width layout for pages without sidebar */
.content-wrapper.full-width {
    display: block !important;
    grid-template-columns: none !important;
    max-width: 100% !important;
    width: 100% !important;
}

/* Force 2-column grid for Property Details + Tenancy Information */
.info-cards-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px !important;
    margin-bottom: 20px !important;
}

@media (max-width: 992px) {
    .info-cards-grid {
        grid-template-columns: 1fr !important;
    }
}


/* ============================================================================
   GLOBAL FIX - Content Wrapper Full Width (No Sidebar)
   Added: 2025-12-02
   
   Makes content-wrapper full-width on pages without a sidebar.
   The original CSS assumes all pages have a 320px sidebar, but many
   detail/form pages don't have one.
   ============================================================================ */

/* Override the default 2-column grid when no sidebar present */
.content-wrapper {
    display: block !important;
    grid-template-columns: none !important;
    max-width: 100% !important;
}

/* Restore 2-column grid ONLY when sidebar exists */
.content-wrapper:has(+ .sidebar),
.content-wrapper:has(+ .dashboard-sidebar),
.content-wrapper:has(~ .sidebar),
.content-wrapper:has(~ .dashboard-sidebar) {
    display: grid !important;
    grid-template-columns: 1fr 320px !important;
    max-width: 1400px !important;
    margin: 0 auto !important;
}

@media (max-width: 1024px) {
    .content-wrapper:has(+ .sidebar),
    .content-wrapper:has(+ .dashboard-sidebar),
    .content-wrapper:has(~ .sidebar),
    .content-wrapper:has(~ .dashboard-sidebar) {
        grid-template-columns: 1fr !important;
    }
}

/* ============================================================================
   TENANT PORTAL CSS ADDITIONS
   Version: 1.0.0
   Added: 2025-12-03
   Description: Additional styles for tenant portal pages
   ============================================================================ */

/* ============================================================================
   SECTION 1: CONTAINER WIDTH STANDARDISATION
   Fixes inconsistent page widths by adding missing container definitions
   ============================================================================ */

/* Payments Container - payments.php */
.payments-container {
    max-width: var(--container-max, 1200px);
    margin: 0 auto;
    padding: var(--space-4, 20px);
}

/* Tenancy Container - my_tenancy.php */
.tenancy-container {
    max-width: var(--container-max, 1200px);
    margin: 0 auto;
    padding: var(--space-4, 20px);
}

/* Pet Request Container - pet_request.php - Two Column Layout */
.pet-request-container {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Pet Request Form Card */
.pet-request-form-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Form Sections within Pet Request */
.pet-request-form .form-section {
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid #eee;
}

.pet-request-form .form-section:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.pet-request-form .form-section h2 {
    font-size: 1.2rem;
    color: #333;
    margin: 0 0 20px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pet-request-form .form-section h2 i {
    color: #667eea;
}

/* Two Column Form Row */
.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Pet Checkbox Group */
.pet-checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.pet-form-check {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: background 0.2s ease;
}

.pet-form-check:hover {
    background: #f0f0f0;
}

.pet-form-check input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #667eea;
    flex-shrink: 0;
}

.pet-form-check label {
    margin: 0;
    cursor: pointer;
    font-weight: 500;
    color: #333;
}

/* Form Actions */
.pet-request-form .form-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    padding-top: 25px;
    border-top: 2px solid #eee;
}

.pet-request-form .btn-lg {
    padding: 14px 28px;
    font-size: 1rem;
}

/* Pet Help Sidebar */
.pet-help-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: sticky;
    top: 20px;
    align-self: start;
}

.pet-help-sidebar .help-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.pet-help-sidebar .help-card h3 {
    font-size: 1rem;
    color: #667eea;
    margin: 0 0 15px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pet-help-sidebar .help-card p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0 0 12px 0;
}

.pet-help-sidebar .help-card ul,
.pet-help-sidebar .help-card ol {
    margin: 0;
    padding-left: 20px;
    color: #666;
    font-size: 0.9rem;
}

.pet-help-sidebar .help-card li {
    margin-bottom: 8px;
    line-height: 1.5;
}

/* Required Field Indicator */
.pet-request-form .required {
    color: #f44336;
}

/* Form Text Muted */
.pet-request-form .form-text.text-muted {
    font-size: 0.85rem;
    color: #888;
    margin-top: 6px;
}

/* Pet Form Layout - Responsive */
@media (max-width: 900px) {
    .pet-request-container {
        grid-template-columns: 1fr;
    }
    
    .pet-help-sidebar {
        position: static;
        order: -1;
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .pet-help-sidebar .help-card {
        flex: 1;
        min-width: 250px;
    }
}

@media (max-width: 600px) {
    .form-row-2 {
        grid-template-columns: 1fr;
    }
    
    .pet-request-form-card {
        padding: 20px;
    }
    
    .pet-request-form .form-actions {
        flex-direction: column;
    }
    
    .pet-request-form .form-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    .pet-help-sidebar .help-card {
        min-width: 100%;
    }
}

/* ============================================================================
   SECTION 2: PAYMENT DUE WIDGET - Tenant Dashboard
   ============================================================================ */

.payment-due-widget {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    margin-bottom: var(--space-4);
    transition: box-shadow var(--transition-base);
}

.payment-due-widget:hover {
    box-shadow: var(--shadow-md);
}

/* Widget Header - Purple Gradient */
.payment-due-widget .widget-header {
    background: var(--color-primary-gradient);
    color: var(--color-white);
    padding: var(--space-4);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.payment-due-widget .widget-header h2 {
    margin: 0;
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    color: var(--color-white);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.payment-due-widget .widget-header h2 i {
    color: var(--color-white);
    font-size: 1.2rem;
}

.payment-due-widget .widget-header .btn-outline,
.payment-due-widget .widget-header .btn-sm {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: var(--color-white);
    padding: 6px 14px;
    font-size: var(--font-size-sm);
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: all var(--transition-base);
}

.payment-due-widget .widget-header .btn-outline:hover,
.payment-due-widget .widget-header .btn-sm:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: var(--color-white);
    transform: translateY(-1px);
}

/* Widget Content */
.payment-due-widget .widget-content {
    padding: 0;
}

/* Payment Due Main Layout */
.payment-due-main {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 0;
}

/* Due Amount Section - Left Side */
.due-amount-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-6);
    background: linear-gradient(135deg, var(--color-gray-50) 0%, var(--color-white) 100%);
    border-right: 1px solid var(--color-gray-200);
    text-align: center;
}

.due-label {
    display: block;
    font-size: var(--font-size-sm);
    color: var(--color-gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: var(--font-weight-medium);
    margin-bottom: var(--space-2);
}

.due-amount {
    display: block;
    font-size: 2.5rem;
    font-weight: var(--font-weight-bold);
    color: var(--color-primary);
    line-height: 1.2;
    margin-bottom: var(--space-1);
}

.due-date {
    display: block;
    font-size: var(--font-size-sm);
    color: var(--color-gray-500);
    font-weight: var(--font-weight-medium);
}

/* Overdue State */
.payment-due-widget.overdue .due-amount {
    color: var(--color-danger);
}

.payment-due-widget.overdue .due-amount-section {
    background: linear-gradient(135deg, #ffebee 0%, var(--color-white) 100%);
    border-right-color: #ffcdd2;
}

/* Paid Up State */
.payment-due-widget.paid .due-amount {
    color: var(--color-success);
}

.payment-due-widget.paid .due-amount-section {
    background: linear-gradient(135deg, #e8f5e9 0%, var(--color-white) 100%);
    border-right-color: #c8e6c9;
}

/* Bank Details Section - Right Side */
.payment-due-widget .bank-details-section {
    padding: var(--space-4);
    border-top: none;
    margin-top: 0;
}

.payment-due-widget .bank-details-section h4 {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin: 0 0 var(--space-3) 0;
    font-size: var(--font-size-md);
    color: var(--color-gray-700);
    font-weight: var(--font-weight-semibold);
    padding-bottom: var(--space-2);
    border-bottom: 2px solid rgba(102, 126, 234, 0.3);
}

.payment-due-widget .bank-details-section h4 i {
    color: var(--color-primary);
    font-size: 1rem;
}

/* Bank Info Grid */
.bank-info-grid {
    display: grid;
    gap: var(--space-2);
}

.bank-info-grid .bank-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-2) var(--space-3);
    background: var(--color-gray-50);
    border-radius: var(--radius-sm);
    transition: background var(--transition-fast);
}

.bank-info-grid .bank-row:hover {
    background: var(--color-gray-100);
}

.bank-info-grid .bank-row.highlight {
    background: #e3f2fd;
    border: 1px solid rgba(33, 150, 243, 0.2);
}

.bank-info-grid .bank-row.highlight:hover {
    background: #d0e8f7;
}

.bank-info-grid .bank-label {
    font-size: var(--font-size-sm);
    color: var(--color-gray-500);
    font-weight: var(--font-weight-medium);
}

.bank-info-grid .bank-value {
    font-size: var(--font-size-base);
    color: var(--color-gray-700);
    font-weight: var(--font-weight-semibold);
}

.bank-info-grid .bank-value.code {
    font-family: 'SF Mono', 'Consolas', 'Monaco', monospace;
    background: var(--color-white);
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    letter-spacing: 1.5px;
    font-size: var(--font-size-md);
    border: 1px solid var(--color-gray-200);
}

/* No Bank Details State */
.payment-due-widget .bank-details-section.no-details,
.bank-details-section.no-details {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--space-6);
    background: var(--color-gray-50);
}

.no-details-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
}

.no-details-content i {
    font-size: 2.5rem;
    color: var(--color-gray-300);
}

.no-details-content p {
    color: var(--color-gray-500);
    margin: 0;
}

/* ============================================================================
   SECTION 3: PROFILE PAGE STYLES
   ============================================================================ */

.locked-field {
    background-color: var(--color-gray-100) !important;
    cursor: not-allowed;
    opacity: 0.8;
}

.locked-field:focus {
    outline: none;
    box-shadow: none;
}

.text-info {
    color: var(--color-info) !important;
}

.text-small {
    font-size: var(--font-size-sm);
}

/* ============================================================================
   SECTION 4: MY TENANCY PAGE STYLES
   ============================================================================ */

/* Info Card Header */
.info-card-header {
    background: var(--color-primary-gradient);
    color: var(--color-white);
    padding: var(--space-4);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.info-card-header h2 {
    margin: 0;
    font-size: var(--font-size-lg);
    color: var(--color-white);
}

/* Detail Grid */
.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-4);
    padding: var(--space-4);
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.detail-item label {
    font-size: var(--font-size-sm);
    color: var(--color-gray-500);
    font-weight: var(--font-weight-medium);
}

.detail-item span {
    font-size: var(--font-size-base);
    color: var(--color-gray-700);
}

/* Landlord Contact Section */
.landlord-contact {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-4);
    background: var(--color-gray-50);
    border-radius: var(--radius-md);
}

.contact-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--color-primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    font-size: 2rem;
    flex-shrink: 0;
}

/* Info Section */
.info-section {
    padding: var(--space-4);
    border-bottom: 1px solid var(--color-gray-200);
}

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

.info-section h3 {
    margin: 0 0 var(--space-3) 0;
    font-size: var(--font-size-md);
    color: var(--color-gray-700);
}

/* Tenant Item */
.tenant-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3);
    background: var(--color-white);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-gray-200);
}

.tenant-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--color-gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-gray-500);
    font-size: 1.25rem;
}

/* Notes Section */
.notes-section {
    background: #fffbeb;
    border: 1px solid #fef3c7;
    border-radius: var(--radius-md);
    padding: var(--space-4);
    margin-top: var(--space-4);
}

.notes-section h4 {
    margin: 0 0 var(--space-2) 0;
    color: #92400e;
}

/* Custom Fields */
.custom-fields {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-3);
}

/* Action Grid */
.action-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-3);
    padding: var(--space-4);
}

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-4);
    background: var(--color-white);
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--color-gray-700);
    transition: all var(--transition-base);
}

.action-btn:hover {
    border-color: var(--color-primary);
    background: var(--color-primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.action-btn i {
    font-size: 1.5rem;
    color: var(--color-primary);
}

.action-btn span {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
}

/* Rent Amount Display */
.rent-amount-display {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-primary);
}

/* ============================================================================
   SECTION 5: MY PETS PAGE STYLES
   ============================================================================ */

.pet-attributes {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-top: var(--space-2);
}

.pet-attribute {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    padding: 4px 10px;
    background: var(--color-gray-100);
    border-radius: var(--radius-full);
    font-size: var(--font-size-xs);
    color: var(--color-gray-600);
}

.pet-attribute.success {
    background: #e8f5e9;
    color: #2e7d32;
}

.pet-property-info {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2);
    background: var(--color-gray-50);
    border-radius: var(--radius-sm);
    font-size: var(--font-size-sm);
    color: var(--color-gray-600);
}

.pet-meta-info {
    display: flex;
    gap: var(--space-4);
    padding: var(--space-3);
    background: var(--color-gray-50);
    border-radius: var(--radius-sm);
    font-size: var(--font-size-sm);
}

.pet-response-notes {
    background: #fff8e1;
    border: 1px solid #ffecb3;
    border-radius: var(--radius-md);
    padding: var(--space-3);
    margin-top: var(--space-3);
}

.pet-card-footer {
    padding: var(--space-3);
    background: var(--color-gray-50);
    border-top: 1px solid var(--color-gray-200);
    display: flex;
    justify-content: flex-end;
    gap: var(--space-2);
}

/* ============================================================================
   SECTION 6: RENT INCREASE VIEW PAGE STYLES
   ============================================================================ */

.rights-list {
    list-style: disc;
    padding-left: var(--space-4);
    margin: var(--space-2) 0;
}

.rights-list li {
    margin-bottom: var(--space-2);
    line-height: 1.5;
}

.external-link {
    color: var(--color-primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
}

.external-link:hover {
    text-decoration: underline;
}

.alert-icon-large {
    font-size: 2rem;
    flex-shrink: 0;
}

.alert-flex {
    display: flex;
    gap: var(--space-4);
    align-items: flex-start;
}

/* ============================================================================
   SECTION 7: OBJECTION PAGE STYLES
   ============================================================================ */

.objection-header {
    border-left: 4px solid #ff9800;
}

.objection-icon {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%) !important;
}

.objection-label {
    background: rgba(255, 152, 0, 0.2);
    color: #e65100;
}

.objection-warning {
    background: #fff3e0;
    border: 1px solid #ffcc80;
    border-left: 4px solid #ff9800;
}

.warning-content {
    display: flex;
    gap: var(--space-4);
    align-items: flex-start;
}

.warning-icon {
    font-size: 2rem;
    color: #ff9800;
    flex-shrink: 0;
}

.tribunal-link {
    color: var(--color-primary);
    font-weight: var(--font-weight-medium);
}

.objection-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-4);
}

.objection-info-grid .info-item {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.objection-info-grid .info-item label {
    font-size: var(--font-size-sm);
    color: var(--color-gray-500);
    display: flex;
    align-items: center;
    gap: var(--space-1);
}

.current-rent {
    color: var(--color-gray-700);
    font-weight: var(--font-weight-semibold);
}

.proposed-rent {
    color: var(--color-primary);
    font-weight: var(--font-weight-bold);
    font-size: var(--font-size-lg);
}

.increase-amount {
    color: #d32f2f;
    font-weight: var(--font-weight-semibold);
}

.deadline {
    color: #e65100;
    font-weight: var(--font-weight-bold);
}

.objection-textarea {
    min-height: 120px;
    resize: vertical;
}

.confirmation-box {
    background: #e3f2fd;
    border: 1px solid #90caf9;
    border-radius: var(--radius-md);
    padding: var(--space-4);
}

.checkbox-label {
    display: flex;
    gap: var(--space-3);
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    margin-top: 4px;
    flex-shrink: 0;
}

.checkbox-label ul {
    margin: var(--space-2) 0 0 var(--space-4);
    padding: 0;
    list-style: disc;
}

.checkbox-label li {
    margin-bottom: var(--space-1);
}

.help-section h4 {
    margin: 0 0 var(--space-3) 0;
}

.help-section ol {
    margin: var(--space-2) 0;
    padding-left: var(--space-4);
}

.gov-link {
    margin-top: var(--space-3);
}

.gov-link a {
    color: var(--color-primary);
    font-weight: var(--font-weight-medium);
}

/* ============================================================================
   SECTION 8: APPLICATION PAGE STYLES
   ============================================================================ */

.form-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3);
    background: var(--color-white);
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
}

.form-item:hover {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-sm);
}

.tips-content {
    padding: var(--space-4);
}

.tip-item {
    display: flex;
    gap: var(--space-3);
    padding: var(--space-3);
    background: var(--color-gray-50);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-2);
}

.tip-item:last-child {
    margin-bottom: 0;
}

.tip-item i {
    color: var(--color-primary);
    font-size: 1.25rem;
    flex-shrink: 0;
}

/* ============================================================================
   SECTION 9: END TENANCY WIZARD STYLES
   ============================================================================ */

.wizard-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    margin-bottom: var(--space-4);
}

.wizard-card-header {
    background: var(--color-primary-gradient);
    color: var(--color-white);
    padding: var(--space-4);
}

.wizard-card-header h2 {
    margin: 0;
    font-size: var(--font-size-lg);
    color: var(--color-white);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.wizard-card-body {
    padding: var(--space-4);
}

.notice-details-box {
    background: var(--color-gray-50);
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-md);
    padding: var(--space-4);
    margin: var(--space-3) 0;
}

.notice-details-box h3 {
    margin: 0 0 var(--space-3) 0;
    font-size: var(--font-size-md);
    color: var(--color-gray-700);
}

.error-list {
    list-style: disc;
    padding-left: var(--space-4);
    margin: var(--space-2) 0 0 0;
}

/* ============================================================================
   SECTION 10: MY DOCUMENTS PAGE STYLES
   ============================================================================ */

.filter-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: var(--space-4);
    margin-bottom: var(--space-4);
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    align-items: flex-end;
}

.filter-row .form-group,
.filter-row .filter-group {
    flex: 1;
    min-width: 200px;
}

.documents-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.documents-card-header {
    background: var(--color-primary-gradient);
    color: var(--color-white);
    padding: var(--space-4);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.documents-card-header h2 {
    margin: 0;
    color: var(--color-white);
    display: flex;
    align-items: center;
    gap: 10px;
}

.documents-card-header .badge {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Standalone Help Card - my_documents.php */
.help-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
}

.help-card h3 {
    font-size: 1.1rem;
    color: #667eea;
    margin: 0 0 15px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.help-card h3 i {
    color: #667eea;
}

.help-card p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0 0 15px 0;
}

.help-card ul,
.help-card ol {
    margin: 0;
    padding-left: 20px;
    color: #555;
}

.help-card li {
    margin-bottom: 10px;
    line-height: 1.5;
}

.help-card li strong {
    color: #333;
}

/* ============================================================================
   SECTION 11: RESPONSIVE ADJUSTMENTS
   ============================================================================ */

@media (max-width: 992px) {
    .action-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .payments-container,
    .tenancy-container,
    .pet-request-container,
    .pet-form-layout {
        padding: var(--space-3);
    }
    
    .action-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .payment-due-main {
        grid-template-columns: 1fr;
    }
    
    .due-amount-section {
        border-right: none;
        border-bottom: 1px solid var(--color-gray-200);
        padding: var(--space-4);
    }
    
    .due-amount {
        font-size: 2rem;
    }
    
    .payment-due-widget .widget-header {
        flex-direction: column;
        text-align: center;
        gap: var(--space-3);
    }
    
    .payment-due-widget .widget-header h2 {
        justify-content: center;
    }
    
    .objection-info-grid {
        grid-template-columns: 1fr;
    }
    
    .landlord-contact {
        flex-direction: column;
        text-align: center;
    }
    
    .warning-content {
        flex-direction: column;
    }
    
    .alert-flex {
        flex-direction: column;
    }
    
    .filter-row {
        flex-direction: column;
    }
    
    .filter-row .form-group,
    .filter-row .filter-group {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .payments-container,
    .tenancy-container,
    .pet-request-container,
    .pet-form-layout {
        padding: var(--space-2);
    }
    
    .action-grid {
        grid-template-columns: 1fr;
    }
    
    .due-amount {
        font-size: 1.75rem;
    }
    
    .bank-info-grid .bank-row {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-1);
    }
    
    .bank-info-grid .bank-value {
        width: 100%;
    }
    
    .bank-info-grid .bank-value.code {
        text-align: center;
        display: block;
    }
}

/* ============================================================================
   SECTION 12: PRINT STYLES
   ============================================================================ */

@media print {
    .payment-due-widget {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid var(--color-gray-300);
    }
    
    .payment-due-widget .widget-header {
        background: var(--color-gray-100) !important;
        color: var(--color-gray-700) !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    
    .payment-due-widget .widget-header h2,
    .payment-due-widget .widget-header h2 i {
        color: var(--color-gray-700) !important;
    }
    
    .payment-due-widget .widget-header .btn-outline,
    .payment-due-widget .widget-header .btn-sm {
        display: none;
    }
    
    .action-grid {
        display: none;
    }
    
    .filter-card {
        display: none;
    }
}

/* ============================================================================
   END OF TENANT PORTAL CSS ADDITIONS
   ============================================================================ */

/* ============================================================================
   PROFILE PAGE WRAPPER
   Added: 2025-12-03
   ============================================================================ */

.profile-page {
    max-width: var(--container-max, 1200px);
    margin: 0 auto;
    padding: var(--space-4, 20px);
}

.profile-page .profile-container {
    margin-top: var(--space-4, 20px);
}

/* ============================================================================
   PAYMENTS PAGE - MISSING CLASS DEFINITIONS
   Added: 2025-12-03
   Fixes class name mismatches between HTML and CSS
   ============================================================================ */

/* Billing Summary Grid - 3 column layout */
.billing-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4, 20px);
    margin-bottom: var(--space-4, 20px);
}

@media (max-width: 992px) {
    .billing-summary-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .billing-summary-grid {
        grid-template-columns: 1fr;
    }
}

/* Billing Card Styles */
.billing-card {
    background: var(--color-white);
    border-radius: var(--radius-lg, 12px);
    box-shadow: var(--shadow-sm);
    padding: var(--space-4, 20px);
    display: flex;
    align-items: center;
    gap: var(--space-4, 20px);
    transition: all var(--transition-base);
}

.billing-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Billing Icon */
.billing-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-lg, 12px);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.billing-icon i {
    font-size: 1.5rem;
    color: var(--color-white);
}

.billing-icon.rent {
    background: var(--color-primary-gradient);
}

.billing-icon.warning {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
}

.billing-icon.due {
    background: linear-gradient(135deg, #2196f3 0%, #1976d2 100%);
}

.billing-icon.success {
    background: linear-gradient(135deg, #4caf50 0%, #388e3c 100%);
}

/* Billing Info */
.billing-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.billing-amount {
    font-size: var(--font-size-xl, 1.5rem);
    font-weight: var(--font-weight-bold, 700);
    color: var(--color-gray-800);
    line-height: 1.2;
}

.billing-label {
    font-size: var(--font-size-sm, 0.875rem);
    color: var(--color-gray-500);
    font-weight: var(--font-weight-medium, 500);
}

/* Bank Details Widget */
.bank-details-widget {
    background: var(--color-white);
    border-radius: var(--radius-lg, 12px);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    margin-bottom: var(--space-4, 20px);
}

.bank-details-widget .widget-header {
    background: var(--color-primary-gradient);
    color: var(--color-white);
    padding: var(--space-4, 20px);
}

.bank-details-widget .widget-header h2 {
    margin: 0;
    font-size: var(--font-size-lg, 1.125rem);
    color: var(--color-white);
    display: flex;
    align-items: center;
    gap: var(--space-2, 10px);
}

.bank-details-widget .widget-content {
    padding: var(--space-4, 20px);
}

/* Bank Details Grid */
.bank-details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-3, 15px);
}

@media (max-width: 576px) {
    .bank-details-grid {
        grid-template-columns: 1fr;
    }
}

.bank-details-grid .bank-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-3, 15px);
    background: var(--color-gray-50);
    border-radius: var(--radius-md, 8px);
    transition: background var(--transition-fast);
}

.bank-details-grid .bank-row:hover {
    background: var(--color-gray-100);
}

.bank-details-grid .bank-row.highlight {
    background: #e3f2fd;
    border: 1px solid rgba(33, 150, 243, 0.2);
}

.bank-details-grid .bank-row.highlight:hover {
    background: #d0e8f7;
}

.bank-details-grid .bank-label {
    font-size: var(--font-size-sm, 0.875rem);
    color: var(--color-gray-500);
    font-weight: var(--font-weight-medium, 500);
}

.bank-details-grid .bank-value {
    font-size: var(--font-size-base, 1rem);
    color: var(--color-gray-700);
    font-weight: var(--font-weight-semibold, 600);
}

.bank-details-grid .bank-value.code {
    font-family: 'SF Mono', 'Consolas', 'Monaco', monospace;
    background: var(--color-white);
    padding: 4px 10px;
    border-radius: var(--radius-sm, 4px);
    letter-spacing: 1.5px;
    font-size: var(--font-size-md, 1rem);
    border: 1px solid var(--color-gray-200);
}

/* Bank Footer */
.bank-footer {
    margin-top: var(--space-4, 20px);
    padding: var(--space-3, 15px);
    background: #fff8e1;
    border: 1px solid #ffecb3;
    border-radius: var(--radius-md, 8px);
    font-size: var(--font-size-sm, 0.875rem);
    color: #5d4037;
    display: flex;
    align-items: center;
    gap: var(--space-2, 10px);
}

.bank-footer i {
    color: #ff9800;
    font-size: 1.1rem;
}

.bank-footer strong {
    color: var(--color-gray-800);
    font-family: 'SF Mono', 'Consolas', 'Monaco', monospace;
    background: var(--color-white);
    padding: 2px 8px;
    border-radius: var(--radius-sm, 4px);
    border: 1px solid var(--color-gray-200);
}

/* Periods Card Header Actions */
.periods-card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: var(--space-3, 15px);
}

.periods-card .card-header h2 {
    margin: 0;
}

/* Payment Legend */
.payment-legend {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3, 15px);
    font-size: var(--font-size-sm, 0.875rem);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: var(--space-1, 5px);
    color: var(--color-gray-600);
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

.legend-dot.paid {
    background: #4caf50;
}

.legend-dot.current {
    background: #2196f3;
}

.legend-dot.overdue {
    background: #f44336;
}

.legend-dot.partial {
    background: #ff9800;
}

.legend-dot.future {
    background: #9e9e9e;
}

/* View All Container */
.view-all-container {
    text-align: center;
    padding: var(--space-4, 20px) 0 0 0;
    border-top: 1px solid var(--color-gray-200);
    margin-top: var(--space-4, 20px);
}

/* Amount styling in tables */
.amount-positive {
    color: var(--color-success, #4caf50);
    font-weight: var(--font-weight-semibold, 600);
}

.amount-negative {
    color: var(--color-danger, #f44336);
    font-weight: var(--font-weight-semibold, 600);
}

/* Badge current */
.badge-current {
    background: #e3f2fd;
    color: #1976d2;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: var(--radius-sm, 4px);
    margin-left: var(--space-2, 10px);
    font-weight: var(--font-weight-medium, 500);
}

/* Rent Periods Table Row States */
.rent-periods-table tr.period-paid {
    background: rgba(76, 175, 80, 0.05);
}

.rent-periods-table tr.period-partial {
    background: rgba(255, 152, 0, 0.08);
}

.rent-periods-table tr.period-overdue {
    background: rgba(244, 67, 54, 0.08);
}

.rent-periods-table tr.period-current {
    background: rgba(33, 150, 243, 0.08);
}

/* ============================================================================
   END PAYMENTS PAGE FIXES
   ============================================================================ */

/* ============================================================================
   PAYMENTS PAGE - LEGEND & TABLE FIXES
   Added: 2025-12-03
   Fixes: Legend visibility and Payment History table styling
   ============================================================================ */

/* Enhanced Legend Dots - More Visible */
.payment-legend .legend-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.payment-legend .legend-dot.paid {
    background: #4caf50;
}

.payment-legend .legend-dot.current {
    background: #2196f3;
}

.payment-legend .legend-dot.overdue {
    background: #f44336;
}

.payment-legend .legend-dot.partial {
    background: #ff9800;
}

.payment-legend .legend-dot.future {
    background: #9e9e9e;
}

/* Legend text styling */
.payment-legend .legend-item {
    font-weight: 500;
    color: var(--color-gray-700);
}

/* ============================================================================
   PAYMENT HISTORY TABLE - COMPREHENSIVE STYLING
   ============================================================================ */

.payments-table,
table.payments-table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    font-size: var(--font-size-sm, 0.875rem);
    background: var(--color-white, #fff);
}

.payments-table thead,
table.payments-table thead {
    background: var(--color-primary-gradient, linear-gradient(135deg, #667eea 0%, #764ba2 100%));
}

.payments-table thead tr,
table.payments-table thead tr {
    border: none;
}

.payments-table thead th,
table.payments-table thead th {
    padding: var(--space-3, 15px);
    text-align: left;
    font-weight: var(--font-weight-semibold, 600);
    color: var(--color-white, #fff);
    font-size: var(--font-size-sm, 0.875rem);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
}

.payments-table tbody,
table.payments-table tbody {
    background: var(--color-white, #fff);
}

.payments-table tbody tr,
table.payments-table tbody tr {
    border-bottom: 1px solid var(--color-gray-200, #e5e7eb);
    transition: background 0.15s ease;
}

.payments-table tbody tr:hover,
table.payments-table tbody tr:hover {
    background: var(--color-gray-50, #f9fafb);
}

.payments-table tbody tr:nth-child(even),
table.payments-table tbody tr:nth-child(even) {
    background: rgba(102, 126, 234, 0.02);
}

.payments-table tbody tr:nth-child(even):hover,
table.payments-table tbody tr:nth-child(even):hover {
    background: var(--color-gray-50, #f9fafb);
}

.payments-table tbody td,
table.payments-table tbody td {
    padding: var(--space-3, 15px);
    color: var(--color-gray-700, #374151);
    vertical-align: middle;
    border: none;
    font-size: var(--font-size-sm, 0.875rem);
}

.payments-table tbody td:first-child,
table.payments-table tbody td:first-child {
    font-weight: var(--font-weight-medium, 500);
}

/* Status badge styling in tables */
.payments-table .status-badge,
.rent-periods-table .status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.status-badge.paid,
.status-badge.success {
    background: #e8f5e9;
    color: #2e7d32;
}

.status-badge.partial,
.status-badge.warning {
    background: #fff3e0;
    color: #e65100;
}

.status-badge.overdue,
.status-badge.danger {
    background: #ffebee;
    color: #c62828;
}

.status-badge.current,
.status-badge.info {
    background: #e3f2fd;
    color: #1565c0;
}

.status-badge.pending {
    background: #fafafa;
    color: #616161;
}

/* Responsive Payments Table */
@media (max-width: 768px) {
    .payments-table,
    table.payments-table {
        display: block;
    }
    
    .payments-table thead,
    table.payments-table thead {
        display: none;
    }
    
    .payments-table tbody,
    table.payments-table tbody {
        display: block;
    }
    
    .payments-table tbody tr,
    table.payments-table tbody tr {
        display: block;
        margin-bottom: var(--space-3, 15px);
        background: var(--color-white, #fff);
        border: 1px solid var(--color-gray-200, #e5e7eb);
        border-radius: var(--radius-md, 8px);
        box-shadow: var(--shadow-sm, 0 1px 3px rgba(0,0,0,0.08));
    }
    
    .payments-table tbody td,
    table.payments-table tbody td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: var(--space-2, 10px) var(--space-3, 15px);
        border-bottom: 1px solid var(--color-gray-100, #f3f4f6);
    }
    
    .payments-table tbody td:last-child,
    table.payments-table tbody td:last-child {
        border-bottom: none;
        background: var(--color-gray-50, #f9fafb);
        border-radius: 0 0 var(--radius-md, 8px) var(--radius-md, 8px);
    }
    
    .payments-table tbody td::before,
    table.payments-table tbody td::before {
        content: attr(data-label);
        font-weight: var(--font-weight-semibold, 600);
        color: var(--color-gray-500, #6b7280);
        font-size: var(--font-size-xs, 0.75rem);
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
}

/* Rent Periods Table - Enhanced Row States */
.rent-periods-table tbody tr.period-paid {
    background: rgba(76, 175, 80, 0.04);
}

.rent-periods-table tbody tr.period-paid:hover {
    background: rgba(76, 175, 80, 0.08);
}

.rent-periods-table tbody tr.period-partial {
    background: rgba(255, 152, 0, 0.06);
}

.rent-periods-table tbody tr.period-partial:hover {
    background: rgba(255, 152, 0, 0.12);
}

.rent-periods-table tbody tr.period-overdue {
    background: rgba(244, 67, 54, 0.06);
}

.rent-periods-table tbody tr.period-overdue:hover {
    background: rgba(244, 67, 54, 0.12);
}

.rent-periods-table tbody tr.period-current {
    background: rgba(33, 150, 243, 0.06);
    border-left: 3px solid #2196f3;
}

.rent-periods-table tbody tr.period-current:hover {
    background: rgba(33, 150, 243, 0.12);
}

/* ============================================================================
   END PAYMENTS PAGE LEGEND & TABLE FIXES
   ============================================================================ */
