html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
  font-size: 16px;
}
#login {
  margin-top: 200px;
}
.loginCover {
  background: url('../images/loginCoverMed.jpg') no-repeat center center fixed;
  -webkit-background-size: cover;
  background-size: cover;
}
.clickable-row {
  cursor: pointer;
}
.page-top {
  margin-top: 60px;
}
.small-icon {
  font-size: 16px;
}
.medium-icon {
  font-size: 16px;
}
.large-icon {
  font-size: 20px;
}
.xlarge-icon {
  font-size: 25px;
}

/* adding colors to bootstrap badge class */
.badge {
  font-size: 16px;
  white-space: nowrap;
  font-weight: normal;
  color: #ffffff;
  margin: 1px;
}
.badge:hover {
  color: #ffffff;
  text-decoration: none;
  cursor: pointer;
}
.badge-error {
  background-color: #b94a48;
}
.badge-error:hover {
  background-color: #953b39;
}
.badge-warning {
  background-color: #f89406;
}
.badge-warning:hover {
  background-color: #c67605;
}
.badge-success {
  background-color: #468847;
}
.badge-success:hover {
  background-color: #356635;
}
.badge-info {
  background-color: #3a87ad;
}
.badge-info:hover {
  background-color: #2d6987;
}
.badge-inverse {
  background-color: #333333;
}
.badge-inverse:hover {
  background-color: #1a1a1a;
}
.badge.badge-primary {
  background-color: #286090;
}
a.home-bar-nav,
a.home-bar-nav:hover,
a.home-bar-nav:visted {
  color: #ffffff;
}
#map {
  height: 75vh;
}
.project-list-customer-name {
  font-weight: bold;
}
/*shows the autocomplete on address lookup*/
.pac-container {
  z-index: 10000 !important;
}
.appointment-description {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* Bootstrap Toggle Styles */
.switch {
  position: relative;
  display: inline-block;
  width: 31px;
  height: 19px;
  margin-left: 10px;
}

.switch input {
  display: none;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: 0.4s;
  transition: 0.4s;
}

.slider:before {
  position: absolute;
  content: '';
  height: 12px;
  width: 12px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  -webkit-transition: 0.4s;
  transition: 0.4s;
}

input:checked + .slider {
  background-color: #15cb4d;
}

input:focus + .slider {
  box-shadow: 0 0 1px #2196f3;
}

input:checked + .slider:before {
  -webkit-transform: translateX(12px);
  -ms-transform: translateX(12px);
  transform: translateX(12px);
}

/* Rounded sliders */
.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

/* Loader */
div#loader {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  text-align: center;
  background: #cccccc48;
  z-index: 999999;
}
div#loader img {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  margin: auto;
}

/*Vendors*/
.switch {
  position: relative;
  display: inline-block;
  margin: 0px 0px 0px 0px;
}

.switch.orders {
  position: relative;
  display: inline-block;
  margin: 0px 0px -5px 0px;
}

.switch input {
  display: none;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #676767;
  -webkit-transition: 0.4s;
  transition: 0.4s;
}

.slider:before {
  position: absolute;
  content: '';
  height: 12px;
  width: 12px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  -webkit-transition: 0.4s;
  transition: 0.4s;
}

input:checked + .slider {
  background-color: #15cb4d;
}

input:focus + .slider {
  box-shadow: 0 0 1px #2196f3;
}

input:checked + .slider:before {
  -webkit-transform: translateX(12px);
  -ms-transform: translateX(12px);
  transform: translateX(12px);
}

/* Rounded sliders */
.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

h4.customer-title {
  margin-bottom: 0px;
}

iframe {
  border: none;
}

.glyphicon-check {
  color: green;
}

.glyphicon-unchecked {
  color: rgb(135, 135, 135);
}

ul#sortable {
  list-style-type: none;
  padding-left: 0;
}

pre {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 16px;
  background: none;
  border: none;
  white-space: pre-wrap;
  word-break: keep-all;
  overflow-x: auto;
}

input[type='color'],
input[type='date'],
input[type='datetime'],
input[type='datetime-local'],
input[type='email'],
input[type='month'],
input[type='number'],
input[type='password'],
input[type='search'],
input[type='tel'],
input[type='text'],
input[type='time'],
input[type='url'],
input[type='week'],
select:focus,
textarea {
  font-size: 16px;
}

