.plus-code-button {
  background-color: #2196F3;
  color: white;
  border: none;
  padding: 5px 10px;
  cursor: pointer;
  border-radius: 3px;
  margin-top: 5px;
  transition: background-color 0.3s ease;
}
.plus-code-button:hover {
  background-color: #1976D2;
}
.map-button {
  background-color: #FF5722;
  color: white;
  border: none;
  padding: 5px 10px;
  cursor: pointer;
  border-radius: 3px;
  font-size: 12px;
  margin-top: 5px;
  transition: background-color 0.3s ease;
}
.map-button:hover {
  background-color: #E64A19;
}
.bind-button {
  padding: 5px 8px;
  min-width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 5px;
  background-color: #2196F3;
  transition: background-color 0.3s ease;
}
.bind-button[href], .bind-button[onclick] {
  background-color: #4CAF50;
  color: white;
  text-decoration: none;
}
.bind-button:hover {
  background-color: #45a049;
}
.card-button {
  background-color: #4CAF50;
  color: white;
  border: none;
  padding: 4px 8px;
  cursor: pointer;
  border-radius: 3px;
  font-size: 10px;
  position: absolute;
  top: 5px;
  left: 60px;
}
.card-modal {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: white;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 20px;
  width: 300px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  font-family: Arial, sans-serif;
}
.card-modal.show {
  display: block;
}
.card-modal.dark-mode {
  background-color: #1e1e1e;
  color: #ffffff;
  border-color: #333;
}
.card-modal-header {
  text-align: center;
  padding-bottom: 10px;
  border-bottom: 2px solid #4CAF50;
}
.card-modal-header h2 {
  margin: 0;
  font-size: 18px;
  color: #4CAF50;
}
.card-modal.dark-mode .card-modal-header h2 {
  color: #ffffff;
}
.card-modal .b-logo {
  width: 80px;
  height: 80px;
  margin: 10px auto;
}
.card-modal-content {
  padding: 15px 0;
}
.card-modal-content p {
  margin: 8px 0;
  font-size: 14px;
  color: #333;
}

/* Services container with scrolling */
#service-names-container {
  max-height: 200px;
  overflow-y: auto;
  padding: 10px 0;
  margin: 10px 0;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background-color: #fafafa;
}

/* Custom scrollbar for services container */
#service-names-container::-webkit-scrollbar {
  width: 8px;
}

#service-names-container::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

#service-names-container::-webkit-scrollbar-thumb {
  background: #4CAF50;
  border-radius: 4px;
}

#service-names-container::-webkit-scrollbar-thumb:hover {
  background: #45a049;
}

/* Services styling inside container */
#service-names-container p {
  margin: 12px 10px;
  padding: 8px;
  background-color: white;
  border-radius: 6px;
  border-left: 3px solid #4CAF50;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

#service-names-container ul {
  margin: 8px 0 0 0;
  padding-left: 20px;
}

#service-names-container li {
  margin: 4px 0;
  color: #555;
  font-size: 13px;
}

/* Dark mode styles for services container */
body.dark-mode #service-names-container {
  background-color: #2a2a2a;
  border-color: #444;
}

body.dark-mode #service-names-container p {
  background-color: #333;
  color: #cccccc;
  border-left-color: #4CAF50;
}

body.dark-mode #service-names-container li {
  color: #aaa;
}

body.dark-mode #service-names-container::-webkit-scrollbar-track {
  background: #333;
}

body.dark-mode #service-names-container::-webkit-scrollbar-thumb {
  background: #4CAF50;
}

