/* Custom CSS */
/* Set a smaller font size for all elements */
body, p, h1, h2, h3, h4, h5, h6, ul, ol, li, a, input, select, textarea, button {
  font-size: 11px; /* Adjust the font size to your preference */
}

body {
  background-color: #f8f9fa; /* Set a background color */
}

.navbar {
  background-color: #221e5a; /* Set your primary color as the background for the navbar */
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.system-logo {
  height: auto;
  width: 60px;
}

.navbar .nav-item {
  margin-right: 10px; /* Add some spacing between navbar items */
  background-color: #221e5a;
}

.nav-link {
  color: #fff; /* Set text color for the navbar links */
}

/* Style for the table container */
#functionData {
  margin-top: 20px;
  padding: 20px;
  background-color: #fff;
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

/* Style for buttons */
.btn-primary a {
  color: #fff !important; /* Set text color for links within buttons to white */
}
.btn-primary {
  background-color: transparent !important; /* Set background to transparent */
  border-color: #221e5a !important; /* Set border color for buttons */
  color: #0d0d0d; /* Set text color for buttons */
}

.btn-primary-white {
  background-color: transparent !important; /* Set background to transparent */
  border-color: #221e5a !important; /* Set border color for buttons */
  color: #0d0d0d; /* Set text color for buttons */
}

.btn-primary:hover {
  background-color: transparent; /* Set background to transparent on hover */
  border-color: #1c194f; /* Darken the border color on hover */
  color: #fff; /* Set text color for buttons on hover */
}
.btn-secondary a {
  color: #000000 !important; /* Set text color for links within buttons to white */
}
.btn-secondary {
  background-color: transparent !important; /* Set background to transparent */
  border-color: #221e5a !important; /* Set border color for buttons */
  color: #000000; /* Set text color for buttons */
}

.btn-secondary:hover {
  background-color: transparent; /* Set background to transparent on hover */
  border-color: #1c194f; /* Darken the border color on hover */
  color: #000000; /* Set text color for buttons on hover */
}

/* Remove background color from buttons within the navbar-nav ml-auto class */
.navbar-nav.ml-auto .btn-primary {
  background-color: transparent; /* Set background to transparent */
  border-color: #221e5a; /* Set border color for buttons */
  color: #fff; /* Set text color for buttons */
}

/* Style for buttons within the navbar-nav ml-auto class on hover */
.navbar-nav.ml-auto .btn-primary:hover {
  background-color: transparent; /* Set background to transparent on hover */
  border-color: #1c194f; /* Darken the border color on hover */
  color: #fff; /* Set text color for buttons on hover */
}


/* Add a custom class for styling */
.custom-btn {
  background-color: transparent;
  border: none;
  color: #060606;
}

/* Add hover effect for the custom buttons */
.custom-btn:hover {
  background-color: transparent;
  border: none;
  color: #fff;
}

#uploadTransactions {
  color: #fff !important;
  text-decoration: none !important; /* Remove underline from the link text */
}

/* Table headers format */
.table th {
    text-align: center;
    font-weight: bold;
    font-size: 0.95em;
    background-color: white;
    padding: 12px;
}

/* Table styles */
.table {
    width: 100%;
    margin-bottom: 1rem;
    border-collapse: collapse;
}

.table td {
    font-size: 12px;
    padding: 12px;
    text-align: center;
    vertical-align: middle;
    white-space: nowrap;
}

/* Keep the sticky header */
.sticky-thead th {
    position: sticky;
    top: 0;
    background-color: white;
    z-index: 1;
    border-bottom: 2px solid #dee2e6;
}

/* Apply red background to rows where Amount Paid is equal to zero in the Rent Roll table */
.rent-roll-table td.zero-amount {
  background-color: lightcoral; /* Adjust the background color to your preference */
}

/* Comments column styling */
.rent-roll-table .comments-cell {
  max-height: 40px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 4px 8px;
  line-height: 1.2;
}