.form-control {
  font-size: 16px;
}

.btn-group-xs > .btn,
.btn-xs {
  font-size: 16px;
}

.changelogList {
  margin-bottom: 0;
}

.child-row-display {
  font-size: 11px;
}

mark {
  background: orange;
  color: black;
}

xsmall {
  font-size: 12px;
}

.signature {
  border: 0;
  border-bottom: 1px solid #000;
  width: 80%;
}

.titlecase {
  text-transform: capitalize;
}

title,
.capitalize {
  text-transform: capitalize;
}

.map-btn {
  border-radius: 5px 5px 0px 0px;
}
#print-type {
  width: 100%;
  margin-bottom: 10px;
}
/* Data Tables */
#projects-list tbody tr,
#propertiesTable tbody tr,
#purchaseOrdersTable tbody tr,
#tableVendor tbody tr {
  cursor: pointer;
}
.bs-callout {
  padding: 10px;
  margin: 5px 0;
  border: 1px solid #eee;
  border-left-width: 5px;
  border-radius: 3px;
}
.bs-callout h4 {
  margin-top: 0;
  margin-bottom: 5px;
}
.bs-callout p:last-child {
  margin-bottom: 0;
}
.bs-callout code {
  border-radius: 3px;
}
.bs-callout + .bs-callout {
  margin-top: -5px;
}
.bs-callout-default {
  border-left-color: #777;
}
.bs-callout-default h4 {
  color: #777;
}
.bs-callout-primary {
  border-left-color: #428bca;
}
.bs-callout-primary h4 {
  color: #428bca;
}
.bs-callout-success {
  border-left-color: #5cb85c;
}
.bs-callout-success h4 {
  color: #5cb85c;
}
.bs-callout-danger {
  border-left-color: #d9534f;
}
.bs-callout-danger h4 {
  color: #d9534f;
}
.bs-callout-warning {
  border-left-color: #f0ad4e;
}
.bs-callout-warning h4 {
  color: #f0ad4e;
}
.bs-callout-info {
  border-left-color: #5bc0de;
}
.bs-callout-info h4 {
  color: #5bc0de;
}
.required {
  color: red;
  font-weight: bold;
}

.grid-item {
  float: center;
  width: 200px;
  height: 245px;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid #ccc;
  padding: 5px;
}

.grid-item img {
  width: 188px;
  height: 195px;
  object-fit: cover;
  border-radius: 8px;
  background-position: 50% center;
}

.grid-item-creator {
  color: #666;
}

.grid-item-captured {
  color: #666;
}

.grid-item-tag {
  color: #666;
  margin-top: -5px;
}
/* Modern Card Design */
:root {
  --primary-blue: #1a73e8;
  --success-green: #34a853;
  --warning-orange: #fbbc04;
  --danger-red: #ea4335;
  --neutral-gray: #80868b;
  --light-gray: #f8f9fa;
  --border-radius: 16px;
  --card-shadow: 0 2px 4px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.08);
  --card-spacing: 24px;
}

/* Container Spacing */
#financialCardsContainer {
  margin-top: var(--card-spacing);
  padding: 0 var(--card-spacing);
}

/* Grid Spacing */
.row.g-4 {
  --bs-gutter-x: 24px;
  --bs-gutter-y: 24px;
  margin-right: calc(var(--bs-gutter-x) * -0.5);
  margin-left: calc(var(--bs-gutter-x) * -0.5);
}

.row.g-4 > * {
  padding-right: calc(var(--bs-gutter-x) * 0.5);
  padding-left: calc(var(--bs-gutter-x) * 0.5);
  margin-bottom: var(--bs-gutter-y);
}

/* Margin utilities */
.mb-4 {
  margin-bottom: 1.5rem !important;
}

/* Card adjustments */
.card {
  background: white;
  border: none;
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  margin-bottom: 0; /* Remove default margin since we're using grid gutters */
}

/* Status-specific styling */
.card.pre-sales {
  border-left: 4px solid var(--primary-blue);
}

.card.post-sales {
  border-left: 4px solid var(--warning-orange);
}