body.dark-mode #service-names-container::-webkit-scrollbar-thumb:hover {
  background: #45a049;
}
.card-modal.dark-mode .card-modal-content p {
  color: #cccccc;
}
.card-modal-content p strong {
  color: #4CAF50;
}
.card-modal.dark-mode .card-modal-content p strong {
  color: #ffffff;
}
.card-modal-buttons {
  display: flex;
  gap: 10px;
  margin-top: 15px;
  justify-content: center;
}
.card-modal-close {
  background-color: #4CAF50;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 5px;
  cursor: pointer;
  width: 50%;
  font-size: 14px;
  transition: background-color 0.3s ease;
}
.card-modal-close:hover {
  background-color: #45a049;
}
.card-modal-footer {
  text-align: center;
  font-size: 12px;
  color: #777;
  margin-top: 10px;
}
.card-modal.dark-mode .card-modal-footer {
  color: #999;
}
.payment-info-button {
  background-color: #4CAF50;
  color: white;
  border: none;
  padding: 4px 8px;
  cursor: pointer;
  border-radius: 3px;
  font-size: 12px;
  margin-top: 5px;
}
.payment-info-modal {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: white;
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 10px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  z-index: 1003;
  max-width: 500px;
  width: 90%;
}
.payment-info-modal.show {
  display: block;
}
.payment-info-modal h4 {
  margin: 0 0 15px 0;
  color: #4CAF50;
  text-align: center;
}
.payment-info-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 15px;
  max-height: 300px;
  overflow-y: auto;
  display: block;
}
.payment-info-table th, .payment-info-table td {
  border: 1px solid #ddd;
  padding: 8px;
  text-align: left;
  font-size: 12px;
}
.payment-info-table th {
  background-color: #4CAF50;
  color: white;
  position: sticky;
  top: 0;
}
.payment-info-table tr:nth-child(even) {
  background-color: #f2f2f2;
}
.payment-info-table td:empty {
  display: none;
}
.payment-info-table tr:has(td:empty) {
  display: none;
}
.payment-info-close {
  background-color: #4CAF50;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 5px;
  cursor: pointer;
  width: 100%;
}
.apply-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 1004;
  overflow-y: auto;
}
.apply-modal.show {
  display: flex;
  justify-content: center;
  align-items: center;
}
.apply-modal-content {
  background-color: white;
  padding: 20px;
  border-radius: 10px;
  width: 90%;
  max-width: 400px;
  max-height: 90vh;
  overflow-y: auto;
}
.apply-modal h4 {
  margin: 0 0 15px 0;
  color: #4CAF50;
  text-align: center;
  font-size: 16px;
}
.apply-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
}
.apply-form label {
  font-weight: bold;
  font-size: 14px;
}
.apply-form input, .apply-form select {
  width: 100%;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 14px;
}
.apply-buttons {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}
.apply-buttons button {
  flex: 1;
  padding: 8px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
}
.apply-submit {
  background-color: #4CAF50;
  color: white;
}
.apply-cancel {
  background-color: #f44336;
  color: white;
}
.service-list {
  max-height: 150px;
  overflow-y: auto;
  border: 1px solid #ddd;
  border-radius: 5px;
  padding: 5px;
  margin-top: 10px;
  font-size: 14px;
}
.service-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px;
  border-bottom: 1px solid #eee;
  font-size: 13px;
}
.service-item:last-child {
  border-bottom: none;
}
.remove-service {
  background-color: #f44336;
  color: white;
  border: none;
  border-radius: 3px;
  padding: 2px 5px;
  cursor: pointer;
  font-size: 12px;
}
.service-details {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 5px;
}
.service-details select {
  padding: 5px;
  font-size: 12px;
}
body.dark-mode .payment-info-modal {
  background-color: #1e1e1e;
  border-color: #333;
  color: #ffffff;
}
body.dark-mode .payment-info-modal h4 {
  color: #ffffff;
}
body.dark-mode .payment-info-table th,
body.dark-mode .payment-info-table td {
  border-color: #555;
  color: #ffffff;
}
body.dark-mode .payment-info-table th {
  background-color: #2e7d32;
}
body.dark-mode .payment-info-table tr:nth-child(even) {
  background-color: #333;
}
body.dark-mode .payment-info-close {
  background-color: #4CAF50;
  color: #ffffff;
}
body.dark-mode .apply-modal-content {
  background-color: #1e1e1e;
  border-color: #333;
  color: #ffffff;
}
body.dark-mode .apply-modal h4 {
  color: #ffffff;
}
body.dark-mode .apply-form input,
body.dark-mode .apply-form select {
  background-color: #333;
  color: #ffffff;
  border-color: #555;
}
body.dark-mode .service-list {
  background-color: #1e1e1e;
  border-color: #555;
}
body.dark-mode .service-item {
  border-bottom-color: #555;
}
.service-name-input {
  margin-top: 5px;
}
.payment-status {
  margin-top: 5px;
  font-size: 12px;
  padding: 3px 6px;
  border-radius: 3px;
  display: inline-block;
}
.on-base {
  background-color: #4CAF50;
  color: white;
}
.off-base {
  background-color: #f44336;
  color: white;
}
.call-button {
  background-color: #4CAF50;
  color: white;
  border: none;
  padding: 2px 6px;
  border-radius: 3px;
  cursor: pointer;
  margin-left: 5px;
}
.stats-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 20px;
}
.stat-card {
  background-color: #f5f5f5;
  border-radius: 8px;
  padding: 15px;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.stat-card h4 {
  margin: 0 0 10px 0;
  color: #4CAF50;
}
.stat-card p {
  margin: 0;
  font-size: 24px;
  font-weight: bold;
}
.stat-card.total-registered {
  border-top: 4px solid #2196F3;
}
.stat-card.total-paid {
  border-top: 4px solid #4CAF50;
}
.stat-card.total-unpaid {
  border-top: 4px solid #f44336;
}
body.dark-mode .stat-card {
  background-color: #333;
}
.plus-code-modal {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  z-index: 1008;
  max-width: 300px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
}
.plus-code-modal.show {
  display: block;
}
.plus-code-modal h4 {
  margin-top: 0;
  color: #4CAF50;
  text-align: center;
}
.plus-code-inputs {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 15px 0;
}
.plus-code-input {
  width: 100%;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 5px;
}
.plus-code-buttons {
  display: flex;
  gap: 10px;
}
.plus-code-buttons button {
  flex: 1;
  padding: 8px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}
.plus-code-confirm {
  background-color: #4CAF50;
  color: white;
}
.plus-code-cancel {
  background-color: #f44336;
  color: white;
}
.property-type-button {
  background-color: #4CAF50;
  color: white;
  border: none;
  padding: 4px 8px;
  cursor: pointer;
  border-radius: 3px;
  font-size: 10px;
  margin-top: 5px;
}
body.dark-mode .plus-code-modal {
  background-color: #1e1e1e;
  border-color: #333;
  color: #ffffff;
}
body.dark-mode .plus-code-modal h4 {
  color: #ffffff;
}
body.dark-mode .plus-code-input {
  background-color: #333;
  color: #ffffff;
  border-color: #555;
}
.formatted-number {
  font-family: monospace;
}
.service-card {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 12px;
  background-color: #f9f9f9;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.service-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
  border-color: #4CAF50;
}

.service-card h4 {
  margin: 0 0 8px 0;
  color: #4CAF50;
  font-size: 16px;
  font-weight: bold;
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 5px;
}

.service-card p {
  margin: 5px 0;
  font-size: 13px;
  line-height: 1.4;
}

.service-card .service-instance {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 10px;
  margin: 8px 0;
  position: relative;
}

.service-card .service-instance:before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background-color: #4CAF50;
  border-radius: 3px 0 0 3px;
}
.service-card-buttons {
  display: flex;
  gap: 5px;
  margin-top: 5px;
}
body.dark-mode .service-card {
  background-color: #333;
  border-color: #555;
  color: #ffffff;
}