/* Unit Reference column styling */
.rent-roll-table .unit-reference-cell {
  max-width: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rent-roll-table .unit-reference-cell a {
  text-decoration: none;
  color: #007bff;
}

.rent-roll-table .unit-reference-cell a:hover {
  text-decoration: underline;
}

/* Homeowner column styling */
.rent-roll-table .homeowner-cell {
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Days Remaining column styling */
.rent-roll-table .days-remaining-cell {
  max-width: 60px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Agent column styling */
.rent-roll-table .agent-cell {
  max-width: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}



.rent-roll-table .comments-cell:hover {
  background-color: #f8f9fa;
  border-radius: 4px;
}

/* Comments modal styling */
.comment-item {
  padding: 10px 0;
}

.comment-header {
  margin-bottom: 5px;
}

.comment-text {
  line-height: 1.4;
  word-wrap: break-word;
}

.add-comment-section {
  border-top: 1px solid #dee2e6;
  padding-top: 15px;
  margin-top: 15px;
}

/* Comments container styling for scrollable comments */
.comments-container {
  display: flex;
  flex-direction: column;
  height: 500px;
}

.comments-scrollable {
  flex: 1;
  overflow-y: auto;
  padding-right: 10px;
  margin-bottom: 15px;
  max-height: 350px;
}

.comments-scrollable::-webkit-scrollbar {
  width: 6px;
}

.comments-scrollable::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.comments-scrollable::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}

.comments-scrollable::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/* File upload and display styling */
.files-sidebar {
  border-left: 1px solid #dee2e6;
  padding-left: 15px;
  height: 100%;
}

.file-item {
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
}

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

.file-link {
  color: #007bff;
  text-decoration: none;
  font-size: 12px;
}

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

.comment-files {
  background-color: #f8f9fa;
  padding: 8px;
  border-radius: 4px;
  margin-top: 8px;
}

.file-attachment {
  margin: 4px 0;
}

.selected-files-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.selected-file-item {
  display: flex;
  align-items: center;
  background-color: #e9ecef;
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 11px;
}

.file-name {
  color: #495057;
  margin-right: 6px;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.remove-file {
  padding: 2px 4px;
  font-size: 10px;
  border: none;
  background: none;
  color: #dc3545;
  cursor: pointer;
}

.remove-file:hover {
  color: #c82333;
}

.button-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.button-group .btn {
  font-size: 12px;
  padding: 6px 12px;
}

.button-group label.btn {
  cursor: pointer;
  margin-bottom: 0;
}

.button-group input[type="file"] {
  display: none;
}

/* Apply red background to rows where Amount Paid is equal to zero in the Rent Roll table */
.rent-roll-table td.no-lease {
  background-color: rgb(255, 215, 215); /* Adjust the background color to your preference */
}

.rent-roll-table td.indlu-lease {
  background-color: rgb(249, 218, 197); /* Adjust the background color to your preference */
}

.rent-roll-table td.bitprop-lease {
  background-color: rgb(186, 240, 181); /* Adjust the background color to your preference */
}

.rent-roll-table td.days-remaining-30 {
  background-color: rgb(247, 31, 31); /* Adjust the background color to your preference */
}

.rent-roll-table td.days-remaining-90 {
  background-color: rgb(239, 213, 45); /* Adjust the background color to your preference */
}

/* Apply red background to rows where Amount Paid is equal to zero in the Citiq Payout V2 table */
.citiq-payout-table td.zero-amount {
  background-color: lightcoral; /* Adjust the background color to your preference */
}

/* Apply orange background to rows where Amount Paid is greater than Amount Due in the Rent Roll table */
.rent-roll-table td.greater-amount {
  background-color: rgb(231, 240, 128); /* Adjust the background color to your preference */
}

.row-average-cell {
  font-weight: bold;
}

/* Styling to make the table a fixed width and height for tables with many column headers */
.table-container {
  max-height: 500px; /* Adjust as needed */
  overflow-y: auto; /* Enable vertical scrolling */
  overflow-x: auto; /* Enable horizontal scrolling */
  display: block; /* Make sure the table container behaves as a block-level element */
  border: 1px solid #ddd; /* Optional: Adds a border around the table */
}

.data-container {
  width: 100%; /* Make sure the table takes up the full width of its container */
  border-collapse: collapse; /* Optional: Makes the table borders collapse into a single border */
}

/* Custom CSS to adjust dropdown position */
.nav-item .dropdown-menu {
    position: absolute; /* Ensure the dropdown menu is positioned absolutely */
    left: 0; /* Align the menu to the left edge of the button */
    top: 100%; /* Position it directly below the button */
    margin-top: 0; /* Remove any extra margin if necessary */
    background-color: #221e5a; /* Set your primary color as the background for the navbar */
}

/* Set text color for dropdown items to white */
.nav-item .dropdown-menu .dropdown-item {
    color: #fff; /* Set text color for dropdown items */
    font-size: 16px;
}

/* Optionally, set the text color on hover to maintain visibility */
.nav-item .dropdown-menu .dropdown-item:hover {
    color: #f8f9fa; /* Lighten the text color on hover if needed */
    background-color: #0056b3; /* Optionally change background color on hover */
}

.table td .btn {
  margin: 0;
  padding: 3px 8px; /* Reduced padding */
  font-size: 0.9em; /* Slightly smaller font */
  line-height: 1.2; /* Reduced line height */
  height: auto;
  min-height: 24px; /* Set minimum height */
  white-space: nowrap; /* Prevent text wrapping */
  display: inline-block; /* Allow buttons to sit side by side */
  margin-right: 4px; /* Small gap between buttons */
}

.table td .btn:last-child {
  margin-right: 0; /* Remove margin from last button */
}

/* Ensure buttons in table cells don't wrap to new line */
.table td {
  white-space: nowrap;
  vertical-align: middle;
}

/* CSS to style the notification */
#notification {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

#notification-content {
  background-color: #fff;
  padding: 20px;
  border-radius: 5px;
}

.total-row td {
  font-weight: bold;
}

/* Color-coding for rows based on conditions */
.red-row {
  background-color: #ffcccc; /* Light red for escalation date < 3 months and status null */
}

.yellow-row {
  background-color: #ffffcc; /* Light yellow for < 3 months, notice sent, and tenant decision null */
}

.green-row {
  background-color: #ccffcc; /* Light green for < 3 months and tenant decision not null */
}

.detailRow td {
  background-color: #f0f0f0; /* Light grey background */
  padding: 10px; /* Add some padding */
  border-top: 1px solid #ddd; /* Light border on top */
}

/* Deposit Status Colors */
.deposit-paid {
  color: green;
}

.deposit-overdue {
  color: red;
}

.deposit-overpaid {
  color: orange;
}

#pdf-container canvas {
  max-width: 100%;
  height: auto;
  display: block;
  margin-bottom: 10px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2); /* Optional: adds a subtle shadow for depth */
}

