/* Core light theme similar to DealCheck */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Source Sans Pro', Arial, sans-serif;
  background-color: #f5f7fb;
  color: #333;
}

.wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Navbar */

.top-navbar-wrapper {
  background-color: #ffffff;
  border-bottom: 1px solid #e3e7f0;
}

.navbar {
  margin: 0;
  padding: 0 20px;
}

.inner-navbar-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-header {
  display: flex;
  align-items: center;
}

.header-logo-img {
  height: 32px;
}

.nav-wrapper {
  flex: 1;
  display: flex;
  justify-content: space-between;
  margin-left: 40px;
}

.nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
}

.nav > li {
  margin-right: 20px;
}

.nav > li > a {
  text-decoration: none;
  color: #4a4f63;
  font-weight: 400;
  padding: 15px 0;
}

.nav > li.active > a {
  color: #1b76ff;
  border-bottom: 2px solid #1b76ff;
}

.navbar-right {
  justify-content: flex-end;
}

.disabled-link {
  opacity: 0.4;
  pointer-events: none;
}

/* Layout */

.main-content {
  flex: 1;
}

.content-wrapper {
  display: flex;
  padding: 20px;
}

.sidebar-float {
  width: 280px;
  margin-right: 20px;
}

.sidebar-content {
  background-color: #ffffff;
  border-radius: 4px;
  border: 1px solid #e3e7f0;
  padding: 15px;
  position: sticky;
  top: 80px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}

.content-with-sidebar {
  flex: 1;
}

.content-section {
  display: none;
}

.content-section.active {
  display: block;
}

.content-heading {
  font-size: 22px;
  font-weight: 600;
  margin: 0 0 10px;
}

.content-sub-heading {
  font-size: 18px;
  font-weight: 600;
  margin-top: 25px;
}

/* Side nav */

.sidebar .nav {
  flex-direction: column;
}

.sidebar .nav > li {
  margin: 0;
}

.sidebar .nav > li > a {
  display: block;
  padding: 8px 0;
  border-bottom: 1px solid #f1f3f9;
  color: #4a4f63;
}

.sidebar .nav > li > a:hover {
  color: #1b76ff;
}

.sidebar .nav-heading {
  margin-top: 15px;
  font-size: 11px;
  text-transform: uppercase;
  color: #9aa0b5;
  letter-spacing: 1px;
  border-top: 1px solid #f1f3f9;
  padding-top: 8px;
}

.sidebar-picture {
  margin-bottom: 15px;
}

.picture-thumb {
  width: 100%;
  border-radius: 3px;
}

/* Buttons, badges */

.btn {
  border-radius: 3px;
  border: 1px solid transparent;
  padding: 6px 12px;
  font-size: 14px;
  cursor: pointer;
  background: #f0f3ff;
}

.btn-primary {
  background-color: #1b76ff;
  border-color: #1b76ff;
  color: #ffffff;
}

.btn-primary.btn-outline {
  background: transparent;
  color: #1b76ff;
}

.btn-sm {
  padding: 4px 10px;
  font-size: 13px;
}

.btn-clear {
  background: transparent;
  border: none;
  color: #1b76ff;
}

.custom-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 3px;
  font-size: 11px;
  color: #ffffff;
}

.custom-badge-primary {
  background-color: #1b76ff;
}

.custom-badge-success {
  background-color: #46c7a8;
}

/* Forms */

label {
  display: block;
  font-size: 13px;
  margin-bottom: 3px;
  color: #6f7485;
}

input[type="text"],
input[type="number"] {
  width: 100%;
  padding: 6px 8px;
  border-radius: 3px;
  border: 1px solid #cfd4e4;
  font-size: 14px;
}

.search-panel {
  background-color: #ffffff;
  border-radius: 4px;
  border: 1px solid #e3e7f0;
  padding: 20px;
  margin-bottom: 20px;
}

.search-row {
  display: flex;
  gap: 10px;
  margin: 10px 0;
}

.search-col {
  flex: 1;
}

/* Suggestions list */

.suggestions-list {
  position: relative;
}

.suggestions-list ul {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid #cfd4e4;
  border-top: none;
  background-color: #ffffff;
  position: absolute;
  width: 100%;
  z-index: 20;
}

.suggestions-list li {
  padding: 6px 8px;
  cursor: pointer;
}

.suggestions-list li:hover {
  background-color: #f5f7fb;
}

/* Panels */

.panel {
  border-radius: 4px;
  border: 1px solid #e3e7f0;
  background-color: #ffffff;
  margin-bottom: 15px;
}

.panel-body {
  padding: 15px 20px;
}

.summary-item-block {
  font-size: 14px;
}

.summary-line-item {
  padding: 5px 0;
  border-bottom: 1px solid #f1f3f9;
}

.summary-line-item-total {
  font-weight: 600;
}

/* Photos grid */

.photos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
}

.photos-grid img {
  width: 100%;
  border-radius: 4px;
}

/* Map */

#map-body {
  height: 360px;
}

#map-iframe {
  border: none;
  width: 100%;
  height: 100%;
}

/* Helper classes */

.help-block {
  color: #777b8f;
  font-size: 13px;
}

.small {
  font-size: 12px;
}

.blue {
  color: #1b76ff;
}

.red {
  color: #e14c4c;
}

.green {
  color: #46c7a8;
}

.bold {
  font-weight: 600;
}

/* Footer */

.footer-wrapper {
  padding: 15px 0;
  border-top: 1px solid #e3e7f0;
  background-color: #ffffff;
}

.inner-footer-wrapper {
  max-width: 1100px;
  margin: 0 auto;
}

/* Responsive */

@media (max-width: 960px) {
  .content-wrapper {
    flex-direction: column;
  }
  .sidebar-float {
    width: 100%;
    margin-right: 0;
    margin-bottom: 15px;
  }
  .sidebar-content {
    position: static;
    max-height: none;
  }
}