body.dark-mode .service-card:hover {
  border-color: #4CAF50;
  box-shadow: 0 4px 8px rgba(255,255,255,0.1);
}

body.dark-mode .service-card h4 {
  color: #4CAF50;
  border-bottom-color: #555;
}

body.dark-mode .service-card .service-instance {
  background-color: #2a2a2a;
  border-color: #555;
  color: #ffffff;
}
.add-service-button {
  background-color: #4CAF50;
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.add-service-button:hover {
  background-color: #45a049;
}
.service-buttons-container {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
}
.plus-code-input.disabled {
  background-color: #f5f5f5;
  color: #999;
  cursor: not-allowed;
}
body.dark-mode .plus-code-input.disabled {
  background-color: #333;
  color: #666;
}
.service-location-input {
  margin-top: 10px;
}
.payment-status {
  margin-top: 5px;
  font-size: 12px;
  padding: 3px 6px;
  border-radius: 3px;
  display: inline-block;
}
.on-base {
  background-color: #4CAF50;
  color: white;
}
.off-base {
  background-color: #f44336;
  color: white;
}
/* Performance Modal Styles */
#performance-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: white;
  padding: 20px;
  border: none;
  border-radius: 0;
  box-shadow: none;
  z-index: 1002;
  max-width: 100%;
  overflow-y: auto;
}
#performance-modal.show {
  display: block;
}
#performance-modal .notification-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid #4CAF50;
}
#performance-modal .notification-modal-header h3 {
  margin: 0;
  color: #4CAF50;
  text-align: center;
  font-size: 24px;
  flex-grow: 1;
}
#performance-modal .back-button {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #4CAF50;
  padding: 5px;
}
.time-period-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}
.time-period-button {
  padding: 10px 15px;
  background-color: #f1f1f1;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
}
.time-period-button.active {
  background-color: #4CAF50;
  color: white;
}
.performance-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin-top: 20px;
}
.performance-stat-card {
  background-color: #f5f5f5;
  border-radius: 8px;
  padding: 15px;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.performance-stat-card h4 {
  margin: 0 0 10px 0;
  color: #4CAF50;
}
.performance-stat-card p {
  margin: 0;
  font-size: 24px;
  font-weight: bold;
}
/* Added space at the bottom of performance modal */
.performance-footer {
  height: 40px; /* Added space at the bottom */
  margin-top: 20px;
}
body.dark-mode #performance-modal {
  background-color: #121212;
  border-color: #333;
  color: #ffffff;
}
body.dark-mode .time-period-button {
  background-color: #333;
  color: #ffffff;
}
body.dark-mode .time-period-button.active {
  background-color: #4CAF50;
  color: #ffffff;
}
body.dark-mode .performance-stat-card {
  background-color: #333;
}

/* Specific style for performance button only */
.dropdown-menu button[onclick="showPerformance()"] {
  font-size: 12px; /* Reduced font size */
}

/* Time column styles */
.payment-time {
  font-size: 11px;
  color: #666;
  white-space: nowrap;
}
body.dark-mode .payment-time {
  color: #aaa;
} 