@media (max-width: 768px) {
  .btn.custom-btn {
      padding: 0.75rem 1.25rem;
      font-size: 1rem;
  }
}

@media (max-width: 768px) {
  #pdf-container-id { /* Replace with your actual container ID */
      flex-direction: column;
  }
}

.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1; /* Sit on top */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

.modal-content {
  background-color: #fefefe;
  margin: 15% auto; /* 15% from the top and centered */
  padding: 20px;
  border: 1px solid #888;
  width: 80%; /* Could be more or less, depending on screen size */
}

.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

.association-detail-flex {
  display: flex;
  justify-content: space-between;
  width: 100%;
  flex-wrap: wrap; /* Allow items to wrap if needed */
}

.block {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  padding: 10px; /* Ensure padding is consistent for all blocks */
  box-sizing: border-box; /* Ensure padding doesn't add to element width */
  padding: 10px; /* Adjust padding as needed */
}

/* Ensure all blocks have a consistent basis and allow them to grow as needed */
.block-left, .block-middle, .block-right {
  flex-basis: calc(33.333% - 20px); /* Adjust based on padding/margins to ensure even distribution */
}

.block-middle {
  display: flex; /* Adjust this to flex to align children horizontally */
  justify-content: flex-start; /* Align children to the start */
  flex-wrap: wrap; /* Allow items to wrap if needed */
  gap: 10px; /* Adjust gap between items */
}

.unique-ref-input {
  display: flex;
  width: 100%; /* Take up full width to match other elements */
  gap: 10px; /* Adjust the space between the input and button */
}

.unique-ref-input input, .unique-ref-input button {
  flex: 1; /* Makes input and button take up equal width */
  height: 25px; /* Example fixed height - adjust as needed */
}

/* Additional styling to ensure visual consistency */
.block-left span, .block-middle > div, .block-right {
  display: flex;
  align-items: center; /* Center align items for aesthetic consistency */
  min-height: 40px; /* Ensure a consistent height for all elements */
  gap: 5px;
}

/* styles.css */
.arrears-highlight {
  background-color: lightcoral; /* Light coral background for highlighted cells */
  color: rgb(12, 12, 12); /* Ensure text color is white for better visibility */
  transition: background-color 0.3s; /* Smooth transition for background color change */
}

.status-cell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px;
}

.status-cell {
  display: flex;
  flex-direction: column;  /* Stacks children vertically */
  align-items: stretch;    /* Aligns children to fill the cell width */
  padding: 8px;
}