.card.completed {
  border-left: 4px solid var(--success-green);
}

.card.cancelled {
  border-left: 4px solid var(--danger-red);
}

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

.card-body {
  padding: 24px;
}

.card-title {
  color: #202124;
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-title a {
  color: var(--primary-blue);
  text-decoration: none;
  font-weight: 600;
}

/* Customer Info Section */
.customer-info {
  padding: 16px;
  background: var(--light-gray);
  border-radius: 12px;
  margin-bottom: 20px;
}

.customer-info p {
  margin-bottom: 8px;
  color: #5f6368;
  display: flex;
  justify-content: space-between;
}

.customer-info strong {
  color: #202124;
}

/* Financial Info Section */
.financial-info {
  background: white;
  border: 1px solid #e8eaed;
  border-radius: 12px;
  padding: 16px;
}

.financial-info p {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 0.9375rem;
}

.financial-info p:last-child {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 2px solid #e8eaed;
  font-weight: 600;
}

/* Amount Display */
.amount,
.payments,
.due {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 500;
}

.due.text-danger {
  color: var(--danger-red);
  font-weight: 600;
}

/* Status badge base styling */
.status-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-left: auto;
}

/* Card and badge colors - Based on days outstanding */
.card.status-current {
  border-left: 4px solid #34a853; /* Green for <= 30 days */
}
.card.status-current .status-badge {
  background: rgba(52, 168, 83, 0.1);
  color: #34a853;
}

.card.status-warning {
  border-left: 4px solid #fbbc04; /* Yellow for 31-60 days */
}
.card.status-warning .status-badge {
  background: rgba(251, 188, 4, 0.1);
  color: #fbbc04;
}

.card.status-overdue {
  border-left: 4px solid #ea4335; /* Red for > 60 days */
}
.card.status-overdue .status-badge {
  background: rgba(234, 67, 53, 0.1);
  color: #ea4335;
}

/* Remove all the status-specific colors since we're using time-based colors */

/* Card header row styling */
.card-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  width: 100%;
}

/* Project link styling */
.project-link {
  font-size: 1.25rem;
  font-weight: 700; /* Make project ID bolder */
  color: var(--primary-blue);
  text-decoration: none;
}

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

/* Date Information */
.date-info {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #e8eaed;
  color: var(--neutral-gray);
  font-size: 0.875rem;
  display: flex;
  justify-content: space-between;
}

/* Responsive Design */
@media (max-width: 768px) {
  .card {
    margin-bottom: 16px;
  }

  .card-body {
    padding: 16px;
  }

  .panel-body {
    font-size: 1.5rem;
  }

  :root {
    --card-spacing: 16px;
  }

  #financialCardsContainer {
    margin-top: var(--card-spacing);
    padding: 0 calc(var(--card-spacing) / 2);
  }
}

/* Loading Animation */
@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

.card.loading {
  position: relative;
}

.card.loading::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0));
  animation: shimmer 2s infinite;
}

/* Base styles (will apply to all screen sizes) */
.responsive-container {
  width: 100%;
  margin: 0 auto;
  padding: 15px;
}

/* Desktop styles (screens larger than 768px) */
@media screen and (min-width: 768px) {
  .desktop-only {
    display: block;
  }

  .mobile-only {
    display: none;
  }

  .responsive-container {
    max-width: 1200px;
  }
}

/* Mobile styles (screens smaller than 768px) */
@media screen and (max-width: 767px) {
  .desktop-only {
    display: none;
  }

  .mobile-only {
    display: block;
  }

  .responsive-container {
    padding: 10px;
  }
}

/* Base styles for date grid */
.date-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 20px;
}

/* Styles for all screen sizes */
.card .date-info-grid .date-left,
.card .date-info-grid .date-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.card .date-info-grid .date-left p,
.card .date-info-grid .date-right p {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 12px;
  text-align: center;
}

.card .date-info-grid .date-left p strong,
.card .date-info-grid .date-right p strong {
  margin-bottom: 4px;
  width: auto;
}

.card .date-info-grid .date-left span,
.card .date-info-grid .date-right span {
  text-align: center;
}

/* Remove media queries since we want the same layout for all screens */