/* Dropdown list styling for checkboxes in Rent Roll */
.dropdown-button {
  background-color: #007bff; /* Example button color */
  color: white;
  border: none;
  padding: 5px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 12px;
  margin: 4px 2px;
  cursor: pointer;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #f9f9f9;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1;
  top: 100%;
  left: 0;
}

.dropdown-content label {
  padding: 12px 16px;
  display: flex;
  align-items: center;
}

.dropdown-content input[type="checkbox"] {
  margin-right: 8px;
}

.dropdown-container {
  position: relative;
  display: inline-block;
}

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

.dropdown-button:hover + .dropdown-content:hover {
    display: block; /* Show dropdown on hover */
}

.dropdown-item {
  padding: 8px 16px;
  cursor: pointer;
}

.card {
  margin-bottom: 20px;
}
.card-header {
  font-weight: bold;
}

/* Styles for the transactions table to match lease details font size */
.transaction-table th,
.transaction-table td {
    font-size: 0.7rem; /* Match this with the font size of the lease details section */
}

/* Optional styling for table headers */
.transaction-table th {
    font-weight: bold;
}

/* General styling for lease details font size consistency */
.lease-info p,
.lease-info h4 {
    font-size: 0.7rem; /* Ensure this matches the transaction table font size */
}

/* Scrollable container for the transactions table */
.table-responsive-container {
  max-height: 300px; /* Set the maximum height for vertical scrolling */
  overflow-y: auto;  /* Enable vertical scrolling */
  overflow-x: auto;  /* Enable horizontal scrolling if needed */
  border: 1px solid #ddd; /* Optional: Add a border to visually separate */
}

.table.statement-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

.table.statement-table th, .table.statement-table td {
  padding: 10px;
  border: 1px solid #ddd;
}

.table.statement-table tfoot tr td {
  font-weight: bold;
}

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

.table.data-container th, .table.data-container td {
  padding: 12px !important;
  text-align: center !important;
}

/* Styling the height for the messaging interface at different screen sizes */
.messaging-interface {
  width: 100%;
  height: 100%;
}  

.messaging-interface .content {
  width: 100%; 
  height: calc(100vh - 100px); /* Account for the navbar */
  border: none;
}


.nav-link {
  background-color: transparent !important; /* Set background to transparent */
  border-color: #221e5a !important; /* Set border color for buttons */
  color: #c6c4c4; /* Set text color for buttons */
}

.nav-link :active {
  background-color: transparent !important; /* Set background to transparent */
  border-color: #221e5a !important; /* Set border color for buttons */
  color: #0d0d0d; /* Set text color for buttons */
}

.counts-container {
    margin: 20px auto; /* Centers and aligns the section */
    padding: 10px 20px; /* Adds padding around the content */
    max-width: 1200px; /* Matches the table's width for alignment */
    border: 1px solid #ddd; /* Optional: Add border to match table styling */
    border-radius: 5px; /* Rounded corners */
    background-color: #f9f9f9; /* Light background for distinction */
    font-size: 16px; /* Consistent font size */
    text-align: left; /* Aligns text to match the table */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Optional: Adds subtle shadow */
}

.counts-container h4 {
    margin: 0; /* Removes default margin for better alignment */
    font-weight: 500; /* Optional: Adjusts font weight */
    color: #333; /* Matches table font color */
}

.unreconciled-allocation-row {
  background-color: #ffa500; /* Orange background */
  color: #000; /* Ensure text remains readable */
}

/* Style buttons on new rent roll page */
.btn-margin {
  margin-top: 30px;
}

/* Transaction action buttons styling */
.move-lease-btn, .delink-btn {
  margin: 2px;
  font-size: 10px;
  padding: 4px 8px;
}

.delink-btn:disabled, .move-lease-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.lease-block {
  border: 1px solid #ccc; /* Light gray border */
  border-radius: 5px; /* Rounded corners */
  padding: 15px; /* Padding inside the block */
  margin-bottom: 20px; /* Space between lease blocks */
  background-color: #f9f9f9; /* Subtle background color */
}

.lease-header {
  cursor: pointer;
  font-weight: bold;
  margin-bottom: 10px;
  color: #333; /* Text color */
}

.lease-header:hover {
  color: #007bff; /* Hover color */
}

.collapse {
  padding-top: 10px; /* Add spacing for content inside collapsed sections */
}

/* Display user profile */
/* Container for user profile area */
.user-profile-area {
  display: flex;
  align-items: center;
  justify-content: flex-end; /* Align the profile and button to the right */
  background-color: transparent; /* Transparent background for navbar integration */
  border-radius: 0; /* Remove border radius for navbar integration */
  box-shadow: none; /* Remove box shadow for navbar integration */
  max-width: none; /* Remove max-width constraint */
  margin: 0; /* Remove margin for navbar integration */
  padding: 0 10px; /* Add some padding for spacing */
  height: 100%; /* Take full height of navbar */
}

/* Style for the user name */
.user-name {
  font-size: 14px; /* Smaller font size for navbar */
  font-weight: bold;
  color: #fff; /* White color for navbar visibility */
  margin-right: 15px; /* Space between username and logout button */
  margin-top: 0; /* Remove top margin for navbar alignment */
  display: flex;
  align-items: center; /* Center vertically */
  line-height: 1; /* Consistent line height */
}

/* Style for the user name */
.user-name {
  font-size: 14px; /* Smaller font size for navbar */
  font-weight: bold;
  color: #fff; /* White color for navbar visibility */
  margin: 0; /* Remove margins for compact design */
  display: inline; /* Inline for button content */
  line-height: 1; /* Consistent line height */
}

/* Style for the user name button */
.user-name-button {
  background-color: transparent !important;
  border: none !important;
  color: #fff !important;
  padding: 8px 12px !important;
  font-size: 14px !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.user-name-button:hover {
  background-color: rgba(255, 255, 255, 0.1) !important;
  color: #fff !important;
}

.user-name-button:focus {
  box-shadow: none !important;
  background-color: rgba(255, 255, 255, 0.1) !important;
}

.user-name-button i {
  font-size: 12px;
  opacity: 0.8;
}

/* Style for user dropdown menu */
.user-profile-area .dropdown-menu {
  min-width: 150px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background-color: #221e5a;
}

.user-profile-area .dropdown-item {
  color: #fff;
  padding: 8px 16px;
  font-size: 14px;
}

.user-profile-area .dropdown-item:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.user-profile-area .dropdown-item i {
  width: 16px;
  text-align: center;
}

/* Additional styling for navbar user profile integration */
#navbar-user-profile {
  display: flex;
  align-items: center;
  margin-left: auto; /* Push to the right */
  height: 100%; /* Take full height of navbar */
}

#navbar-user-profile .user-profile-area {
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  height: 100%; /* Take full height */
}

/* Style for the login process */
/* Center the login container */
#login {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100vh; /* Full height of the viewport */
  text-align: center;
  background-color: #f9f9f9; /* Light background for contrast */
  padding: 20px;
}

/* Styling for the login heading */
#login h3 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: #333;
}

/* Styling for the login button */
#loginButton {
  font-size: 1rem;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  background-color: #0078d4; /* Microsoft blue */
  color: white;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

/* Hover effect for the login button */
#loginButton:hover {
  background-color: #005a9e; /* Darker shade of blue */
}

/* Additional styling for input buttons and fields */
.tenant-documents {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Lease bulk messages for rent update */
.editable-rent {
  background-color: #f9f9f9;
  border: 1px dashed #ccc;
  cursor: pointer;
  padding: 5px;
  text-align: center;
  transition: background-color 0.2s, border 0.2s;
}

.editable-rent:focus {
  background-color: #fff;
  border: 1px solid #007bff;
  outline: none;
}

.lease-table-container {
  margin-left: 50px; 
  margin-right: 50px;
  margin-top: 50px;
  height: 100%;
}

/* Export Clickup Data */

.export-clickup-data select {
  margin-bottom: 10px;
}

/* Phone number verification */
  .verification_form {
    display: flex;
    flex-direction: column;
    align-items: center; /* Center horizontally */
    justify-content: center; /* Center vertically */
    height: 100vh; /* Full screen height */
  }

  #phone_number, #otp {
    width: 400px; /* Set a fixed width */
    padding: 5px;
    font-size: 14px;
  }

  .loading_spinner .top_button {
    display: flex;
    justify-items: center;
  }

  #spinner {
    display: none;
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-left-color: #000;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 10px auto;
  }

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

/* Transaction status badges */
.badge {
    padding: 0.4em 0.6em;
    font-size: 0.85em;
    font-weight: 500;
    border-radius: 4px;
}