/* Panel header colors based on time periods */
#financial-30-days .panel-heading {
  background-color: #34a853; /* Green */
  color: white;
  border-bottom: none;
}

#financial-60-days .panel-heading {
  background-color: #fbbc04; /* Yellow */
  color: white;
  border-bottom: none;
}

#financial-60plus-days .panel-heading {
  background-color: #ea4335; /* Red */
  color: white;
  border-bottom: none;
}

#financial-due .panel-heading {
  background-color: #1a73e8; /* Blue */
  color: white;
  border-bottom: none;
}

/* Reset text color for amounts */
.panel-body {
  color: #000000;
}

/* Remove text-danger class styling for amounts */
.panel-body .text-danger {
  color: #000000 !important;
}

/* Keep your existing status and card styling */

/* Add these styles */
.phone-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.phone-container {
  display: flex;
  align-items: center;
  gap: 4px;
}

.sms-phone {
  font-size: 12px;
  background: none;
  background-color: #73b9f2;
  border: 1px solid #73b9f2;
  border-radius: 5px;
  padding: 0px 5px 0px 5px;
  cursor: pointer;
  color: #fff;
  display: flex;
  align-items: center;
}

.sms-phone:hover {
  font-size: 12px;
  color: #fff;
  background-color: #0477d6;
  border: 1px solid #0477d6;
  border-radius: 5px;
}

.customer-phone {
  text-decoration: none;
}

/* Add container padding */
#app {
  padding: 0 20px;
}

/* Ensure financial cards section respects container width */
#financial-cards.row {
  margin: 20px 0;
  width: 100%;
}

/* Add these styles */
.search-container {
  margin-top: 20px;
}

.search-container .form-control {
  margin-bottom: 10px;
}

@media (max-width: 768px) {
  .search-container .col-sm-6 {
    margin-bottom: 15px;
  }
}

/* Update the card layout classes */
@media (min-width: 1200px) {
  /* Large desktop */
  #financialCardsContainer .col-12 {
    flex: 0 0 20%; /* 5 cards per row (100% / 5) */
    max-width: 20%;
  }
}

/* Maintain existing responsive breakpoints */
@media (max-width: 1199px) {
  /* Regular desktop and below */
  #financialCardsContainer .col-lg-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
  }
}

@media (max-width: 991px) {
  /* Tablet */
  #financialCardsContainer .col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

@media (max-width: 767px) {
  /* Mobile */
  #financialCardsContainer .col-12 {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

/* Ensure cards maintain proper spacing */
#financialCardsContainer .card {
  margin-bottom: 1rem;
}

/* Card sizing and layout */
#financialCardsContainer .card {
  margin-bottom: 1rem;
  margin-left: auto;
  margin-right: auto;
}

#financialCardsContainer .card-body {
  padding: 15px;
}

/* Responsive grid that maximizes number of cards while respecting max-width */
@media (min-width: 1900px) {
  /* Extra large screens */
  #financialCardsContainer .col-12 {
    flex: 0 0 auto;
    width: calc(100% / 5); /* 5 cards */
    max-width: calc(100% / 5);
  }
}

@media (min-width: 1540px) and (max-width: 1899px) {
  #financialCardsContainer .col-12 {
    flex: 0 0 auto;
    width: calc(100% / 4); /* 4 cards */
    max-width: calc(100% / 4);
  }
}

@media (min-width: 1180px) and (max-width: 1539px) {
  #financialCardsContainer .col-12 {
    flex: 0 0 auto;
    width: calc(100% / 3); /* 3 cards */
    max-width: calc(100% / 3);
  }
}

@media (min-width: 768px) and (max-width: 1179px) {
  #financialCardsContainer .col-12 {
    flex: 0 0 auto;
    width: 50%; /* 2 cards */
    max-width: 50%;
  }
}

@media (max-width: 767px) {
  #financialCardsContainer .col-12 {
    flex: 0 0 auto;
    width: 100%; /* 1 card */
    max-width: 100%;
  }
}

/* Ensure container has proper spacing */
#financialCardsContainer {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -10px; /* Negative margin to offset card spacing */
}

#financialCardsContainer > div {
  padding: 0 10px; /* Add spacing between cards */
}
.margin-right-5 {
  margin-right: 5px;
}

img#logo {
  height: 125px;
}