/* Ensure table containers maintain proper scrolling behavior */
.table-container, .data-container {
    width: 100%;
    margin: 0;
    padding: 0;
    border: none;
    overflow: visible;
    display: table;
}

/* Preserve table-responsive-container scrolling behavior */
.table-responsive-container {
    max-height: 300px;
    overflow-y: auto;
    overflow-x: auto;
    border: 1px solid #ddd;
}

/* Monthly Matrix Table Styles */
.monthly-matrix-table {
    font-size: 11px;
    border-collapse: collapse;
    width: 100%;
    overflow-x: auto;
}

.monthly-matrix-table th {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    padding: 8px 4px;
    text-align: center;
    font-weight: bold;
    position: sticky;
    top: 0;
    z-index: 10;
}

.monthly-matrix-table td {
    border: 1px solid #dee2e6;
    padding: 4px;
    vertical-align: top;
}

.month-cell {
    min-height: 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.status-indicator {
    font-size: 10px;
    font-weight: bold;
    padding: 2px 4px;
    border-radius: 3px;
    margin-bottom: 2px;
    text-align: center;
}

.status-indicator.vacant {
    background-color: #ffc107;
    color: #000;
}

.status-indicator.arrears {
    background-color: #dc3545;
    color: white;
}

.status-indicator.unavailable {
    background-color: #6c757d;
    color: white;
}

.status-indicator.notice {
    background-color: #fd7e14;
    color: white;
}

.status-indicator.locked {
    background-color: #6f42c1;
    color: white;
}

.status-indicator.citiq {
    background-color: #e83e8c;
    color: white;
}

.status-indicator.active {
    background-color: #28a745;
    color: white;
}

.status-indicator.no-lease {
    background-color: #f8f9fa;
    color: #6c757d;
    border: 1px solid #dee2e6;
}

.amount-info {
    font-size: 9px;
    line-height: 1.2;
    color: #495057;
}

.month-cell.no-data {
    color: #6c757d;
    font-style: italic;
    text-align: center;
    padding: 8px;
}

/* Hover effects for month cells */
.monthly-matrix-table td:hover {
    background-color: #f8f9fa;
    cursor: pointer;
}

/* Unit reference links */
.monthly-matrix-table a {
    color: #007bff;
    text-decoration: none;
}

.monthly-matrix-table a:hover {
    text-decoration: underline;
}

/* Highlight units with long vacancy streaks */
.long-vacancy-highlight {
    background-color: #fff3cd !important;
    border-left: 4px solid #ffc107 !important;
}

.long-vacancy-highlight:hover {
    background-color: #ffeaa7 !important;
}

/* Responsive design for mobile */
@media (max-width: 768px) {
    .monthly-matrix-table {
        font-size: 9px;
    }
    
    .monthly-matrix-table th,
    .monthly-matrix-table td {
        padding: 2px;
    }
    
    .status-indicator {
        font-size: 8px;
        padding: 1px 2px;
    }
    
    .amount-info {
        font-size: 8px;
    }
}

/* Search Filter Styles */
.search-filter-container {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 20px;
    margin-bottom: 20px;
}

.search-filter-container .input-group {
    max-width: 600px;
    margin: 0 auto;
}

.search-filter-container .form-control {
    border-radius: 0 4px 4px 0;
    border-left: none;
}

.search-filter-container .input-group-prepend .input-group-text {
    background: white;
    border-right: none;
    border-radius: 4px 0 0 4px;
}

.search-filter-container .btn-outline-secondary {
    border-radius: 0 4px 4px 0;
    color: #6c757d;
    background-color: #ffffff;
    border-color: #6c757d;
}

.search-filter-container .btn-outline-secondary:hover {
    color: #ffffff;
    background-color: #6c757d;
    border-color: #6c757d;
}

/* Two-Column Profiles Layout Styles */
.assigned-tenants-section,
.unassigned-tenants-section {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    height: 100%;
    min-height: 600px;
}

.section-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e9ecef;
}

.section-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-title i {
    color: #007bff;
}

.tenant-count {
    background: #e9ecef;
    color: #6c757d;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-left: 0.5rem;
}

.section-subtitle {
    color: #6c757d;
    font-size: 0.9rem;
    margin: 0;
}

.loading-placeholder {
    text-align: center;
    padding: 2rem;
    color: #6c757d;
}

.loading-placeholder p {
    margin-top: 1rem;
    font-size: 0.9rem;
}

/* Tenant Card Styles */
.tenant-card {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 0.5rem 1rem;
    margin-bottom: 0.5rem;
    transition: all 0.2s ease-in-out;
}

/* Removed hover effect */

.tenant-card.assigned {
    border-left: 4px solid #28a745;
}

.tenant-card.unassigned {
    border-left: 4px solid #ffc107;
}

.tenant-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0;
}

.tenant-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: #495057;
    margin: 0;
}

.tenant-status {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-weight: 500;
}

.tenant-status.assigned {
    background: #d4edda;
    color: #155724;
}

.tenant-status.unassigned {
    background: #fff3cd;
    color: #856404;
}

.tenant-details {
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 0.75rem;
}

.tenant-details p {
    margin: 0.25rem 0;
}

.tenant-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tenant-actions .btn {
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
    border: 1px solid #dee2e6;
    font-weight: 500;
}

/* Ensure all buttons have proper contrast */
.tenant-actions .btn-outline-primary {
    color: #007bff;
    background-color: #ffffff;
    border-color: #007bff;
}

.tenant-actions .btn-outline-primary:hover {
    color: #ffffff;
    background-color: #007bff;
    border-color: #007bff;
}

.tenant-actions .btn-outline-warning {
    color: #ffc107;
    background-color: #ffffff;
    border-color: #ffc107;
}

.tenant-actions .btn-outline-warning:hover {
    color: #212529;
    background-color: #ffc107;
    border-color: #ffc107;
}

.tenant-actions .btn-outline-secondary {
    color: #6c757d;
    background-color: #ffffff;
    border-color: #6c757d;
}

.tenant-actions .btn-outline-secondary:hover {
    color: #ffffff;
    background-color: #6c757d;
    border-color: #6c757d;
}

.tenant-actions .btn-outline-danger {
    color: #dc3545;
    background-color: #ffffff;
    border-color: #dc3545;
}

.tenant-actions .btn-outline-danger:hover {
    color: #ffffff;
    background-color: #dc3545;
    border-color: #dc3545;
}

.tenant-actions .btn-info {
    color: #ffffff;
    background-color: #17a2b8;
    border-color: #17a2b8;
}

.tenant-actions .btn-info:hover {
    background-color: #138496;
    border-color: #117a8b;
}

.tenant-actions .btn-success {
    color: #ffffff;
    background-color: #28a745;
    border-color: #28a745;
}

.tenant-actions .btn-warning {
    color: #212529;
    background-color: #ffc107;
    border-color: #ffc107;
}

.tenant-actions .btn-danger {
    color: #ffffff;
    background-color: #dc3545;
    border-color: #dc3545;
}

.tenant-actions .btn-primary {
    color: #ffffff;
    background-color: #007bff;
    border-color: #007bff;
}

/* Collapsible Card Styles */
.tenant-card.collapsed .tenant-details {
    display: none;
}

.tenant-card.collapsed .tenant-actions {
    display: none;
}

.tenant-card .expand-icon {
    transition: transform 0.2s ease-in-out;
    color: #6c757d;
    font-size: 0.875rem;
}

.tenant-card .tenant-header {
    cursor: pointer;
    user-select: none;
}

/* Removed hover effect */

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

/* Ensure collapsed cards are single line */
.tenant-card.collapsed {
    padding: 0.5rem 1rem;
}

.tenant-card.collapsed .tenant-details,
.tenant-card.collapsed .tenant-actions {
    display: none;
}

/* Enhanced Lease Modal Styles */
.step-section {
    margin-bottom: 2rem;
    padding: 1rem;
    border: 1px solid #e9ecef;
    border-radius: 0.375rem;
    background-color: #f8f9fa;
}

/* Global button styling to ensure proper contrast */
.btn {
    font-weight: 500;
    border: 1px solid transparent;
}

.btn:not(.btn-outline-*) {
    color: #ffffff;
}

.btn-outline-* {
    background-color: #ffffff;
}

/* Override existing btn-secondary styles to ensure visibility */
.tenant-actions .btn-secondary,
.tenant-actions .btn-secondary.btn-sm {
    background-color: #6c757d !important;
    color: #ffffff !important;
    border-color: #6c757d !important;
    font-weight: 500 !important;
}

.tenant-actions .btn-secondary:hover,
.tenant-actions .btn-secondary.btn-sm:hover {
    background-color: #5a6268 !important;
    color: #ffffff !important;
    border-color: #545b62 !important;
}

/* Also fix any other btn-secondary buttons that might be affected */
.btn-secondary:not(.tenant-actions .btn-secondary) {
    background-color: #6c757d !important;
    color: #ffffff !important;
    border-color: #6c757d !important;
}

/* Ensure Documents button is always visible and readable */
button[onclick*="showTenantDocuments"] {
    background-color: #6c757d !important;
    color: #ffffff !important;
    border-color: #6c757d !important;
    font-weight: 500 !important;
}

button[onclick*="showTenantDocuments"]:hover {
    background-color: #5a6268 !important;
    color: #ffffff !important;
    border-color: #545b62 !important;
}

/* Ensure form controls also have proper contrast */
.form-control {
    color: #495057;
    background-color: #ffffff;
    border: 1px solid #ced4da;
}

.form-control:focus {
    color: #495057;
    background-color: #ffffff;
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Fix only the upload button in the documents modal */
#tenantDocumentsModal .btn-primary {
    color: #ffffff !important;
    background-color: #007bff !important;
    border-color: #007bff !important;
}

#tenantDocumentsModal .btn-primary:hover {
    color: #ffffff !important;
    background-color: #0056b3 !important;
    border-color: #0056b3 !important;
}

#tenantDocumentsModal .btn-primary:disabled {
    color: #ffffff !important;
    background-color: #6c757d !important;
    border-color: #6c757d !important;
}

/* Fix enhanced lease modal button visibility */
#enhancedLeaseModal .btn-primary {
    color: #ffffff !important;
    background-color: #007bff !important;
    border-color: #007bff !important;
}

#enhancedLeaseModal .btn-primary:hover {
    color: #ffffff !important;
    background-color: #0056b3 !important;
    border-color: #0056b3 !important;
}

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

#enhancedLeaseModal .btn-secondary:hover {
    color: #ffffff !important;
    background-color: #5a6268 !important;
    border-color: #5a6268 !important;
}

/* Fix tenant action button visibility */
.tenant-actions .btn-primary {
    color: #ffffff !important;
    background-color: #007bff !important;
    border-color: #007bff !important;
}

.tenant-actions .btn-primary:hover {
    color: #ffffff !important;
    background-color: #0056b3 !important;
    border-color: #0056b3 !important;
}

/* Document Modal Styles */
.document-item {
    background: #f8f9fa;
    transition: all 0.2s ease-in-out;
    overflow: hidden;
}

.document-item:hover {
    background: #e9ecef;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.document-item .btn {
    margin-left: 0.25rem;
}

.document-info {
    min-width: 0; /* Allow flex item to shrink below content size */
}

.document-name {
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    display: block;
}

.document-actions {
    flex-shrink: 0;
    white-space: nowrap;
}

#documentsLoading, #documentsEmpty {
    padding: 2rem;
}

#documentsContent h6 {
    color: #495057;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #007bff;
}

/* Ensure modal content doesn't overflow */
#tenantDocumentsModal .modal-body {
    max-height: 70vh;
    overflow-y: auto;
}

#tenantDocumentsModal .document-item {
    max-width: 100%;
}

.step-title {
    color: #495057;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #007bff;
}

.unit-card {
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    margin-bottom: 1rem;
    transition: all 0.2s ease-in-out;
}

.unit-card:hover {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    border-color: #007bff;
}

.unit-card.available {
    border-left: 4px solid #28a745;
}

.unit-card.unavailable {
    border-left: 4px solid #dc3545;
    opacity: 0.7;
}

.unit-info {
    padding: 1rem;
}

.unit-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.unit-name {
    font-weight: 600;
    font-size: 1.1rem;
}

.availability-badge {
    font-size: 0.875rem;
    padding: 0.25rem 0.5rem;
}

.unit-details {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 0.5rem;
}

.unit-actions {
    text-align: right;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .assigned-tenants-section,
    .unassigned-tenants-section {
        margin-bottom: 1rem;
        min-height: auto;
    }
    
    .tenant-actions {
        flex-direction: column;
    }
    
    .tenant-actions .btn {
        width: 100%;
    }
}

/* Phone Number Input Validation Styling */
#editPhoneNumber:invalid {
    border-color: #dc3545;
}

#editPhoneNumber:valid {
    border-color: #28a745;
}

/* Modal Button Styling for Phone Edit */
#editPhoneModal .btn-primary {
    color: #ffffff !important;
    background-color: #007bff !important;
    border-color: #007bff !important;
}

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