#header {
  width: 100%;
  background: #1D3329;
  box-shadow: 0 10px 24px var(--kl-shadow);
}

#header-container {
  width: 95vw;
  min-height: 60px;
  margin: 0 auto;
  color: var(--kl-accent-contrast);
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  grid-template-areas: "brand business servicecall login";
  align-items: center;
  column-gap: 1.5rem;
  text-align: center;
}

#header-container.has-header-nav {
  grid-template-areas:
    "brand business servicecall login"
    "nav nav nav nav";
  row-gap: 0.15rem;
}

#header-container h1 {
  grid-area: brand;
  margin: 0;
  font-size: 1.6rem;
  font-family: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  font-weight: 600;
  letter-spacing: 0.03em;
  justify-self: start;
}

#header-business-name {
  grid-area: business;
  justify-self: center;
  align-self: center;
  max-width: min(52vw, 720px);
  color: #F2F5F3;
  font-family: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#header-navigation {
  grid-area: nav;
  justify-self: center;
  background-color: #1D3329;
  margin-top: 0.15rem;
}

#mobile-nav-toggle {
  display: none;
  padding: 0.25rem;
  border: 0;
  background: transparent;
  cursor: pointer;
}

#mobile-nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px 0;
  background-color: var(--kl-accent-contrast);
  border-radius: 999px;
}

#header-nav {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  gap: 0;
  background-color: #1D3329;
}

#header-nav li:not(:last-child)::after {
  content: " | ";
  color: var(--kl-accent-contrast);
  margin: 0 0.5rem;
}

#header-nav a {
  color: var(--kl-accent-contrast);
  text-decoration: none;
  background-color: transparent;
  font-family: "Source Sans 3", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
}

#header-nav a:hover {
  color: #cfe1d6;
}

#header-user-controls {
  grid-area: login;
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  margin-left: -0.65rem;
}

#login-button {
  grid-area: login;
  justify-self: end;
  color: var(--kl-accent-contrast);
  text-decoration: none;
  font-weight: 600;
}

#login-button:hover {
  color: #cfe1d6;
}

#app-nav-toggle {
  width: 38px;
  height: 34px;
  padding: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 1px solid rgba(242, 245, 243, 0.35);
  border-radius: 8px;
  background: #274439;
  cursor: pointer;
}

#app-nav-toggle span {
  display: block;
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background-color: #F2F5F3;
}

#app-nav-toggle:hover {
  background: #2f5245;
}

.home-view-toggle-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.app-shell {
  width: 100%;
  min-height: calc(100vh - 60px);
  margin-left: 0;
  display: grid;
  grid-template-columns: minmax(200px, 240px) minmax(0, 1fr);
}

.app-sidebar {
  background-color: #14241D;
  color: #F2F5F3;
  padding: 1.25rem 1rem;
  border-right: 1px solid #2d4037;
}

.app-sidebar-nav {
  display: grid;
  align-content: start;
  gap: 0.85rem;
}

.app-sidebar-brand {
  display: inline-block;
  color: #F2F5F3;
  text-decoration: none;
  font-family: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  margin-bottom: 0.4rem;
}

.app-sidebar-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}

.app-sidebar-links a {
  display: block;
  text-decoration: none;
  color: #C8D2CD;
  font-weight: 600;
  border-radius: 8px;
  padding: 0.5rem 0.65rem;
}

.app-sidebar-links a:hover,
.app-sidebar-links a.is-active {
  color: #F2F5F3;
  background: #22342c;
}

.app-content {
  min-width: 0;
  padding: 0.5rem 1rem 1.25rem;
}

.app-content .app-content-main-container {
  width: 100%;
  max-width: 100%;
  margin: 0;
  box-sizing: border-box;
}

#main-container.app-content-main-container {
  width: 100%;
  max-width: 100%;
  margin: 0;
  box-sizing: border-box;
}

.home-view-toggle-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 1px solid var(--kl-border-strong);
  border-radius: 10px;
  background: #253E33;
  color: #B2C0B9;
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 700;
}

.home-view-toggle-button:hover {
  border-color: #00A86B;
}

.home-view-toggle-button.is-active {
  background: #00A86B;
  color: #F2F5F3;
  border-color: #00A86B;
}

#employee-greeting-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--kl-accent-contrast);
  text-decoration: none;
  font-family: "Source Sans 3", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  justify-self: end;
  white-space: nowrap;
}

#employee-greeting-link:hover {
  text-decoration: underline;
}

.header-employee-avatar {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid #3a6553;
  object-fit: cover;
  background: #223a30;
}

.notification-bell {
  position: relative;
  display: inline-flex;
}

.notification-bell-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 34px;
  padding: 0;
  border: 1px solid rgba(242, 245, 243, 0.35);
  border-radius: 8px;
  background: #274439;
  color: #F2F5F3;
  cursor: pointer;
}

.notification-bell-button:hover {
  background: #2f5245;
}

.notification-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #e5484d;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1;
  box-sizing: border-box;
}

.notification-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 320px;
  max-width: 88vw;
  background: #1D3329;
  border: 1px solid #00A86B;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  z-index: 1000;
  overflow: hidden;
}

.notification-dropdown-header {
  padding: 0.6rem 0.75rem;
  background: #00A86B;
  color: #F2F5F3;
  font-weight: 700;
}

.notification-dropdown-list {
  max-height: 360px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.notification-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid #2f5a4a;
  text-decoration: none;
  color: #F2F5F3;
}

.notification-item:last-child {
  border-bottom: 0;
}

a.notification-item:hover {
  background: #244236;
}

.notification-item-dot {
  width: 8px;
  height: 8px;
  margin-top: 0.35rem;
  border-radius: 999px;
  background: transparent;
  flex: 0 0 auto;
}

.notification-item.is-unread .notification-item-dot {
  background: #00A86B;
}

.notification-item-body {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.notification-item-message {
  font-size: 0.88rem;
  line-height: 1.3;
}

.notification-item.is-unread .notification-item-message {
  font-weight: 700;
}

.notification-item-time {
  font-size: 0.75rem;
  color: #B2C0B9;
}

.notification-empty {
  margin: 0;
  padding: 1rem 0.75rem;
  text-align: center;
  color: #B2C0B9;
  font-size: 0.88rem;
}

#main-container {
  width: 80vw;
  height: auto;
  margin: 0 auto;
}

.home-scheduling-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  align-items: start;
}


#home-latest-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem;
  margin-top: 1rem;
  margin-bottom: 1rem;
  border-top: 0;
}

#home-activity-row {
  border: 1px solid #00A86B;
  background: #1D3329;
  color: #F2F5F3;
  padding: 0.7rem;
}

.home-activity-section h2 {
  text-align: center;
  background: #00A86B;
  color: #F2F5F3;
  margin: -0.7rem -0.7rem 0.75rem;
  padding: 0.6rem 0.75rem;
}

#home-activity-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 0;
  min-height: 420px;
}

#home-activity-feed-column {
  border-right: 1px solid #2f5a4a;
  padding: 0.75rem;
  background: #1D3329;
  display: flex;
  flex-direction: column;
  min-height: 0;
  max-height: 420px;
  overflow: hidden;
}

#home-activity-feed-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
}

.home-activity-card {
  border: 1px solid #2f5a4a;
  border-left: 3px solid #00A86B;
  border-radius: 0;
  background: #244236;
  padding: 0.6rem 0.65rem;
}

.home-activity-text {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.35;
  color: #F2F5F3;
}

.home-activity-time {
  margin: 0.2rem 0 0;
  font-size: 0.78rem;
  color: #B2C0B9;
}

.home-activity-actions {
  margin-top: 0.35rem;
}

.home-activity-directions {
  color: #B2C0B9;
  font-weight: 700;
  text-decoration: none;
  font-size: 0.82rem;
}

.home-activity-directions:hover {
  text-decoration: underline;
}

#home-activity-empty {
  display: none;
  order: -1;
  margin: 0;
  padding: 0.8rem;
  text-align: center;
  border: 1px solid #2f5a4a;
  border-radius: 0;
  background-color: #244236;
  color: #B2C0B9;
}

#home-activity-map-column {
  position: relative;
  min-width: 0;
  padding: 0.75rem;
  background: #1D3329;
}

#home-activity-map {
  width: 100%;
  height: 100%;
  min-height: 390px;
  border: 1px solid #2f5a4a;
  border-radius: 0;
  overflow: hidden;
  background: #244236;
}

#home-activity-map.is-map-unavailable {
  display: none;
}

#home-activity-map-empty {
  display: none;
  margin: 0;
  padding: 0.9rem;
  text-align: center;
  border: 1px solid #2f5a4a;
  border-radius: 0;
  background: #244236;
  color: #B2C0B9;
}

.dispatch-top-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1rem;
}

.dispatch-panel {
  border: 1px solid var(--kl-border);
  border-radius: 10px;
  background: var(--kl-surface);
  padding: 0.75rem;
}

.dispatch-pending-panel {
  border: 1px solid #00A86B;
  background: #1D3329;
  border-radius: 0;
  color: #F2F5F3;
}

.dispatch-calendar-panel {
  border: 0;
  background: transparent;
  padding: 0;
}

.dispatch-pending-header {
  background: #00A86B;
  margin: -0.75rem -0.75rem 0.75rem;
  padding: 0.6rem 0.75rem;
}

.dispatch-pending-header h2 {
  color: #F2F5F3;
}

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

.dispatch-panel-header h2 {
  margin: 0;
  font-size: 1.2rem;
}

.dispatch-pending-count {
  min-width: 2rem;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  background: var(--kl-accent-soft);
  color: var(--kl-accent-strong);
  text-align: center;
  font-weight: 700;
}

.dispatch-pending-header .dispatch-pending-count {
  background: rgba(242, 245, 243, 0.18);
  color: #F2F5F3;
}

#dispatch-pending-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  max-height: 360px;
  overflow: auto;
}

.dispatch-pending-card {
  border: 1px solid #2f5a4a;
  border-left: 3px solid #00A86B;
  border-radius: 8px;
  background: #244236;
  padding: 0.55rem 0.6rem;
  text-align: left;
  cursor: pointer;
}

.dispatch-pending-card:hover {
  border-color: #00A86B;
  background: #2b4f42;
}

.dispatch-pending-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.dispatch-pending-service {
  margin: 0;
  color: #F2F5F3;
  font-size: 1.15rem;
  font-weight: 600;
}

.dispatch-pending-customer {
  margin: 0.2rem 0 0;
  color: #8C9A93;
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.dispatch-pending-meta {
  margin: 0.2rem 0 0;
  color: #EAB308;
  background: rgba(45, 42, 28, 0.15);
  border-radius: 9999px;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.22rem 0.7rem;
  white-space: nowrap;
}

.dispatch-pending-category,
.dispatch-pending-address {
  margin: 0.2rem 0 0;
  color: var(--kl-text-muted);
  font-size: 0.92rem;
}

.dispatch-pending-address {
  color: #B2C0B9;
  font-size: 0.9rem;
  font-weight: 400;
}

.dispatch-empty-state {
  color: var(--kl-text-muted);
  margin: 0.5rem 0;
}

.dispatch-pending-panel .dispatch-empty-state {
  color: #F2F5F3;
}

.dispatch-calendar {
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  border: 1px solid #00A86B;
  border-radius: 0;
  background: #1D3329;
  color: #F2F5F3;
  overflow: hidden;
}

#dispatch-calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #00A86B;
  color: #F2F5F3;
  padding: 0.45rem 0.6rem;
}

#dispatch-calendar-header h3 {
  margin: 0;
  font-size: 1rem;
}

#dispatch-calendar-header button {
  border: 0;
  background: transparent;
  color: #F2F5F3;
  font-size: 1.2rem;
  cursor: pointer;
}

#dispatch-calendar-header button:hover {
  opacity: 0.82;
}

#dispatch-calendar-weekdays,
#dispatch-calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}

#dispatch-calendar-weekdays div {
  text-align: center;
  font-weight: 700;
  padding: 0.35rem 0;
  border-bottom: 1px solid #00A86B;
  color: #F2F5F3;
  background: #244236;
}

.dispatch-calendar-day {
  min-height: 38px;
  border: 0;
  border-right: 1px solid #2f5a4a;
  border-bottom: 1px solid #2f5a4a;
  background: #1D3329;
  color: #F2F5F3;
  cursor: pointer;
}

.dispatch-calendar-day:nth-child(7n) {
  border-right: 0;
}

.dispatch-calendar-day:hover {
  background: #244236;
}

.dispatch-calendar-day.is-selected {
  background: #00A86B;
  color: #F2F5F3;
  font-weight: 700;
}

.dispatch-calendar-day.is-empty {
  background: #16271f;
  cursor: default;
}

.dispatch-schedule-row {
  margin-top: 1rem;
  margin-bottom: 1rem;
  border: 1px solid #00A86B;
  border-radius: 0;
  background: #1D3329;
  color: #F2F5F3;
  padding: 0.7rem;
}

.dispatch-schedule-header-row {
  margin-bottom: 0.55rem;
}

.dispatch-schedule-title-bar {
  background: #00A86B;
  margin: -0.7rem -0.7rem 0.75rem;
  padding: 0.6rem 0.75rem;
}

.dispatch-schedule-title-bar h2 {
  color: #F2F5F3;
}

.dispatch-mobile-tech-picker {
  display: none;
  align-items: center;
  gap: 0.4rem;
}

.dispatch-mobile-tech-picker select {
  border: 1px solid #2f5a4a;
  border-radius: 0;
  padding: 0.25rem 0.4rem;
}

.dispatch-schedule-grid {
  --dispatch-tech-name-width: 180px;
  --dispatch-time-min-width: 900px;
  overflow-x: auto;
  border: 1px solid #00A86B;
  border-radius: 0;
  background: #1D3329;
}

.dispatch-time-axis,
.dispatch-tech-row {
  min-width: calc(var(--dispatch-tech-name-width) + var(--dispatch-time-min-width));
  display: grid;
  grid-template-columns: var(--dispatch-tech-name-width) minmax(var(--dispatch-time-min-width), 1fr);
}

.dispatch-time-axis {
  border-bottom: 1px solid #2f5a4a;
  background: #244236;
}

.dispatch-tech-name-cell {
  padding: 0.45rem 0.5rem;
  font-size: 0.88rem;
  border-right: 1px solid #2f5a4a;
  color: #F2F5F3;
}

.dispatch-tech-name-cell--axis {
  font-weight: 700;
  color: #F2F5F3;
  background: #244236;
}

.dispatch-time-axis-track {
  position: relative;
  min-height: 42px;
  border-bottom: 0;
  overflow: hidden;
}

.dispatch-time-axis-hour-marker {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: #2f5a4a;
}

.dispatch-time-axis-hour-label {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.8rem;
  color: #B2C0B9;
  white-space: nowrap;
  padding: 0;
}

.dispatch-tech-name-cell {
  position: sticky;
  left: 0;
  background: #1D3329;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dispatch-tech-inactive {
  font-size: 0.74rem;
  color: #B2C0B9;
  border: 1px solid #2f5a4a;
  background: #244236;
  border-radius: 999px;
  padding: 0.05rem 0.35rem;
}

.dispatch-tech-track {
  position: relative;
  border-bottom: 1px solid #2f5a4a;
  cursor: pointer;
  background: #1D3329;
  overflow: hidden;
}

.dispatch-track-hover-slot {
  position: absolute;
  top: 0;
  bottom: 0;
  background: rgba(30, 122, 70, 0.12);
  border-left: 1px solid rgba(30, 122, 70, 0.28);
  border-right: 1px solid rgba(30, 122, 70, 0.28);
  pointer-events: none;
  z-index: 1;
}

.dispatch-tech-rows {
  position: relative;
  overflow: visible;
}

.dispatch-hour-marker {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: #2f5a4a;
}

.dispatch-half-hour-marker {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: #244236;
}

.dispatch-no-jobs-label {
  position: absolute;
  top: 50%;
  left: 0.5rem;
  transform: translateY(-50%);
  color: #B2C0B9;
  font-size: 0.85rem;
  z-index: 1;
}

.dispatch-job-block {
  position: absolute;
  border: 1px solid rgba(242, 245, 243, 0.28);
  border-radius: 6px;
  height: 28px;
  color: #fff;
  font-size: 0.8rem;
  padding: 0 0.35rem;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  text-align: left;
  cursor: pointer;
}

.dispatch-job-interactive {
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.dispatch-job-block.dispatch-job-interactive:hover,
.dispatch-pending-card.dispatch-job-interactive:hover {
  box-shadow: 0 0 0 1px rgba(0, 168, 107, 0.35);
}

.dispatch-status-default { background: #64748b; }
.dispatch-status-pending { background: #2D2A1C; }
.dispatch-status-scheduled { background: #1C263A; }
.dispatch-status-en-route { background: #2B213B; }
.dispatch-status-started { background: #162C32; }
.dispatch-status-completed { background: #132E25; }
.dispatch-status-paid { background: #193022; }

.dispatch-chip {
  border-radius: 999px;
  padding: 0.1rem 0.45rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
}

.dispatch-now-line {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #ef4444;
  z-index: 4;
}

.dispatch-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dispatch-modal[hidden] {
  display: none;
}

.dispatch-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 14, 10, 0.66);
  backdrop-filter: blur(2px);
}

.dispatch-modal-content {
  position: relative;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  border: 1px solid #2f5a4a;
  border-radius: 10px;
  background: linear-gradient(180deg, #223a30 0%, #1d3329 100%);
  box-shadow: 0 20px 48px rgba(5, 15, 11, 0.45);
  color: #F2F5F3;
  overflow-y: auto;
}

.dispatch-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.95rem 1rem;
  border-bottom: 1px solid #2f5a4a;
  background: #244236;
}

.dispatch-modal-header h3 {
  margin: 0;
  font-size: 1.5rem;
  color: #F2F5F3;
}

.dispatch-modal-close {
  border: 1px solid #2f5a4a;
  border-radius: 6px;
  background: #253E33;
  font-size: 1.5rem;
  cursor: pointer;
  color: #F2F5F3;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dispatch-modal-close:hover {
  border-color: #3a6553;
  background: #2d4b3f;
}

.dispatch-modal-body {
  padding: 0.95rem 1rem 1rem;
}

.dispatch-modal-customer {
  margin: 0 0 0.25rem;
  font-weight: 700;
  color: #F2F5F3;
}

.dispatch-modal-address,
.dispatch-modal-services {
  margin: 0.25rem 0;
  color: #a6b8b1;
}

.dispatch-modal-field {
  margin-bottom: 0.85rem;
  min-width: 0;
}

.dispatch-modal-field label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #F2F5F3;
}

.dispatch-modal-field input,
.dispatch-modal-field select {
  width: 100%;
  box-sizing: border-box;
  padding: 0.75rem;
  border: 1px solid #2f5a4a;
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  background: #253E33;
  color: #F2F5F3;
}

.dispatch-modal-field input::placeholder,
.dispatch-modal-field select::placeholder {
  color: #a6b8b1;
}

.dispatch-modal-field input:focus,
.dispatch-modal-field select:focus {
  border-color: #5fa3d3;
  outline: 2px solid rgba(95, 163, 211, 0.3);
  outline-offset: 1px;
}

.dispatch-modal-field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.dispatch-modal-actions {
  margin-top: 0.5rem;
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  align-items: center;
  border-top: 1px solid #2f5a4a;
  padding-top: 0.8rem;
}

.dispatch-modal-actions a {
  margin-right: auto;
  color: #D0DDD7;
  text-decoration: none;
  font-weight: 600;
}

.dispatch-modal-actions a:hover {
  color: #F2F5F3;
  text-decoration: underline;
}

.dispatch-modal-actions button {
  padding: 0.75rem 1.5rem;
  border: 1px solid #00A86B;
  border-radius: 8px;
  background: #00A86B;
  color: #0B120F;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

.dispatch-modal-actions button:hover {
  border-color: #009863;
  background: #009863;
  color: #0B120F;
}

#dispatch-quick-create-new {
  border-color: #2f5a4a;
  background: #253E33;
  color: #D0DDD7;
}

#dispatch-quick-create-new:hover {
  border-color: #3a6553;
  background: #2d4b3f;
  color: #F2F5F3;
}

#dispatch-quick-job-id {
  width: 100%;
}

.dispatch-empty-state {
  margin-top: 0.5rem;
  color: #a6b8b1;
}

.dispatch-modal-error {
  margin-top: 0.6rem;
  color: #ff9d9d;
}

@media (max-width: 900px) {
  .home-view-toggle-row {
    grid-template-columns: 1fr;
  }

  .dispatch-top-row {
    grid-template-columns: 1fr;
  }

  .dispatch-mobile-tech-picker {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    width: 100%;
  }

  .dispatch-mobile-tech-picker select {
    width: 100%;
    max-width: 320px;
  }

  .dispatch-schedule-header-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    text-align: left;
  }

  .dispatch-time-axis,
  .dispatch-tech-row {
    min-width: calc(130px + 700px);
    grid-template-columns: 130px minmax(700px, 1fr);
  }

  .dispatch-schedule-grid {
    --dispatch-tech-name-width: 130px;
    --dispatch-time-min-width: 700px;
  }
}

.home-latest-column {
  border: 1px solid #00A86B;
  background: #1D3329;
  color: #F2F5F3;
  padding: 0.7rem;
}

.home-latest-column h2 {
  text-align: center;
  background: #00A86B;
  color: #F2F5F3;
  margin: -0.7rem -0.7rem 0.75rem;
  padding: 0.6rem 0.75rem;
}

.home-latest-action {
  margin-top: 0.75rem;
  text-align: center;
}

.home-latest-action-link {
  display: inline-block;
  padding: 0.45rem 0.9rem;
  background-color: #244236;
  color: #F2F5F3;
  text-decoration: none;
  border: 1px solid #2f5a4a;
  border-radius: 4px;
  font-weight: 600;
}

.home-latest-action-link:hover {
  background-color: #2b4f42;
  border-color: #00A86B;
}

#home-calls-needed-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.home-call-row {
  display: flex;
  align-items: stretch;
  gap: 0.5rem;
}

.home-call-cell {
  display: block;
  flex: 1;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--kl-border);
  background-color: var(--kl-surface);
  color: inherit;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.home-call-mobile-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  padding: 0.5rem;
  border: 1px solid var(--kl-accent);
  border-radius: 4px;
  background-color: var(--kl-accent-soft);
  color: var(--kl-accent);
  text-decoration: none;
}

.home-call-mobile-button:hover {
  background-color: var(--kl-accent-soft-strong);
}

#home-current-property-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.home-hvac-system-row-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  gap: 0.55rem;
}

.home-hvac-system-card {
  display: block;
  border: 1px solid #2f5a4a;
  border-top: 3px solid #00A86B;
  background: #244236;
  color: #F2F5F3;
  text-decoration: none;
  border-radius: 8px;
  overflow: hidden;
  min-width: 0;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.home-hvac-system-card:hover {
  background-color: #2b4f42;
  border-color: #00A86B;
}

.home-hvac-system-card-header {
  padding: 0.6rem 0.75rem 0.4rem;
  background: linear-gradient(180deg, #2b4f42 0%, #244236 100%);
  border-bottom: 1px solid #2f5a4a;
}

.home-hvac-system-card-header h4 {
  margin: 0;
  font-size: 0.95rem;
  color: #F2F5F3;
  font-weight: 700;
}

.home-hvac-system-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 0.45rem 0.75rem;
  font-size: 0.88rem;
}

.home-hvac-system-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.home-hvac-system-label {
  color: #B2C0B9;
  font-weight: 600;
}

.home-hvac-system-row strong {
  color: #F2F5F3;
  font-weight: 700;
}

.home-hvac-diagnostics-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  width: 132px;
  min-height: 36px;
  padding: 0.35rem 0.6rem;
  font-size: 0.8rem;
}

.home-hvac-diagnostics-button svg {
  flex: 0 0 auto;
}

.home-current-property-empty {
  margin: 0;
  padding: 0.8rem;
  text-align: center;
  color: #B2C0B9;
  border: 1px solid #2f5a4a;
  border-radius: 0;
  background-color: #244236;
}

.home-job-action-button.home-current-property-add {
  width: 100%;
  padding: 0.45rem 0.9rem;
}

#home-hvac-systems-pages {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

#home-hvac-systems-pages span {
  color: #B2C0B9;
  font-weight: 600;
}

#home-hvac-systems-pages a {
  color: #F2F5F3;
  text-decoration: none;
  font-weight: 600;
  padding: 0.35rem 0.55rem;
  border-radius: 4px;
}

#home-hvac-systems-pages a.is-active {
  text-decoration: underline;
}

#home-hvac-systems-pages a:hover {
  color: #B2C0B9;
}


#home-outstanding-estimates-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

#home-notes-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

#home-customer-notes-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.home-note-card {
  border: 1px solid #2f5a4a;
  border-top: 3px solid #00A86B;
  background: linear-gradient(180deg, #223a30 0%, #1d3329 100%);
  border-radius: 8px;
  box-shadow: 0 8px 16px rgba(12, 30, 23, 0.18);
  padding: 0.65rem 0.75rem;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.home-note-card:hover {
  border-color: #3a6553;
  background: linear-gradient(180deg, #2b4a3d 0%, #223a30 100%);
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(12, 30, 23, 0.24);
}

.home-note-text {
  margin: 0;
  color: #F2F5F3;
  font-size: 0.92rem;
  line-height: 1.4;
}

.home-note-date {
  margin: 0.35rem 0 0;
  color: #B2C0B9;
  font-size: 0.8rem;
}

#home-notes-empty-server {
  margin: 0;
  padding: 0.8rem;
  text-align: center;
  color: #B2C0B9;
  border: 1px solid #2f5a4a;
  border-radius: 0;
  background-color: #244236;
}

#home-customer-notes-empty-server {
  margin: 0;
  padding: 0.8rem;
  text-align: center;
  color: #B2C0B9;
  border: 1px solid #2f5a4a;
  border-radius: 0;
  background-color: #244236;
}

#home-notes-pages {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

#home-customer-notes-pages {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

#home-notes-pages span {
  color: #B2C0B9;
  font-weight: 600;
}

#home-customer-notes-pages span {
  color: #B2C0B9;
  font-weight: 600;
}

#home-notes-pages a {
  color: #F2F5F3;
  text-decoration: none;
  font-weight: 600;
  padding: 0.35rem 0.55rem;
  border-radius: 4px;
}

#home-customer-notes-pages a {
  color: #F2F5F3;
  text-decoration: none;
  font-weight: 600;
  padding: 0.35rem 0.55rem;
  border-radius: 4px;
}

#home-notes-pages a.is-active {
  text-decoration: underline;
}

#home-customer-notes-pages a.is-active {
  text-decoration: underline;
}

#home-notes-pages a:hover {
  color: #B2C0B9;
}

#home-customer-notes-pages a:hover {
  color: #B2C0B9;
}

#home-price-book-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.home-price-book-card {
  border: 1px solid var(--kl-border);
  border-top: 3px solid #1F6B35;
  background: linear-gradient(180deg, var(--kl-surface) 0%, var(--kl-surface-soft) 100%);
  border-radius: 6px;
  padding: 0.65rem 0.75rem;
}

.home-price-book-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.home-price-book-card-link:hover,
.home-price-book-card-link:focus-visible {
  border-color: #1F6B35;
  box-shadow: 0 6px 16px var(--kl-shadow);
  transform: translateY(-1px);
}

.home-price-book-name {
  margin: 0;
  color: var(--kl-text);
  font-size: 0.92rem;
  line-height: 1.35;
}

.home-price-book-amount {
  margin: 0.35rem 0 0;
  color: var(--kl-text-muted);
  font-size: 0.86rem;
  font-weight: 700;
}

#home-price-book-empty-server {
  margin: 0;
  padding: 0.8rem;
  text-align: center;
  color: #B2C0B9;
  border: 1px solid #2f5a4a;
  border-radius: 0;
  background-color: #244236;
}

#home-price-book-pages {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

#home-price-book-pages span {
  color: #B2C0B9;
  font-weight: 600;
}

#home-price-book-pages a {
  color: #F2F5F3;
  text-decoration: none;
  font-weight: 600;
  padding: 0.35rem 0.55rem;
  border-radius: 4px;
}

#home-price-book-pages a.is-active {
  text-decoration: underline;
}

#home-price-book-pages a:hover {
  color: #B2C0B9;
}

.home-estimate-cell {
  display: block;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--kl-border);
  background-color: var(--kl-surface);
  color: inherit;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.home-call-cell:hover {
  background-color: var(--kl-surface-soft);
  border-color: var(--kl-border-strong);
}

.home-payment-cell:hover {
  background-color: var(--kl-surface-soft);
  border-color: var(--kl-border-strong);
}

.home-estimate-cell:hover {
  background-color: var(--kl-surface-soft);
  border-color: var(--kl-border-strong);
}

#home-jobs-empty {
  display: none;
  padding: 20px;
  text-align: center;
  color: #B2C0B9;
}

.home-jobs-column {
  border: 1px solid #00A86B;
  border-radius: 0;
  background: #1D3329;
  color: #F2F5F3;
  padding: 0.75rem;
}

.home-jobs-column h2 {
  text-align: left;
}

.home-jobs-panel-header {
  margin-bottom: 0.5rem;
}

.home-jobs-title-bar {
  background: #00A86B;
  margin: -0.75rem -0.75rem 0.75rem;
  padding: 0.6rem 0.75rem;
}

.home-jobs-title-bar h2 {
  color: #F2F5F3;
}

.home-jobs-title-bar .dispatch-pending-count {
  background: rgba(242, 245, 243, 0.18);
  color: #F2F5F3;
}

#home-jobs-asignee {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

#home-jobs-asignee > span {
  color: #B2C0B9;
  font-weight: 600;
  align-self: start;
}

#home-jobs-assignee-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.8rem;
}

#home-jobs-assignee-options label {
  color: #F2F5F3;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
}

#home-jobs-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

#home-jobs-pages,
#home-calls-pages,
#home-estimates-pages,
#home-payments-pages,
.list-pages {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

#home-jobs-pages span,
#home-calls-pages span,
#home-estimates-pages span,
#home-payments-pages span,
.list-pages span {
  color: #B2C0B9;
  font-weight: 600;
}

#home-jobs-pages a,
#home-calls-pages a,
#home-estimates-pages a,
#home-payments-pages a,
.list-pages a {
  color: #F2F5F3;
  text-decoration: none;
  font-weight: 600;
}

#home-jobs-pages a.is-active,
#home-calls-pages a.is-active,
#home-estimates-pages a.is-active,
#home-payments-pages a.is-active,
.list-pages a.is-active {
  text-decoration: underline;
}

#home-jobs-pages a:hover,
#home-calls-pages a:hover,
#home-estimates-pages a:hover,
#home-payments-pages a:hover,
.list-pages a:hover {
  color: #B2C0B9;
}

#home-jobs-pages a,
#home-jobs-pages a:hover,
#home-jobs-pages a.is-active {
  color: #F2F5F3;
}

.home-job {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  gap: 0.5rem;
  border: 1px solid #2f5a4a;
  background-color: #244236;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.home-job-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
  min-width: 0;
}

#home-jobs-list .home-job {
  border-top: 3px solid #00A86B;
}

#home-calls-needed-list .home-call-cell,
#home-outstanding-estimates-list .home-estimate-cell {
  border-top: 3px solid #D97706;
}

#home-jobs-list .home-job.is-completed {
  border-color: #2f5a4a;
  border-top-color: #132E25;
  background: #20372f;
  color: #8C9A93;
}

#home-jobs-list .home-job.is-active-job {
  border-color: #2f5a4a;
  border-top-color: #162C32;
  background: #274239;
  box-shadow: none;
}

#home-jobs-list .home-job.is-completed .home-job-card-content strong,
#home-jobs-list .home-job.is-completed .home-job-time-display,
#home-jobs-list .home-job.is-completed .home-job-tech-name,
#home-jobs-list .home-job.is-completed .home-job-last-note,
#home-jobs-list .home-job.is-completed .home-job-type {
  color: #8C9A93;
}

#home-jobs-list .home-job.is-completed .home-job-card-content {
  opacity: 1;
  filter: none;
}

.home-job:hover {
  background-color: #2b4f42;
  border-color: #00A86B;
}

#home-jobs-list .home-job.is-completed:hover {
  background: #264137;
  border-color: #2f5a4a;
}

.home-job-card-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.38rem;
  padding: 0.5rem 0.75rem;
  line-height: 1.45;
}

.home-job-title-line {
  width: 100%;
  display: flex;
  flex-direction: column-reverse;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0.15rem;
}

.home-job-title-line strong {
  color: #8C9A93;
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.home-job-type {
  color: #F2F5F3;
  font-size: 1.15rem;
  font-weight: 600;
}

.home-job-time-tech-line {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #B2C0B9;
  font-size: 0.9rem;
  font-weight: 400;
}

.home-job-dot {
  color: #8C9A93;
  font-weight: 700;
}

.home-job-tech-name {
  color: #B2C0B9;
  font-weight: 400;
}

.home-job-last-note {
  margin: 0;
  width: 100%;
  color: var(--kl-text-muted);
  font-size: 0.88rem;
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.home-job-card-content .jobs-status-chip {
  margin-top: 0.1rem;
  justify-self: start;
}

.home-job-actions {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.45rem 0.55rem 0.45rem 0;
}

.home-job-action-form {
  margin: 0;
}

.home-job-action-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  width: 112px;
  min-height: 36px;
  padding: 0.35rem 0.6rem;
  border: 1px solid #2f5a4a;
  border-radius: 8px;
  background: #253E33;
  color: #B2C0B9;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  box-sizing: border-box;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.home-job-action-button:hover {
  border-color: #00A86B;
  background: #2b4f42;
  color: #F2F5F3;
}

.home-job-action-button svg {
  flex: 0 0 auto;
}

.home-job-action-button--start {
  border-color: #00A86B;
  background: #00A86B;
  color: #F2F5F3;
}

.home-job-action-button--start:hover {
  border-color: #00A86B;
  background: #159b68;
  color: #F2F5F3;
}

.home-job-action-button--stop {
  border-color: #2D2A1C;
  background: #2D2A1C;
  color: #EAB308;
}

.home-job-action-button--stop:hover {
  border-color: #3b3522;
  background: #3b3522;
  color: #F2C94C;
}

.home-job-action-button--directions,
.home-job-action-button--call {
  border-color: #2f5a4a;
  background: #244236;
  color: #B2C0B9;
}

.home-job-action-button--directions:hover,
.home-job-action-button--call:hover {
  border-color: #00A86B;
  background: #2b4f42;
  color: #F2F5F3;
}

.home-job-action-button:disabled,
.home-job-action-button[aria-disabled="true"] {
  border-color: #2f5a4a;
  background: #1f332a;
  color: #8C9A93;
  cursor: not-allowed;
  box-shadow: none;
}

.home-job-action-button:focus-visible {
  outline: 2px solid var(--kl-focus);
  outline-offset: 2px;
}

.home-job-card-content strong {
  color: var(--kl-text);
}


.home-job-top-row {
  display: grid;
  grid-template-columns: 1fr;
}

.home-job-bottom-row {
  display: grid;
  grid-template-columns: 1fr;
}

.home-job-cell {
  padding: 0.5rem 0.75rem;
  border-right: 1px solid var(--kl-border);
}

.home-job-cell:last-child {
  border-right: none;
}

.home-job-top-row .home-job-cell {
  border-bottom: 1px solid var(--kl-border);
}

.home-schedule-column {
  padding: 0;
}

#manage-customers-header,
#manage-jobs-header {
  width: 100%;
  min-height: 220px;
  padding: 0 0.75rem 0.75rem;
  box-sizing: border-box;
}

#manage-customers-header {
  padding-left: 0;
}

#manage-customers-header h1,
#manage-jobs-header h1 {
  margin: 0 -0.75rem 0.75rem;
  padding: 0.5rem 0.75rem;
  text-align: center;
  background: linear-gradient(135deg, var(--kl-header) 0%, var(--kl-header-soft) 100%);
  color: var(--kl-accent-contrast);
  font-family: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

#jobs-controls-row {
  display: grid;
  grid-template-columns: minmax(150px, 0.55fr) 2.45fr;
  gap: 1rem;
  align-items: start;
}

.jobs-controls-left h2,
.jobs-controls-right-top h2 {
  margin: 0;
  font-size: 1.1rem;
  color: var(--kl-text);
}

.jobs-filter-list {
  margin-top: 0.75rem;
  display: grid;
  gap: 0.65rem;
}

.jobs-filter-group {
  border: 1px solid var(--kl-border);
  border-radius: 4px;
  background-color: var(--kl-surface);
  overflow: hidden;
}

.jobs-filter-group summary {
  list-style: none;
  cursor: pointer;
  padding: 0.55rem 0.7rem;
  background: linear-gradient(135deg, var(--kl-header) 0%, var(--kl-header-soft) 100%);
  color: var(--kl-accent-contrast);
  font-family: "Source Sans 3", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: 0.96rem;
  font-weight: 600;
}

.jobs-filter-group summary::-webkit-details-marker {
  display: none;
}

.jobs-filter-group summary::after {
  content: "+";
  float: right;
  font-weight: 700;
}

.jobs-filter-group[open] summary::after {
  content: "-";
}

.jobs-filter-content {
  display: grid;
  gap: 0.5rem;
  padding: 0.7rem;
}

.jobs-filter-content label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--kl-text);
  font-size: 0.95rem;
}

.jobs-filter-date-range label {
  font-weight: 600;
}

.jobs-filter-date-range input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--kl-border);
  border-radius: 4px;
  background-color: var(--kl-surface);
  color: var(--kl-text);
  font-size: 0.95rem;
}

.jobs-filter-date-range input:focus {
  outline: 2px solid var(--kl-focus);
  outline-offset: 1px;
  border-color: var(--kl-focus);
}

#jobs-clear-date-filters {
  margin-top: 0.4rem;
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--kl-border-strong);
  border-radius: 4px;
  background-color: var(--kl-surface-soft);
  color: var(--kl-text-muted);
  font-family: "Source Sans 3", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}

#jobs-clear-date-filters:hover {
  background-color: var(--kl-surface-softer);
  border-color: var(--kl-text-muted);
}

#jobs-clear-date-filters:focus {
  outline: 2px solid var(--kl-focus);
  outline-offset: 1px;
}

.jobs-controls-right {
  display: grid;
  grid-template-rows: auto auto;
  gap: 0.85rem;
}

.jobs-controls-right-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #D1D5DB;
}

.jobs-controls-right-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.6rem;
  margin-left: auto;
}

.jobs-controls-right-actions label {
  color: #B2C0B9;
  font-size: 0.95rem;
  font-weight: 600;
  white-space: nowrap;
}

.jobs-controls-right-actions select {
  min-width: 220px;
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--kl-border);
  border-radius: 4px;
  background-color: var(--kl-surface);
  color: var(--kl-text);
  font-size: 0.95rem;
  font-family: inherit;
  appearance: none;
  -webkit-appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--kl-text) 50%),
    linear-gradient(135deg, var(--kl-text) 50%, transparent 50%);
  background-position:
    calc(100% - 1rem) calc(50% + 1px),
    calc(100% - 0.7rem) calc(50% + 1px);
  background-size: 0.35rem 0.35rem, 0.35rem 0.35rem;
  background-repeat: no-repeat;
  padding-right: 2.25rem;
  cursor: pointer;
}

.jobs-controls-right-actions select:focus {
  outline: 2px solid var(--kl-focus);
  outline-offset: 1px;
  border-color: var(--kl-focus);
}

.jobs-controls-right-actions button,
.jobs-controls-right-actions a {
  padding: 0.52rem 0.85rem;
  border: 1px solid var(--kl-accent-strong);
  border-radius: 4px;
  background: linear-gradient(180deg, var(--kl-accent) 0%, var(--kl-accent-strong) 100%);
  color: var(--kl-accent-contrast);
  font-family: "Source Sans 3", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
}

.jobs-controls-right-actions button:hover,
.jobs-controls-right-actions a:hover {
  background-color: #27364F;
  border-color: #27364F;
}

.jobs-controls-right-bottom {
  min-height: 48px;
}

.catalog-search-form {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
}

.catalog-search-form-label {
  font-size: 1rem;
  font-weight: 600;
  color: #1B263B;
  white-space: nowrap;
}

.catalog-search-form input[type="search"] {
  width: 100%;
  max-width: 560px;
  padding: 0.55rem 0.75rem;
  border: 1px solid #C5C7CB;
  border-radius: 4px;
  font-size: 1rem;
  background-color: #FFFFFF;
  color: #1B263B;
}

.catalog-search-form input[type="search"]:focus {
  outline: 2px solid #5FA3D3;
  outline-offset: 1px;
  border-color: #5FA3D3;
}

#jobs-list-container {
  width: 100%;
}

#jobs-list-grid,
#invoices-list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1rem;
  margin-top: 0.5rem;
}

.jobs-card {
  display: grid;
  gap: 0.6rem;
  padding: 1rem;
  border: 1px solid #C5C7CB;
  border-radius: 6px;
  background-color: #FFFFFF;
  color: #1B263B;
  text-decoration: none;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.jobs-card:hover {
  background-color: #F8FAFC;
  box-shadow: 0 2px 8px rgba(27, 38, 59, 0.1);
}

.jobs-card[role="link"] {
  cursor: pointer;
}

.jobs-card-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  align-items: center;
}

.jobs-card-label {
  font-weight: 600;
  font-size: 0.88rem;
  color: #555;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.jobs-card-value {
  font-size: 0.9rem;
  color: #1B263B;
  text-align: right;
}

.jobs-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.35rem;
}

.jobs-card-action-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.25rem;
  padding: 0.45rem 0.85rem;
  border-radius: 6px;
  background-color: #1B263B;
  color: #FFFFFF;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s ease, opacity 0.2s ease;
}

.jobs-card-action-link:hover {
  background-color: #24344A;
}

.jobs-card-action-link--secondary {
  background-color: #FFFFFF;
  border: 1px solid #C5C7CB;
  color: #1B263B;
}

.jobs-card-action-link--secondary:hover {
  background-color: #F8FAFC;
}

.jobs-compact-list,
.estimates-compact-list {
  gap: 0.75rem;
}


.catalog-compact-list {
  gap: 0.75rem;
}

.catalog-compact-list .jobs-card {
  border: 1px solid #A8B1BD;
  border-top: 3px solid #334155;
  background: linear-gradient(180deg, #FFFFFF 0%, #F4F7FB 100%);
}

.catalog-compact-list .jobs-card:hover {
  border-color: #8F9BAE;
  background: linear-gradient(180deg, #FFFFFF 0%, #EFF3F8 100%);
}


#create-part-form .part-form-row--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}


.jobs-status-chip {
  display: inline-flex;
  justify-self: end;
  align-items: center;
  padding: 0.18rem 0.65rem;
  border-radius: 999px;
  background-color: #E5E7EB;
  color: #1F2937;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.2;
}

.jobs-status-chip.is-pending,
.jobs-status-chip.is-estimating {
  background-color: #2D2A1C;
  color: #F2F5F3;
}

.jobs-status-chip.is-scheduled {
  background-color: #1C263A;
  color: #F2F5F3;
}

.jobs-status-chip.is-en-route {
  background-color: #2B213B;
  color: #F2F5F3;
}

.jobs-status-chip.is-started {
  background-color: #162C32;
  color: #F2F5F3;
}

.jobs-status-chip.is-completed {
  background-color: #132E25;
  color: #F2F5F3;
}

.jobs-status-chip.is-paid {
  background-color: #193022;
  color: #F2F5F3;
}

.jobs-status-chip.is-declined {
  background-color: #FEE2E2;
  color: #991B1B;
}

#customers-controls-row {
  display: grid;
  grid-template-columns: minmax(150px, 0.55fr) 2.45fr;
  gap: 1rem;
  align-items: start;
}

.customers-controls-left h2 {
  margin: 0;
  font-size: 1.1rem;
  color: #F2F5F3;
}

.customers-filter-list {
  margin-top: 0.75rem;
  display: grid;
  gap: 0.65rem;
}

.customers-filter-group {
  border: 1px solid #2f5a4a;
  border-radius: 0;
  background-color: #1D3329;
  overflow: hidden;
}

.customers-filter-group summary {
  list-style: none;
  cursor: pointer;
  padding: 0.55rem 0.7rem;
  background: #244236;
  color: #F2F5F3;
  border-bottom: 1px solid #2f5a4a;
  font-family: "Source Sans 3", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: 0.96rem;
  font-weight: 600;
}

.customers-filter-group summary::-webkit-details-marker {
  display: none;
}

.customers-filter-group summary::after {
  content: "+";
  float: right;
  font-weight: 700;
}

.customers-filter-group[open] summary::after {
  content: "-";
}

.customers-filter-content {
  display: grid;
  gap: 0.5rem;
  padding: 0.7rem;
  background-color: #1D3329;
}

.customers-filter-content label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #B2C0B9;
  font-size: 0.95rem;
}

.customers-controls-right {
  display: grid;
  grid-template-rows: auto auto;
  gap: 0.85rem;
}

.customers-controls-right-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.customers-controls-right-top h2 {
  margin: 0;
  font-size: 1.1rem;
  color: #F2F5F3;
}

.customers-controls-right-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.customers-results-search {
  display: flex;
  align-items: center;
  width: 100%;
}

#customers-search-form.catalog-search-form {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  margin-bottom: 0;
  width: 100%;
}

#customers-search-form.catalog-search-form .catalog-search-form-label {
  color: #F2F5F3;
}

#customers-search-form.catalog-search-form input[type="search"] {
  width: min(100%, 720px);
  max-width: 720px;
}

.customers-add-button,
.customers-controls-right-actions a {
  display: inline-block;
  padding: 0.55rem 0.95rem;
  border: 1px solid #C5C7CB;
  border-radius: 4px;
  background-color: #FFFFFF;
  color: #1B263B;
  text-decoration: none;
  font-weight: 600;
}

.customers-add-button:hover,
.customers-controls-right-actions a:hover {
  background-color: #F1F5F9;
  border-color: #A9B0BA;
}

#customers-list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: 1rem;
  margin-top: 0.5rem;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

.customer-card {
  display: grid;
  gap: 0.6rem;
  padding: 1rem;
  border: 1px solid #C5C7CB;
  border-radius: 6px;
  background-color: #FFFFFF;
  color: #1B263B;
  text-decoration: none;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.customer-card:hover {
  background-color: #F8FAFC;
  box-shadow: 0 2px 8px rgba(27, 38, 59, 0.1);
}

.customers-compact-list {
  gap: 0.75rem;
}


.customer-card-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.75rem;
  align-items: center;
}

.customer-card-label {
  font-weight: 600;
  font-size: 0.9rem;
  color: #555;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.customer-card-value {
  font-size: 0.95rem;
  color: #1B263B;
  text-align: right;
  overflow-wrap: anywhere;
}

#add-customer-panel,
#create-job-panel,
#create-service-panel,
#create-part-panel,
#update-part-panel,
#view-part-panel,
#view-service-panel {
  width: 100%;
  padding: 0 0.75rem 0.75rem;
  box-sizing: border-box;
}

#add-customer-panel h1,
#create-job-panel h1,
#create-service-panel h1,
#create-part-panel h1,
#update-part-panel h1,
#view-part-panel h1,
#view-service-panel h1 {
  margin: 0 -0.75rem 0;
  padding: 0.5rem 0.75rem;
  text-align: center;
  background: linear-gradient(135deg, var(--kl-header) 0%, var(--kl-header-soft) 100%);
  color: var(--kl-accent-contrast);
  font-family: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

#breadcrumb {
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid #C5C7CB;
  margin: 0 0 1rem;
  font-size: 0.9rem;
}

#breadcrumb ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0;
}

#breadcrumb li + li::before {
  content: "/";
  margin: 0 0.45rem;
  color: #808080;
}

#breadcrumb a {
  color: #1B263B;
  text-decoration: none;
  font-weight: 600;
}

#breadcrumb a:hover {
  text-decoration: underline;
}

#breadcrumb li[aria-current="page"] {
  color: #808080;
}

body.login-view {
  min-height: 100vh;
  min-height: 100dvh;
}

body.login-view main {
  min-height: 100vh;
  min-height: 100dvh;
}

.login-shell {
  width: 100vw;
  min-height: 100vh;
  min-height: 100dvh;
  margin-left: calc(-50vw + 50%);
}

.login-layout {
  display: grid;
  grid-template-columns: minmax(320px, 420px) minmax(0, 1fr);
  min-height: 100vh;
  min-height: 100dvh;
}

.login-sidebar {
  background-color: #14241D;
  color: #F2F5F3;
  padding: 2.25rem 1.75rem;
  min-height: 100vh;
  min-height: 100dvh;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.login-sidebar h1 {
  margin: 0;
  font-size: 1.95rem;
  letter-spacing: 0.02em;
}

.login-error {
  padding: 0.85rem 0.9rem;
  border: 1px solid #8d3d3d;
  border-radius: 8px;
  background-color: #3b1b1b;
}

.login-error p {
  margin: 0;
  color: #ffd8d8;
}

.login-notice {
  padding: 0.85rem 0.9rem;
  border: 1px solid #2f6b50;
  border-radius: 8px;
  background-color: #163025;
}

.login-notice p {
  margin: 0;
  color: #c9f2dd;
}

.login-forgot-password {
  margin: 0.9rem 0 0;
}

.login-forgot-password a {
  color: #8fe3bd;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
}

.login-forgot-password a:hover {
  color: #f2f5f3;
  text-decoration: underline;
}

#login-form,
#forgot-password-form,
#reset-password-form {
  display: grid;
  gap: 1rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  background-color: transparent;
}

#login-form .add-customer-form-row,
#forgot-password-form .add-customer-form-row,
#reset-password-form .add-customer-form-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

#login-form .add-customer-form-field,
#forgot-password-form .add-customer-form-field,
#reset-password-form .add-customer-form-field {
  display: grid;
  gap: 0.6rem;
}

#login-form .add-customer-form-field label,
#forgot-password-form .add-customer-form-field label,
#reset-password-form .add-customer-form-field label {
  color: #F2F5F3;
  font-size: 1.05rem;
  font-weight: 600;
}

#login-form .add-customer-form-field input,
#forgot-password-form .add-customer-form-field input,
#reset-password-form .add-customer-form-field input {
  padding: 0.85rem 0.95rem;
  font-size: 1rem;
  border-radius: 8px;
  border: 1px solid #355146;
  background-color: #1f2d27;
  color: #F2F5F3;
}

.login-form-actions {
  margin-top: 0.35rem;
}

.login-form-actions button {
  width: 100%;
  min-height: 44px;
  border: 1px solid #00A86B;
  border-radius: 8px;
  background: #00A86B;
  color: #0d1a15;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
}

.login-form-actions button:hover {
  filter: brightness(1.04);
}

.login-sidebar-legal {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  padding-top: 0.85rem;
}

.login-sidebar-legal a {
  color: #b6c4bc;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
}

.login-sidebar-legal a:hover {
  color: #f2f5f3;
  text-decoration: underline;
}

.login-main-panel {
  color: #d5ddd8;
  padding: 2.75rem;
  display: grid;
  align-content: center;
  gap: 1rem;
}

.login-main-panel h2 {
  margin: 0;
  font-size: 2.15rem;
  color: #f0f5f2;
}

.login-main-panel p {
  margin: 0;
  max-width: 56ch;
  line-height: 1.5;
}

.login-visual-mark {
  width: min(56vw, 560px);
  height: min(26vw, 280px);
  border: 1px solid #31443b;
  border-radius: 18px;
  background-image: linear-gradient(135deg, rgba(0, 168, 107, 0.18) 0%, rgba(0, 168, 107, 0.03) 70%);
}

@media (max-width: 900px) {
  .app-shell {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .app-sidebar {
    border-right: 0;
    border-bottom: 1px solid #2d4037;
    padding: 0.85rem 0.9rem;
  }

  .app-sidebar-nav {
    gap: 0.6rem;
  }

  .app-sidebar-links {
    gap: 0.45rem;
  }

  #home-sidebar.is-links-hidden {
    display: none;
  }

  .app-content {
    padding: 0.4rem 0.75rem 1rem;
  }

  .login-shell,
  .login-layout,
  .login-sidebar,
  body.login-view main {
    min-height: auto;
  }

  .login-layout {
    grid-template-columns: 1fr;
  }

  .login-sidebar {
    padding: 1.5rem 1.25rem;
  }

  .login-main-panel {
    padding: 1.5rem 1.25rem 2rem;
  }

  .login-visual-mark {
    width: 100%;
    height: 160px;
  }
}

#add-customer-form,
#create-job-form,
#create-service-form,
#create-part-form {
  display: grid;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid #C5C7CB;
  background-color: #FFFFFF;
}

.admin-links-grid,
.resource-list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1rem;
  margin-top: 0.5rem;
}

.admin-link-card {
  display: grid;
  gap: 0.8rem;
  padding: 1rem;
  border: 1px solid #C5C7CB;
  border-radius: 6px;
  background-color: #FFFFFF;
  color: #1B263B;
  text-decoration: none;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.admin-link-card:hover {
  background-color: #F8FAFC;
  box-shadow: 0 2px 8px rgba(27, 38, 59, 0.1);
}

/* Resource-specific card polish */
.resource-page .jobs-controls-right-top h2,
.resource-page #all-customers-title-row h2 {
  letter-spacing: 0.01em;
  color: #11243A;
}

.resource-customers .customer-card {
  border-top-color: #0F766E;
  background: #FFFFFF;
}

.resource-customers .customer-card:hover {
  border-color: #97D1C6;
}

.resource-customers .customer-status-chip.is-active {
  background-color: #14B8A6;
  color: #F2F5F3;
}

.resource-employees .customer-card {
  border-top-color: #0E7490;
  background: linear-gradient(180deg, #FFFFFF 0%, #F0FAFD 100%);
}

.resource-employees .customer-card:hover {
  border-color: #9FD1DF;
}

.resource-employees .customer-status-chip.is-active {
  background-color: #DBF2F8;
  color: #0B5A70;
}

.resource-jobs .jobs-card {
  border-top-color: #1B4D8C;
  background: linear-gradient(180deg, #FFFFFF 0%, #F3F8FF 100%);
}

.resource-jobs .jobs-card:hover {
  border-color: #9FC0EC;
}

.resource-services .jobs-card {
  border-top-color: #334155;
  background: linear-gradient(180deg, #FFFFFF 0%, #F4F7FB 100%);
}

.resource-services .jobs-card:hover {
  border-color: #A3B4C9;
}

.resource-parts .jobs-card {
  border-top-color: #334155;
  background: linear-gradient(180deg, #FFFFFF 0%, #F4F7FB 100%);
}

.resource-parts .jobs-card:hover {
  border-color: #A3B4C9;
}

.resource-invoices .jobs-card {
  border-top-color: #0B5E55;
  background: linear-gradient(180deg, #FFFFFF 0%, #F0FBF8 100%);
}

.resource-invoices .jobs-card:hover {
  border-color: #8ECFC1;
}

.resource-admin .admin-link-card {
  border-top-color: #334155;
  background: linear-gradient(180deg, #FFFFFF 0%, #F4F7FB 100%);
}

.resource-admin .admin-link-card:hover {
  border-color: #A3B4C9;
}

.admin-reference-page {
  display: grid;
  gap: 1rem;
}

.admin-reference-anchor-grid,
.admin-reference-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
}

.admin-reference-section {
  display: grid;
  gap: 0.8rem;
  margin-top: 0.3rem;
}

.admin-reference-section h2 {
  margin: 0;
  color: #11243A;
  letter-spacing: 0.01em;
}

.admin-reference-card {
  border: 1px solid #D8E0EA;
  border-top: 3px solid #334155;
  border-radius: 12px;
  background: linear-gradient(180deg, #FFFFFF 0%, #F4F7FB 100%);
  box-shadow: 0 4px 12px rgba(16, 33, 55, 0.06);
  padding: 1rem;
  display: grid;
  gap: 0.7rem;
}

.admin-reference-card h3 {
  margin: 0;
  color: #122238;
  font-size: 1.05rem;
}

.admin-reference-card ol,
.admin-reference-card ul {
  margin: 0;
  padding-left: 1.1rem;
  color: #22364F;
  line-height: 1.5;
  display: grid;
  gap: 0.35rem;
}

.admin-reference-note {
  margin: 0;
  color: #41536A;
  font-size: 0.9rem;
  border-top: 1px solid #DCE4EE;
  padding-top: 0.6rem;
}

.admin-reference-actions {
  display: flex;
  justify-content: flex-end;
}

.admin-reference-print-btn {
  border: 1px solid #334155;
  background: #11243A;
  color: #FFFFFF;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.55rem 0.95rem;
  cursor: pointer;
}

.admin-reference-print-btn:hover {
  background: #1C3654;
}

@media (max-width: 768px) {
  .admin-reference-anchor-grid,
  .admin-reference-grid {
    grid-template-columns: 1fr;
  }
}

@media print {
  header,
  footer,
  #breadcrumb,
  .jobs-controls-right-top,
  .no-print {
    display: none !important;
  }

  body {
    background: #FFFFFF !important;
    color: #000000;
    font-size: 11pt;
  }

  main,
  #main-container,
  #manage-jobs-header,
  .admin-reference-page {
    margin: 0 !important;
    padding: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
  }

  .admin-reference-page {
    display: block;
  }

  .admin-reference-page h1 {
    margin: 0 0 0.35rem;
    font-size: 20pt;
  }

  .admin-reference-section {
    page-break-inside: avoid;
    break-inside: avoid;
    margin-top: 0.55rem;
  }

  .admin-reference-section h2 {
    font-size: 14pt;
    margin-bottom: 0.3rem;
  }

  .admin-reference-grid {
    display: block;
  }

  .admin-reference-card {
    border: 1px solid #BFC8D4;
    box-shadow: none;
    background: #FFFFFF;
    margin-bottom: 0.45rem;
    padding: 0.55rem 0.6rem;
    page-break-inside: avoid;
    break-inside: avoid;
  }

  .admin-reference-card h3 {
    font-size: 12pt;
    margin-bottom: 0.2rem;
  }

  .admin-reference-card ol,
  .admin-reference-card ul {
    gap: 0.15rem;
    line-height: 1.35;
  }

  .admin-reference-note {
    font-size: 10pt;
    color: #222222;
  }
}

.reporting-layout {
  display: grid;
  grid-template-columns: minmax(210px, 240px) minmax(0, 1fr);
  gap: 1rem;
  margin-top: 0.5rem;
}

.reporting-sidebar {
  border: 1px solid #D8E0EA;
  border-radius: 12px;
  background: linear-gradient(180deg, #FFFFFF 0%, #F4F7FB 100%);
  box-shadow: 0 4px 12px rgba(16, 33, 55, 0.06);
  padding: 0.9rem;
  height: fit-content;
}

.reporting-sidebar h3 {
  margin: 0 0 0.7rem;
  color: #11243A;
  font-size: 1.05rem;
}

.reporting-nav-stack {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.reporting-nav-link {
  display: block;
  border: 1px solid #CBD5E1;
  border-radius: 10px;
  padding: 0.55rem 0.75rem;
  text-decoration: none;
  color: #1B263B;
  font-weight: 600;
  background-color: #FFFFFF;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.reporting-nav-link small {
  color: #64748B;
  font-weight: 500;
}

.reporting-nav-link:hover {
  border-color: #9FB2C8;
  background-color: #F8FAFC;
}

.reporting-nav-link.is-active {
  border-color: #1B4D8C;
  background: linear-gradient(180deg, #EFF6FF 0%, #E6F0FF 100%);
  color: #0E3A67;
}

.reporting-nav-link.is-disabled {
  color: #64748B;
  background-color: #F8FAFC;
}

.reporting-main {
  min-width: 0;
}

.reporting-card {
  border: 1px solid #D8E0EA;
  border-radius: 12px;
  background: linear-gradient(180deg, #FFFFFF 0%, #F6FAFF 100%);
  box-shadow: 0 4px 12px rgba(16, 33, 55, 0.06);
  padding: 0.95rem;
}

.reporting-secondary-card {
  margin-top: 0.9rem;
}

.reporting-card-header h3 {
  margin: 0;
  color: #11243A;
  font-size: 1.2rem;
}

.reporting-card-header p {
  margin: 0.35rem 0 0;
  color: #41536A;
}

.reporting-kpi-row {
  margin-top: 0.8rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.55rem;
}

.reporting-kpi-row--two-column {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.reporting-kpi-row--four-column {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.reporting-kpi {
  border: 1px solid #D8E0EA;
  border-radius: 10px;
  background-color: #FFFFFF;
  padding: 0.55rem 0.6rem;
  display: grid;
  gap: 0.25rem;
}

.reporting-kpi span {
  color: #4B5E76;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}

.reporting-kpi strong {
  color: #0E3A67;
  font-size: 1.12rem;
}

.reporting-kpi small {
  color: #7A8FA6;
  font-size: 0.75rem;
  line-height: 1.3;
}

.reporting-kpi-trend {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin-top: 0.1rem;
  display: block;
}

.reporting-kpi .reporting-kpi-trend--up {
  color: #0B6B52;
}

.reporting-kpi .reporting-kpi-trend--down {
  color: #B91C1C;
}

.reporting-chart-shell {
  margin-top: 0.9rem;
  display: flex;
  align-items: flex-start;
  width: 100%;
}

.reporting-jobs-table-shell {
  margin-top: 0.9rem;
  border: 1px solid #D8E0EA;
  border-radius: 10px;
  overflow-x: auto;
  background-color: #FFFFFF;
}

.reporting-jobs-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}

.reporting-jobs-table thead th {
  background: linear-gradient(180deg, #EFF6FF 0%, #E2ECFA 100%);
  color: #0E3A67;
  font-size: 0.83rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-weight: 700;
  padding: 0.58rem 0.65rem;
  border-bottom: 1px solid #CFDAE8;
  text-align: right;
}

.reporting-jobs-table thead th:first-child {
  text-align: left;
}

.reporting-jobs-table tbody th,
.reporting-jobs-table tbody td {
  padding: 0.56rem 0.65rem;
  border-bottom: 1px solid #E2EAF3;
}

.reporting-jobs-table tbody th {
  color: #1B263B;
  text-align: left;
  font-weight: 600;
  white-space: nowrap;
}

.reporting-jobs-table tbody td {
  color: #0E3A67;
  text-align: right;
  font-weight: 600;
}

.reporting-jobs-table tbody tr:nth-child(even) {
  background-color: #F8FAFC;
}

.reporting-jobs-table tbody tr:last-child th,
.reporting-jobs-table tbody tr:last-child td {
  border-bottom: none;
}

/* ── Revenue Report ─────────────────────────────────────────── */
.reporting-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.rev-filter-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}

.rev-filter-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #5A7A99;
  white-space: nowrap;
}

.rev-timeframe-group,
.rev-daterange-group {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.rev-timeframe-btn {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.28rem 0.7rem;
  border: 1.5px solid #ccd8e8;
  border-radius: 4px;
  background: #fff;
  color: #1B263B;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  white-space: nowrap;
}

.rev-timeframe-btn:hover {
  background: #eaf1fb;
  border-color: #4f8ef7;
}

.rev-timeframe-btn.is-active {
  background: #1B263B;
  border-color: #1B263B;
  color: #fff;
}

.rev-date-label {
  font-size: 0.78rem;
  color: #3D5166;
  white-space: nowrap;
}

.rev-date-input {
  font-size: 0.78rem;
  padding: 0.28rem 0.5rem;
  border: 1.5px solid #ccd8e8;
  border-radius: 4px;
  color: #1B263B;
  background: #fff;
}

/* KPI cards row */
.rev-kpi-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}


.rev-kpi-card {
  background: #F4F7FC;
  border: 1px solid #DDE6F0;
  border-radius: 8px;
  padding: 1rem 1.1rem 0.85rem;
}

.rev-kpi-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #5A7A99;
  margin-bottom: 0.3rem;
}

.rev-kpi-value {
  font-size: 1.6rem;
  font-weight: 700;
  color: #0E3A67;
  line-height: 1.1;
}

.rev-kpi-growth {
  font-size: 0.78rem;
  font-weight: 600;
  margin-top: 0.25rem;
  color: #5A7A99;
}

.rev-kpi-growth.is-up { color: #2a7d4f; }
.rev-kpi-growth.is-down { color: #c0392b; }

/* Bar chart */
.rev-chart-section {
  margin-bottom: 1.5rem;
}

.rev-section-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #5A7A99;
  margin: 0 0 0.6rem;
}

#rev-equipment-type-card .rev-section-label + .rev-service-bars + .rev-section-label {
  margin-top: 1.1rem;
}

/* Service type & customer split */
.rev-breakdown-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.rev-breakdown-row--secondary {
  margin-top: 1rem;
}


.rev-breakdown-card {
  background: #F4F7FC;
  border: 1px solid #DDE6F0;
  border-radius: 8px;
  padding: 1rem 1.1rem;
}

.rev-service-bar-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.55rem;
}

.rev-service-bar-label {
  font-size: 0.78rem;
  color: #1B263B;
  min-width: 120px;
  max-width: 160px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-shrink: 0;
}

.rev-service-bar-track {
  flex: 1;
  height: 10px;
  background: #DDE6F0;
  border-radius: 5px;
  overflow: hidden;
}

.rev-service-bar-fill {
  height: 100%;
  background: #4f8ef7;
  border-radius: 5px;
  transition: width 0.3s ease;
}

.rev-service-bar-amount {
  font-size: 0.78rem;
  font-weight: 700;
  color: #0E3A67;
  white-space: nowrap;
  min-width: 64px;
  text-align: right;
}

.rev-placeholder {
  font-size: 0.85rem;
  color: #8098b0;
  padding: 1rem 0;
}

/* Donut chart */
.rev-donut-wrap {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding-top: 0.25rem;
}

.rev-donut-svg {
  width: 110px;
  height: 110px;
  flex-shrink: 0;
}

.rev-donut-legend {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.rev-donut-legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: #1B263B;
}

.rev-donut-swatch {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 3px;
  flex-shrink: 0;
}

.rev-donut-pct {
  margin-left: auto;
  font-weight: 700;
  color: #3D5166;
  padding-left: 0.75rem;
}

.reporting-jobs-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0.75rem;
  border-top: 1px solid #E2EAF3;
  background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
}

.reporting-jobs-pagination-summary {
  color: #4B5E76;
  font-size: 0.86rem;
  font-weight: 600;
}

.reporting-jobs-pagination-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem;
}

.reporting-jobs-page-link {
  border: 1px solid #CBD5E1;
  border-radius: 999px;
  background-color: #FFFFFF;
  color: #0E3A67;
  padding: 0.28rem 0.65rem;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.reporting-jobs-page-link:hover {
  border-color: #9FB2C8;
  background-color: #F8FAFC;
}

.reporting-jobs-page-link.is-active {
  border-color: #1B4D8C;
  background: linear-gradient(180deg, #EFF6FF 0%, #E6F0FF 100%);
  color: #0E3A67;
}

.reporting-chart-wrapper {
  width: 100%;
}

.reporting-chart-title {
  margin: 0 0 0.45rem;
  color: #11243A;
  font-size: 0.95rem;
}

.reporting-list-block {
  margin-top: 0.9rem;
}

.reporting-list-block h4 {
  margin: 0 0 0.55rem;
  color: #11243A;
  font-size: 1rem;
}

.reporting-mini-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.reporting-mini-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0.8rem;
  border: 1px solid #D8E0EA;
  border-radius: 10px;
  background: linear-gradient(180deg, #FFFFFF 0%, #F7FAFC 100%);
  color: #1B263B;
  text-decoration: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.reporting-mini-list-item:hover {
  border-color: #B7C7DA;
  box-shadow: 0 8px 18px rgba(16, 45, 77, 0.1);
  transform: translateY(-1px);
}

.reporting-mini-list-item span {
  color: #2A3F57;
  font-weight: 600;
}

.reporting-mini-list-item strong {
  color: #0E3A67;
  white-space: nowrap;
}

.reporting-mini-list-item.is-filtered-out {
  display: none;
}

.reporting-mini-list-empty {
  margin: 0.55rem 0 0;
  color: #5E6B82;
  font-size: 0.86rem;
}

.reporting-receivables-flags {
  margin: -0.1rem 0 0.55rem;
}

.reporting-receivables-flag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #6B2230;
  font-size: 0.82rem;
  font-weight: 700;
}

.reporting-flag-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  display: inline-block;
  margin-left: 0.25rem;
  vertical-align: middle;
}

.reporting-flag-dot-late {
  background-color: #D14343;
  box-shadow: 0 0 0 1px #B83232 inset;
}

.reporting-aging-note {
  margin: 0.55rem 0 0;
  color: #5E6B82;
  font-size: 0.86rem;
}

.reporting-aging-legend {
  margin-top: 0.55rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.75rem;
}

.reporting-aging-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #41536A;
  font-size: 0.84rem;
  font-weight: 600;
  border: 1px solid #D8E0EA;
  border-radius: 999px;
  background-color: #FFFFFF;
  padding: 0.28rem 0.6rem;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.reporting-aging-legend-item:hover {
  border-color: #9FB2C8;
  background-color: #F8FAFC;
}

.reporting-aging-legend-item.is-active {
  border-color: #1B4D8C;
  background: linear-gradient(180deg, #EFF6FF 0%, #E6F0FF 100%);
  color: #0E3A67;
}

.reporting-aging-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  display: inline-block;
  border: 1px solid transparent;
}

.reporting-aging-dot-low {
  background-color: #BFE6C8;
  border-color: #9BD3AE;
}

.reporting-aging-dot-moderate {
  background-color: #F7DCA3;
  border-color: #F2C36B;
}

.reporting-aging-dot-high {
  background-color: #F9C6AD;
  border-color: #F3A683;
}

.reporting-aging-dot-critical {
  background-color: #F2B8B8;
  border-color: #E58B8B;
}

.reporting-kpi--aging.is-filtered-out {
  display: none;
}

.reporting-kpi--aging {
  border-width: 2px;
}

.reporting-kpi--aging-low {
  border-color: #9BD3AE;
  background: linear-gradient(180deg, #FFFFFF 0%, #F2FBF5 100%);
}

.reporting-kpi--aging-low strong {
  color: #14532D;
}

.reporting-kpi--aging-moderate {
  border-color: #F2C36B;
  background: linear-gradient(180deg, #FFFFFF 0%, #FFF8EC 100%);
}

.reporting-kpi--aging-moderate strong {
  color: #8A4B00;
}

.reporting-kpi--aging-high {
  border-color: #F3A683;
  background: linear-gradient(180deg, #FFFFFF 0%, #FFF3EE 100%);
}

.reporting-kpi--aging-high strong {
  color: #A63F19;
}

.reporting-kpi--aging-critical {
  border-color: #E58B8B;
  background: linear-gradient(180deg, #FFFFFF 0%, #FDEFF0 100%);
}

.reporting-kpi--aging-critical strong {
  color: #8B1E1E;
}

/* ── Customer Health ─────────────────────────────────────────── */

.reporting-kpi-row--three-column {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.reporting-health-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  display: inline-block;
  flex-shrink: 0;
  border: 1px solid transparent;
}

.reporting-health-dot--overdue {
  background-color: #F2B8B8;
  border-color: #E58B8B;
}

.reporting-health-dot--due {
  background-color: #F7DCA3;
  border-color: #F2C36B;
}

.reporting-health-dot--good {
  background-color: #BFE6C8;
  border-color: #9BD3AE;
}

.reporting-kpi--health-overdue {
  border-color: #E58B8B;
  border-width: 2px;
  background: linear-gradient(180deg, #FFFFFF 0%, #FDEFF0 100%);
}

.reporting-kpi--health-overdue strong {
  color: #8B1E1E;
}

.reporting-kpi--health-due {
  border-color: #F2C36B;
  border-width: 2px;
  background: linear-gradient(180deg, #FFFFFF 0%, #FFF8EC 100%);
}

.reporting-kpi--health-due strong {
  color: #8A4B00;
}

.reporting-kpi--health-good {
  border-color: #9BD3AE;
  border-width: 2px;
  background: linear-gradient(180deg, #FFFFFF 0%, #F2FBF5 100%);
}

.reporting-kpi--health-good strong {
  color: #14532D;
}

.reporting-mini-list-item--health-overdue {
  border-left: 3px solid #E58B8B;
}

.reporting-mini-list-item--health-due {
  border-left: 3px solid #F2C36B;
}

.reporting-mini-list-item--health-good {
  border-left: 3px solid #9BD3AE;
}

/* Footer styles */
#footer-bg {
  width: 100vw;
  background: #1D3329;
  margin-left: calc(-50vw + 50%);
  margin-top: 2rem;
}

body.home-view #footer-bg {
  margin-top: 0;
}

body.sidebar-view #footer-bg {
  margin-top: 0;
}

#footer {
  width: 100vw;
  background: #1D3329;
  color: var(--kl-accent-contrast);
  padding: 0;
  margin-left: calc(-50vw + 50%);
}

#footer-container {
  width: 95vw;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  text-align: left;
  font-family: "Source Sans 3", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: 1rem;
  padding: 1rem 0;
}

#footer-legal-links {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

#footer-legal-links a {
  color: var(--kl-accent-contrast);
  text-decoration: none;
  font-weight: 600;
}

#footer-legal-links a:hover {
  text-decoration: underline;
}


.reporting-chart {
  width: 100%;
  max-width: none;
  height: auto;
  background: #FFFFFF;
  border: 1px solid #D8E0EA;
  border-radius: 12px;
  display: block;
}

.reporting-axis {
  stroke: #47607D;
  stroke-width: 1;
}

.reporting-grid-x,
.reporting-grid-y {
  stroke: #DCE6F1;
  stroke-width: 1;
}

.reporting-line {
  fill: none;
  stroke: #0B5E55;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.reporting-point {
  fill: #1B4D8C;
  stroke: #FFFFFF;
  stroke-width: 1;
}

.reporting-bar {
  rx: 4;
  ry: 4;
  opacity: 0.88;
}

.reporting-bar--pending {
  fill: #94A3B8;
}

.reporting-bar--estimating {
  fill: #60A5FA;
}

.reporting-bar--scheduled {
  fill: #1B4D8C;
}

.reporting-bar--started {
  fill: #F59E0B;
}

.reporting-bar--completed {
  fill: #0B5E55;
}

.reporting-bar-value {
  fill: #0E3A67;
  font-size: 12px;
  font-family: "Source Sans 3", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-weight: 600;
}

.reporting-axis-label-x,
.reporting-axis-label-y {
  fill: #4B5E76;
  font-size: 13px;
  font-family: "Source Sans 3", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.reporting-axis-title-x,
.reporting-axis-title-y {
  font-size: 14px;
  font-weight: 600;
}

.reporting-day-label {
  font-size: 12px;
}


.subscription-actions form {
  margin: 0;
}

.subscription-actions {
  margin-top: 0.85rem;
}

.subscription-cancel-copy {
  margin: 0.4rem 0 0.7rem;
  color: #2A3F57;
}

.subscription-cancel-feature-list {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
  color: #2A3F57;
}

.subscription-cancel-feature-list li {
  margin-bottom: 0.35rem;
}

.subscription-cancel-form {
  margin-top: 0.5rem;
  width: 100%;
}

.subscription-cancel-reason-label {
  font-size: 1.4rem;
  font-weight: 600;
  color: #2A3F57;
  margin: 2rem 0 0.75rem 0;
  padding: 0;
}

.subscription-cancel-reason-field {
  width: 100%;
  margin-bottom: 1.2rem;
}

.subscription-cancel-reason-field textarea {
  display: block;
  width: 100%;
  max-width: none;
  min-height: 300px;
  font-size: 0.95rem;
  line-height: 1.5;
  box-sizing: border-box;
}

.subscription-cancel-actions-row {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.65rem;
  margin-top: 0.85rem;
}

.subscription-cancel-actions-row .home-latest-action-link,
.subscription-cancel-actions-row .subscription-remove-button {
  margin: 0;
  box-sizing: border-box;
}


/* ================================================================
   RESPONSIVE STYLES
   All media queries are consolidated here, ordered largest → smallest.
   ================================================================ */

/* --- DESKTOP        (≥ 1200px) --- */
@media (min-width: 1200px) {
  #jobs-list-grid.jobs-compact-list,
    #estimates-list-grid.estimates-compact-list,
    #invoices-list-grid.estimates-compact-list {
      display: grid;
      grid-template-columns: 1fr;
      gap: 0.55rem;
      margin-top: 0.5rem;
    }

    .jobs-compact-list .jobs-card,
    .estimates-compact-list .jobs-card {
      display: flex;
      align-items: center;
      gap: 0.55rem;
      padding: 0.55rem 0.7rem;
      min-height: 3.7rem;
    }

    .jobs-compact-list .jobs-card-row,
    .estimates-compact-list .jobs-card-row {
      display: inline-flex;
      align-items: baseline;
      gap: 0.22rem;
      padding: 0;
      border: 0;
      grid-template-columns: none;
      min-width: 0;
      white-space: nowrap;
    }

    .jobs-compact-list .jobs-card-row--status,
    .estimates-compact-list .jobs-card-row--status {
      padding-right: 0.55rem;
      margin-right: 0.1rem;
      border-right: 1px solid #D1D5DB;
    }

    .jobs-compact-list .jobs-card-row--address {
      flex: 1 1 auto;
      min-width: 0;
    }

    .jobs-compact-list .jobs-card-label,
    .estimates-compact-list .jobs-card-label {
      font-size: 0.7rem;
      letter-spacing: 0.04em;
    }

    .jobs-compact-list .jobs-card-value,
    .estimates-compact-list .jobs-card-value {
      text-align: left;
      font-size: 0.86rem;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      max-width: 14rem;
    }

    .jobs-compact-list .jobs-card-value--address {
      max-width: 32rem;
    }

    .catalog-compact-list {
      display: flex !important;
      flex-direction: column;
      gap: 0.55rem;
      margin-top: 0.5rem;
    }

    .catalog-compact-list .jobs-card {
      display: flex;
      align-items: center;
      gap: 0.9rem;
      padding: 0.65rem 0.8rem;
      min-height: 4.25rem;
    }

    .catalog-compact-list .jobs-card-row {
      display: inline-flex;
      align-items: baseline;
      gap: 0.35rem;
      padding: 0;
      border: 0;
      grid-template-columns: none;
      min-width: 0;
      white-space: nowrap;
    }

    .catalog-compact-list .jobs-card-label {
      font-size: 0.74rem;
      letter-spacing: 0.04em;
    }

    .catalog-compact-list .jobs-card-value {
      text-align: left;
      font-size: 0.9rem;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      max-width: 18rem;
    }

    .catalog-compact-list .jobs-card-actions {
      margin-top: 0;
      margin-left: auto;
      flex-shrink: 0;
    }

    #customers-list-grid.customers-compact-list {
      display: grid;
      grid-template-columns: 1fr;
      gap: 0.55rem;
      margin-top: 0.5rem;
    }

    .customers-compact-list .customer-card {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      padding: 0.5rem 0.6rem;
      min-height: 3.5rem;
    }

    .customers-compact-list .customer-card-row,
    .customers-compact-list .customer-card-column {
      display: inline-flex;
      align-items: baseline;
      gap: 0.2rem;
      padding: 0;
      border: 0;
      grid-template-columns: none;
      min-width: 0;
      white-space: nowrap;
    }

    .customers-compact-list .customer-card-row--status,
    .customers-compact-list .customer-card-column--status {
      padding-right: 0.55rem;
      margin-right: 0.1rem;
      border-right: 1px solid #D1D5DB;
    }

    .customers-compact-list .customer-card-row--address,
    .customers-compact-list .customer-card-column--address {
      flex: 1 1 auto;
      min-width: 0;
    }

    .customers-compact-list .customer-card-label {
      font-size: 0.7rem;
      letter-spacing: 0.04em;
    }

    .customers-compact-list .customer-card-value {
      text-align: left;
      font-size: 0.86rem;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      max-width: 14rem;
    }

    .customers-compact-list .customer-card-value--address {
      max-width: 32rem;
    }
}

/* --- LARGE DESKTOP  (≥ 1400px) --- */
@media (min-width: 1400px) {
  .home-scheduling-row {
      grid-template-columns: 1fr 1fr;
      justify-content: stretch;
    }
}

/* --- BELOW DESKTOP  (≤ 1199px) --- */
@media (max-width: 1199px) {
  .jobs-compact-list .jobs-card,
    .estimates-compact-list .jobs-card {
      gap: 0.55rem;
      padding: 0.85rem;
      min-height: 7rem;
    }

    .catalog-compact-list .jobs-card {
      gap: 0.55rem;
      padding: 0.85rem;
      min-height: 7rem;
    }

    .customers-compact-list .customer-card {
      gap: 0.5rem;
      padding: 0.6rem 0.7rem;
      min-height: 3.8rem;
    }
}

/* --- TABLET LARGE   (≤ 1024px) --- */
@media (max-width: 1024px) {
  .reporting-kpi-row--three-column {
      grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .reporting-kpi-row {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .reporting-kpi-row--four-column {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* --- TABLET         (≤ 900px) --- */
@media (max-width: 900px) {
  #create-part-form .part-form-row--two {
      grid-template-columns: 1fr;
    }

    .rev-kpi-row {
      grid-template-columns: repeat(2, 1fr);
    }

    .reporting-axis-label-x,
    .reporting-axis-label-y {
      font-size: 13.5px;
    }

    .reporting-axis-title-x,
    .reporting-axis-title-y {
      font-size: 14.5px;
    }

    .reporting-day-label {
      font-size: 12.5px;
    }

    .reporting-layout {
      grid-template-columns: minmax(0, 1fr);
    }

    .reporting-sidebar {
      order: 1;
    }

    .reporting-main {
      order: 2;
    }
}

/* --- TABLET SMALL   (≤ 768px) --- */
@media (max-width: 768px) {
  .home-hvac-system-row-item {
      grid-template-columns: 1fr;
      gap: 0.45rem;
    }

    .home-hvac-diagnostics-button {
      width: 100%;
      min-height: 38px;
      padding: 0.4rem 0.45rem;
      font-size: 0.8rem;
    }

    #home-activity-content {
      grid-template-columns: 1fr;
      min-height: 0;
    }

    #home-activity-feed-column {
      border-right: 0;
      border-bottom: 1px solid var(--kl-border);
    }

    #home-activity-map {
      min-height: 310px;
    }

    .home-job {
      grid-template-columns: 1fr;
      gap: 0;
    }

    .home-job-actions {
      flex-direction: row;
      gap: 0.45rem;
      padding: 0 0.55rem 0.55rem;
      border-top: 1px solid var(--kl-border);
    }

    .home-job-action-form,
    .home-job-actions > a,
    .home-job-actions > button {
      flex: 1 1 0;
    }

    .home-job-action-button {
      width: 100%;
      min-height: 38px;
      padding: 0.4rem 0.45rem;
      font-size: 0.8rem;
    }

    .home-job-title-line {
      flex-direction: column;
      align-items: flex-start;
      gap: 0.1rem;
    }

    .home-job-last-note {
      font-size: 0.84rem;
    }
}

/* Subscription page two-column layout */
.subscription-page-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 0.4rem;
  align-items: start;
  max-width: 1080px;
  width: 100%;
  justify-content: start;
}

.subscription-page-column-left,
.subscription-page-column-right {
  min-width: 0;
}

.subscription-page-column-left {
  box-sizing: border-box;
  padding-left: 0.8rem;
  padding-right: 0.55rem;
}

.subscription-included-features-list {
  margin: 0.7rem 0 0;
  padding-left: 1.1rem;
  color: #102237;
}

.subscription-included-features-list li {
  margin: 0 0 0.45rem;
  line-height: 1.35;
}

.subscription-included-features-list li:last-child {
  margin-bottom: 0;
}

/* --- TABLET SMALL   (≤ 700px) --- */
@media (max-width: 700px) {
  .rev-breakdown-row {
      grid-template-columns: 1fr;
    }
}

/* --- TABLET SMALL   (≤ 699px) --- */
@media (max-width: 699px) {
  .jobs-compact-list .jobs-card,
    .estimates-compact-list .jobs-card {
      min-height: 0;
    }

    .catalog-compact-list .jobs-card {
      min-height: 0;
    }

    #customers-list-grid {
      grid-template-columns: 1fr;
    }

    .customers-compact-list .customer-card {
      min-height: 0;
    }
}

/* --- MOBILE LARGE   (≤ 640px) --- */
@media (max-width: 640px) {
  .reporting-kpi-row--three-column {
      grid-template-columns: 1fr;
    }

    .subscription-cancel-reason-label {
      font-size: 1.2rem;
      margin-top: 1.4rem;
    }

    .subscription-cancel-reason-field {
      margin-bottom: 1rem;
    }

    .subscription-cancel-reason-field textarea {
      min-height: 220px;
      font-size: 1rem;
    }

    .subscription-cancel-actions-row {
      flex-direction: column;
      align-items: stretch;
      gap: 0.75rem;
    }

    .subscription-cancel-actions-row .home-latest-action-link,
    .subscription-cancel-actions-row .subscription-remove-button {
      width: 100%;
      text-align: center;
      white-space: normal;
      overflow-wrap: anywhere;
      font-size: 13px;
  }

  /* Reactivate subscription page */
  .reactivate-subscription-panel {
    display: flex;
      font-size: 14px;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3rem 2rem;
      font-size: 12px;
    background: var(--card-bg, #fff);
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  }

  .reactivate-subscription-message {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary, #1e293b);
        font-size: 14.5px;
    line-height: 1.5;
    margin-bottom: 2rem;
  }

  .reactivate-subscription-button {
    background: linear-gradient(180deg, #3B5BA9 0%, #2d4a8e 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
        font-size: 13px;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    cursor: not-allowed;
        font-size: 14px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
  }

  .subscription-cancel-button {
        font-size: 15px;
    border: 1px solid #D26B6B;
    background: linear-gradient(180deg, #FFF2F2 0%, #FFE5E5 100%);
    color: #8E1E1E;
    border-radius: 8px;
        font-size: 12px;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    cursor: pointer;
        font-size: 13px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.07);
  }

  .subscription-cancel-button:hover {
        font-size: 14px;
    background: linear-gradient(180deg, #FFE9E9 0%, #FFD9D9 100%);
    border-color: #C04F4F;
    box-shadow: 0 3px 8px rgba(0,0,0,0.10);
  }

  .subscription-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
    margin-bottom: 1.5rem;
  }

  .subscription-summary-card,
  .subscription-panel-card {
    border: 1px solid #D8E0EA;
    border-top: 3px solid #334155;
    border-radius: 12px;
    background: linear-gradient(180deg, #FFFFFF 0%, #F7FAFC 100%);
    box-shadow: 0 4px 12px rgba(16, 33, 55, 0.06);
    padding: 1rem;
  }

  .subscription-summary-kicker {
    margin: 0;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #4B5E76;
  }

  .subscription-summary-card h3,
  .subscription-panel-card h3 {
    margin: 0.25rem 0 0;
    color: #102237;
  }

  .subscription-summary-amount {
    margin: 0.5rem 0 0;
    font-size: 1.2rem;
    font-weight: 700;
    color: #0B5E55;
  }

  .subscription-summary-note {
    margin: 0.35rem 0 0;
    color: #4B5563;
  }

  .subscription-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  .subscription-detail-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.75rem;
    padding: 0.55rem 0;
    border-bottom: 1px solid #E3EAF2;
  }

  .subscription-detail-row:last-child {
    border-bottom: 0;
    padding-bottom: 0;
  }

  .subscription-detail-row span {
    color: #4B5E76;
  }

  .subscription-detail-row strong {
    color: #102237;
  }

  @media (max-width: 900px) {
    .subscription-page-columns {
      grid-template-columns: 1fr;
    }

    .subscription-summary-grid {
      grid-template-columns: 1fr;
    }

    .subscription-detail-grid {
      grid-template-columns: 1fr;
    }
  }

  @media (max-width: 640px) {
    .jobs-card-row,
    .customer-card-row {
      grid-template-columns: 1fr;
      gap: 0.25rem;
      align-items: start;
    }

    .jobs-card-value,
    .customer-card-value {
      text-align: left;
    }

    .home-job-card-content {
      grid-template-columns: 1fr;
      gap: 0.55rem;
    }

    .home-job-card-column--left {
      border-right: 0;
      border-bottom: 1px solid #E3EAF2;
      padding-bottom: 0.55rem;
    }

    .home-job-card-column--right {
      padding-left: 0.4rem;
    }
  }

}

  #create-job-form .create-job-form-section-header,
  #create-job-form .form-section-header {
    margin: 1rem 0 0.75rem;
    padding: 0.5rem 0.75rem;
    color: var(--kl-accent-contrast);
    font-size: 1.05rem;
    font-weight: 700;
    text-align: left;
    background: linear-gradient(135deg, var(--kl-header) 0%, var(--kl-header-soft) 100%);
    border-radius: 4px;
  }

  #add-customer-form .create-job-form-section-header,
  #add-customer-form .form-section-header {
    margin: 1rem 0 0.75rem;
    padding: 0.5rem 0.75rem;
    color: var(--kl-accent-contrast);
    font-size: 1.05rem;
    font-weight: 700;
    text-align: left;
    background: linear-gradient(135deg, var(--kl-header) 0%, var(--kl-header-soft) 100%);
    border-radius: 4px;
  }

  .form-row,
  .add-customer-form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }

  .form-row[hidden],
  .add-customer-form-row[hidden],
  .add-customer-form-field[hidden] {
    display: none !important;
  }

  .form-row--top-aligned,
  .add-customer-form-row--top-aligned {
    align-items: start;
  }

  .form-row--single,
  .add-customer-form-row--single {
    grid-template-columns: minmax(0, 1fr);
    max-width: calc(50% - 0.5rem);
  }

  .job-service-row {
    align-items: start;
  }

  #create-service-form.materials-form .materials-form-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }

  #create-service-form.materials-form .materials-form-row--pricing {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  @media (max-width: 720px) {
    #create-service-form.materials-form .materials-form-row {
      grid-template-columns: 1fr;
    }
  }

  .form-field,
  .add-customer-form-field {
    display: grid;
    gap: 0.4rem;
  }

  .form-field:has(> button),
  .add-customer-form-field:has(> button) {
    width: auto;
  }

  .form-field label,
  .add-customer-form-field label {
    color: #1B263B;
    font-size: 1rem;
    font-weight: 600;
  }

  .form-field input,
  .add-customer-form-field input,
  .form-field select,
  .add-customer-form-field select,
  .form-field textarea,
  .add-customer-form-field textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 0.65rem 0.75rem;
    border: 1px solid #C5C7CB;
    border-radius: 4px;
    background-color: #FFFFFF;
    color: #1B263B;
    font-size: 1rem;
    font-family: inherit;
  }

  .form-field input,
  .add-customer-form-field input,
  .form-field select,
  .add-customer-form-field select {
    min-height: 44px;
    line-height: 1.2;
  }

  .form-field select,
  .add-customer-form-field select {
    display: block;
    appearance: none;
    -webkit-appearance: none;
    background-image:
      linear-gradient(45deg, transparent 50%, #1B263B 50%),
      linear-gradient(135deg, #1B263B 50%, transparent 50%);
    background-position:
      calc(100% - 1rem) calc(50% + 1px),
      calc(100% - 0.7rem) calc(50% + 1px);
    background-size: 0.35rem 0.35rem, 0.35rem 0.35rem;
    background-repeat: no-repeat;
    padding-right: 2.25rem;
    cursor: pointer;
  }

  .category-input-toggle {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.5rem;
    align-items: center;
  }

  .category-input-toggle input[data-category-input] {
    grid-column: 1 / -1;
  }

  .category-toggle-button {
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    border: 1px solid #1B263B;
    border-radius: 4px;
    background-color: #FFFFFF;
    color: #1B263B;
    font-size: 1.2rem;
    line-height: 1;
    font-weight: 700;
    cursor: pointer;
  }

  .category-toggle-button:hover {
    background-color: #F1F5F9;
  }

  .form-field input:focus,
  .add-customer-form-field input:focus,
  .form-field select:focus,
  .add-customer-form-field select:focus,
  .form-field textarea:focus,
  .add-customer-form-field textarea:focus {
    outline: 2px solid #5FA3D3;
    outline-offset: 1px;
    border-color: #5FA3D3;
  }

  #create-job-form #job-customer-name:disabled,
  #create-job-form #job-customer-phone:disabled {
    background-color: #EEF1F4;
    color: #6B7280;
    border-color: #D1D5DB;
    cursor: not-allowed;
  }

  .form-field textarea,
  .add-customer-form-field textarea {
    resize: vertical;
    font-family: inherit;
  }

  .tax-rate-applies-to-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem;
  }

  .tax-rate-applies-to-grid label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 40px;
    padding: 0.5rem 0.6rem;
    border: 1px solid #C5C7CB;
    border-radius: 6px;
    background-color: #FFFFFF;
    color: #1B263B;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
  }

  .tax-rate-applies-to-grid label:has(input[type="checkbox"]:checked) {
    border-color: #1E7A46;
    background-color: #E4F5EA;
  }

  .resource-business .tax-rate-applies-to-grid input[type="checkbox"] {
    width: 18px;
    max-width: 18px;
    height: 18px;
    flex: 0 0 18px;
    min-width: 0;
    min-height: 0;
    margin: 0;
    padding: 0;
    accent-color: #1E7A46;
    cursor: pointer;
  }

  @media (max-width: 860px) {
    .tax-rate-applies-to-grid {
      grid-template-columns: 1fr;
    }
  }

  .tax-rate-row-wrapper {
    display: contents;
  }

  .tax-rate-row-wrapper--new .add-customer-form-row {
    margin-top: 1rem;
  }

  .tax-rate-row-remove-wrap {
    grid-column: 1 / -1;
    display: flex;
    justify-content: flex-end;
    margin-top: 0.35rem;
  }

  .tax-rate-remove-button {
    padding: 0.45rem 0.75rem;
    border: 1px solid #B91C1C;
    border-radius: 4px;
    background-color: #FEF2F2;
    color: #991B1B;
    font-family: "Source Sans 3", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
  }

  .tax-rate-remove-button:hover {
    background-color: #FEE2E2;
  }

  #add-tax-rate-row {
    padding: 0.55rem 0.95rem;
    border: 1px solid #1B263B;
    border-radius: 4px;
    background-color: #FFFFFF;
    color: #1B263B;
    font-family: "Source Sans 3", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    width: auto;
    align-self: flex-start;
  }

  #add-tax-rate-row:hover {
    background-color: #F1F5F9;
  }

  .markup-rule-remove-button {
    padding: 0.45rem 0.85rem;
    border: 1px solid #BE2D2D;
    border-radius: 999px;
    background: linear-gradient(180deg, #FFF7F7 0%, #FEEBEC 100%);
    color: #9B1D1D;
    font-family: "Source Sans 3", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
  }

  .markup-rule-remove-button:hover {
    background: linear-gradient(180deg, #FFEDED 0%, #FBDADA 100%);
    box-shadow: 0 4px 10px rgba(139, 22, 22, 0.12);
    transform: translateY(-1px);
  }

  #add-markup-rule-row {
    padding: 0.58rem 1rem;
    border: 1px solid #1E7A46;
    border-radius: 999px;
    background: linear-gradient(180deg, #F1FBF5 0%, #E1F5E8 100%);
    color: #165A35;
    font-family: "Source Sans 3", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    width: auto;
    align-self: flex-start;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
  }

  #add-markup-rule-row:hover {
    background: linear-gradient(180deg, #EAF8F0 0%, #D5F0E0 100%);
    box-shadow: 0 5px 12px rgba(16, 86, 45, 0.14);
    transform: translateY(-1px);
  }

  .hvac-range-inputs {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 0.5rem;
    align-items: center;
  }

  .hvac-range-separator {
    color: #1B263B;
    font-size: 0.95rem;
    font-weight: 600;
    white-space: nowrap;
  }

  .job-client-inline {
    margin: 0;
    display: flex;
    align-items: baseline;
    gap: 0.35rem;
    padding: 0.3rem 0;
  }

  .job-client-label {
    color: #6B7280;
    font-size: 0.95rem;
    font-weight: 600;
    white-space: nowrap;
  }

  .job-client-name {
    color: #1B263B;
    font-size: 1.15rem;
    font-weight: 700;
  }

  .job-property-address-preview {
    padding: 0.65rem 0.75rem;
    border: 1px solid #D1D5DB;
    border-radius: 4px;
    background: #F8FAFC;
    color: #1F2937;
    font-size: 0.95rem;
    line-height: 1.65;
    white-space: pre-line;
  }

  .job-property-address-preview-name {
    display: inline;
    font-size: 1.05rem;
    font-weight: 700;
    color: #1B263B;
  }

  .job-property-info-block {
    gap: 0.5rem;
  }

  .job-property-add-button {
    width: fit-content;
    margin-top: 0.25rem;
  }

  .hvac-diagnostics-readonly-input:disabled {
    background: linear-gradient(180deg, #F2F4F7 0%, #E7EBF0 100%);
    border-color: #C7CED6;
    color: #6B7280;
    cursor: not-allowed;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
  }

  .hvac-diagnostics-readonly-input:disabled::placeholder {
    color: #9CA3AF;
  }

  #job-services-list {
    display: grid;
    gap: 1rem;
  }

  #job-materials-list {
    display: grid;
    gap: 1rem;
  }

  #job-discounts-list {
    display: grid;
    gap: 1rem;
  }

  .service-contextual-prompts {
    grid-column: 1 / -1;
    display: grid;
    gap: 0.65rem;
    margin-top: 0.35rem;
  }

  .contextual-prompt {
    border: 1px solid #D1D5DB;
    border-radius: 8px;
    background: #FFFFFF;
    overflow: hidden;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  }

  .contextual-prompt > summary {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin: 0;
    padding: 0.58rem 0.75rem;
    background: linear-gradient(180deg, #F8FAFC 0%, #EEF2F7 100%);
    color: #1B263B;
    font-size: 0.96rem;
    font-weight: 700;
    cursor: pointer;
  }

  .contextual-prompt > summary::-webkit-details-marker {
    display: none;
  }

  .contextual-prompt > summary::after {
    content: ">";
    font-size: 0.85rem;
    line-height: 1;
    color: #4B5563;
    transform: rotate(90deg);
    transition: transform 0.18s ease;
  }

  .contextual-prompt[open] > summary::after {
    transform: rotate(270deg);
  }

  .contextual-prompt > summary:focus-visible {
    outline: 2px solid #5FA3D3;
    outline-offset: -2px;
  }

  .contextual-prompt-items {
    display: grid;
    gap: 0.5rem;
    padding: 0.6rem 0.7rem 0.7rem;
    border-top: 1px solid #E5E7EB;
    background: #FFFFFF;
  }

  .contextual-prompt-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    padding: 0.45rem 0.55rem;
    border: 1px solid #D1D5DB;
    border-radius: 6px;
    background: #F9FBFD;
  }

  .contextual-prompt-item-name {
    color: #1F2937;
    font-size: 0.94rem;
    font-weight: 600;
    line-height: 1.3;
  }

  .contextual-prompt-item-add {
    flex-shrink: 0;
    min-width: 72px;
    padding: 0.4rem 0.75rem;
    border: 1px solid #1B263B;
    border-radius: 6px;
    background: #FFFFFF;
    color: #1B263B;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  }

  .contextual-prompt-item-add:hover {
    background: #F1F5F9;
  }

  .contextual-prompt-item-add:disabled {
    opacity: 0.55;
    cursor: not-allowed;
  }

  .service-sub-items {
    grid-column: 1 / -1;
    display: grid;
    gap: 0.55rem;
    margin-top: 0.35rem;
  }

  .service-sub-item-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.6rem 0.9rem;
    align-items: start;
    padding: 0.6rem 0.7rem;
    border: 1px solid #D1D5DB;
    border-radius: 8px;
    background: linear-gradient(180deg, #FFFFFF 0%, #F9FBFD 100%);
  }

  .service-sub-item-row.is-entering {
    animation: serviceSubItemIn 220ms cubic-bezier(0.22, 1, 0.36, 1);
  }

  @keyframes serviceSubItemIn {
    from {
      opacity: 0;
      transform: translateY(8px) scale(0.995);
    }
    to {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
  }

  .service-sub-item-name {
    color: #1F2937;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.35;
    align-self: center;
  }

  .service-sub-item-controls {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    justify-self: end;
  }

  .service-sub-item-price {
    width: 106px;
    min-height: 36px;
    padding: 0.45rem 0.55rem;
    border: 1px solid #C5C7CB;
    border-radius: 6px;
    background: #FFFFFF;
    color: #1B263B;
    font-size: 0.9rem;
    font-weight: 700;
    text-align: right;
  }

  .service-sub-item-price:focus {
    outline: 2px solid #5FA3D3;
    outline-offset: 1px;
    border-color: #5FA3D3;
  }

  .service-sub-item-included {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.5rem;
    border: 1px solid #7DBA98;
    border-radius: 999px;
    background: #E7F6EE;
    color: #18563A;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    white-space: nowrap;
  }

  .service-sub-item-remove {
    width: 32px;
    height: 32px;
    border: 1px solid #B91C1C;
    border-radius: 999px;
    background: #FEF2F2;
    color: #991B1B;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  }

  .service-sub-item-remove:hover {
    background: #FEE2E2;
    border-color: #991B1B;
  }

  .service-sub-item-remove:focus-visible {
    outline: 2px solid #5FA3D3;
    outline-offset: 2px;
  }

  .service-sub-item-serial-wrap {
    grid-column: 1 / -1;
    display: grid;
    gap: 0.35rem;
    padding-top: 0.15rem;
  }

  .service-sub-item-serial-wrap label {
    color: #4B5563;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
  }

  .service-sub-item-serial-wrap input {
    width: 100%;
    max-width: 260px;
    min-height: 38px;
    padding: 0.45rem 0.6rem;
    border: 1px solid #C5C7CB;
    border-radius: 6px;
    background: #FFFFFF;
    color: #1F2937;
  }

  .service-sub-item-serial-wrap input:focus {
    outline: 2px solid #5FA3D3;
    outline-offset: 1px;
    border-color: #5FA3D3;
  }

  .service-sub-item-hidden-inputs {
    display: none;
  }

  #create-job-form .standalone-items-toggle {
    margin: 1rem 0 0.85rem;
    border: 1px solid #C5C7CB;
    border-radius: 4px;
    background: #F8FAFC;
    overflow: hidden;
  }

  #create-job-form .standalone-items-toggle > summary {
    list-style: none;
    margin: 0;
    padding: 0.5rem 0.75rem;
    color: var(--kl-accent-contrast);
    font-size: 1.05rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--kl-header) 0%, var(--kl-header-soft) 100%);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
  }

  #create-job-form .standalone-items-toggle > summary::-webkit-details-marker {
    display: none;
  }

  #create-job-form .standalone-items-toggle > summary::after {
    content: ">";
    font-size: 0.95rem;
    line-height: 1;
    transform: rotate(90deg);
    transition: transform 0.18s ease;
  }

  #create-job-form .standalone-items-toggle[open] > summary::after {
    transform: rotate(270deg);
  }

  #create-job-form .standalone-items-toggle > summary:focus-visible {
    outline: 2px solid #5FA3D3;
    outline-offset: -2px;
  }

  #create-job-form .standalone-items-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    padding: 0.75rem;
    border-top: 1px solid #D1D5DB;
    background: #FFFFFF;
  }

  #job-standalone-items-list {
    display: grid;
    gap: 1rem;
    padding: 0 0.75rem 0.75rem;
    border-top: 1px solid #D1D5DB;
    background: #FFFFFF;
  }

  #job-standalone-items-list:empty {
    display: none;
  }

  #job-materials-list .job-material-row,
  #service-materials-list .service-material-row {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: start;
  }

  #job-materials-list .job-material-row .add-customer-form-field:nth-child(1),
  #service-materials-list .service-material-row .add-customer-form-field:nth-child(1) {
    grid-column: span 2;
  }

  #job-discounts-list .job-discount-row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: start;
  }

  #job-discounts-list .job-discount-row .add-customer-form-field:nth-child(1) {
    grid-column: span 2;
  }

  @media (max-width: 1280px) {
    #job-materials-list .job-material-row,
    #service-materials-list .service-material-row {
      grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    #job-materials-list .job-material-row .add-customer-form-field:nth-child(1),
    #service-materials-list .service-material-row .add-customer-form-field:nth-child(1) {
      grid-column: span 3;
    }

    #job-discounts-list .job-discount-row {
      grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    #job-discounts-list .job-discount-row .add-customer-form-field:nth-child(1) {
      grid-column: span 3;
    }
  }

  @media (max-width: 900px) {
    #job-materials-list .job-material-row,
    #service-materials-list .service-material-row {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    #job-materials-list .job-material-row .add-customer-form-field:nth-child(1),
    #service-materials-list .service-material-row .add-customer-form-field:nth-child(1) {
      grid-column: span 2;
    }

    #job-discounts-list .job-discount-row {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    #job-discounts-list .job-discount-row .add-customer-form-field:nth-child(1) {
      grid-column: span 2;
    }
  }

  @media (max-width: 640px) {
    #job-materials-list .job-material-row,
    #service-materials-list .service-material-row {
      grid-template-columns: 1fr;
    }

    #job-materials-list .job-material-row .add-customer-form-field:nth-child(1),
    #service-materials-list .service-material-row .add-customer-form-field:nth-child(1) {
      grid-column: auto;
    }

    #job-discounts-list .job-discount-row {
      grid-template-columns: 1fr;
    }

    #job-discounts-list .job-discount-row .add-customer-form-field:nth-child(1) {
      grid-column: auto;
    }

    .service-sub-item-row {
      grid-template-columns: 1fr;
    }

    .service-sub-item-controls {
      width: 100%;
      justify-self: stretch;
      justify-content: flex-start;
      flex-wrap: wrap;
    }

    .service-sub-item-price {
      width: 120px;
    }
  }

  #job-services-actions,
  #job-parts-actions,
  #job-labors-actions,
  #job-materials-actions,
  #job-equipments-actions,
  #job-discounts-actions,
  #service-parts-actions,
  #service-materials-actions {
    display: flex;
    justify-content: flex-start;
  }



  #create-job-form #job-date,
  #create-job-form #job-time {
    height: 44px;
  }


  #clear-date-time {
    margin-top: 0.5rem;
    align-self: start;
    padding: 0.45rem 0.75rem;
    border: 1px solid #9CA3AF;
    border-radius: 4px;
    background-color: #F8FAFC;
    color: #374151;
    font-family: "Source Sans 3", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  }

  #clear-date-time:hover {
    background-color: #FEE2E2;
    border-color: #EF4444;
    color: #991B1B;
  }

  #clear-date-time:focus {
    outline: 2px solid #5FA3D3;
    outline-offset: 1px;
  }

  #error-services {
    display: block;
    color: #D32F2F;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
    margin-top: -0.5rem;
  }

  #view-customer-panel {
    width: 100%;
    padding: 0 0.75rem 0.75rem;
    box-sizing: border-box;
  }

  #view-customer-panel h1 {
    margin: 0 -0.75rem 1rem;
    padding: 0.5rem 0.75rem;
    text-align: center;
    background: linear-gradient(135deg, var(--kl-header) 0%, var(--kl-header-soft) 100%);
    color: var(--kl-accent-contrast);
    font-family: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: 0.02em;
  }

  #view-customer-actions {
    border: 1px solid #C5C7CB;
    background-color: #FFFFFF;
    margin-bottom: 1rem;
  }

  #view-customer-actions-header {
    margin: 0;
    padding: 0.6rem 0.75rem;
    border-bottom: 1px solid #C5C7CB;
    background-color: var(--kl-accent-soft);
    color: var(--kl-text);
    font-size: 1.05rem;
    font-weight: 700;
  }

  #view-customer-actions-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    padding: 0.75rem;
  }

  #view-customer-actions-note {
    margin: 0 0.75rem 0.75rem;
    color: #7C2D12;
    font-size: 0.875rem;
  }

  #view-customer-actions-row .view-customer-action-link.is-disabled {
    background-color: #C5C7CB;
    border-color: #C5C7CB;
    color: #F8F9FA;
    cursor: not-allowed;
    opacity: 0.7;
  }

  #view-customer-actions-row form {
    margin: 0;
    padding: 0;
    display: inline;
  }

  #view-customer-actions-row button {
    display: inline-block;
    padding: 0.55rem 0.95rem;
    border: 1px solid #1B263B;
    border-radius: 4px;
    background-color: #1B263B;
    color: #F8F9FA;
    font-weight: 600;
    font-family: inherit;
    font-size: inherit;
    cursor: pointer;
  }

  #view-customer-actions-row a:hover,
  #view-customer-actions-row button:hover {
    background-color: #27364F;
    border-color: #27364F;
  }

  #view-customer-actions-row .view-customer-action-link.is-disabled:hover {
    background-color: #C5C7CB;
    border-color: #C5C7CB;
  }

  #view-customer-details {
    margin-top: 0.5rem;
  }

  #view-customer-details > h2 {
    margin: 0 0 0.75rem;
    color: var(--kl-header-soft);
  }

  #view-profile-details-columns {
    grid-template-columns: 1fr;
  }

  #view-profile-details-columns .view-customer-section-column:first-child {
    border-right: 0;
  }

  #view-employee-details-columns {
    grid-template-columns: 1fr;
  }

  #view-employee-details-columns .view-customer-section-column:first-child {
    border-right: 0;
  }

  #view-equipment-details-columns {
    grid-template-columns: 1fr;
  }

  #view-equipment-details-columns .view-customer-section-column:first-child {
    border-right: 0;
  }

  #view-hvac-reports-columns {
    grid-template-columns: 1fr;
  }

  #view-hvac-reports-columns .view-customer-section-column:first-child {
    border-right: 0;
  }

  #view-hvac-components-columns {
    grid-template-columns: 1fr;
  }

  #view-hvac-components-columns .view-customer-section-column:first-child {
    border-right: 0;
  }

  #view-hvac-diagnostics-reports-columns {
    grid-template-columns: 1fr 1fr;
  }

  #view-hvac-diagnostic-columns,
  #view-hvac-diagnostic-sections-columns {
    grid-template-columns: 1fr;
  }

  #view-hvac-diagnostic-columns .view-customer-section-column:first-child,
  #view-hvac-diagnostic-sections-columns .view-customer-section-column:first-child {
    border-right: 0;
  }

  #view-customer-account-columns {
    margin-top: 1rem;
  }

  #view-customer-estimates-columns {
    grid-template-columns: 1fr 1fr 1fr;
  }

  #view-customer-estimates-columns .view-customer-section-column {
    border-right: 1px solid #F8F9FA;
  }

  #view-customer-estimates-columns .view-customer-section-column:last-child {
    border-right: 0;
  }

  #view-customer-details-list,
  #view-customer-account-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.9rem;
    padding: 0.25rem 0;
  }

  .view-customer-card-link,
  .view-customer-estimate-item {
    display: block;
    padding: 0.5rem 0.75rem;
    border: 1px solid #C5C7CB;
    background-color: #FFFFFF;
    color: inherit;
    text-decoration: none;
    transition: background-color 0.2s ease, border-color 0.2s ease;
  }

  .view-customer-card-link h4,
  .view-customer-estimate-item h4 {
    margin: 0 0 0.2rem;
    color: #1B263B;
    font-size: 1rem;
    font-weight: 700;
  }

  .view-customer-card-link p,
  .view-customer-estimate-item p {
    margin: 0;
    color: #1B263B;
    font-size: 1rem;
  }

  #view-customer-notes-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  #view-customer-internal-notes-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }

  /* System Photos */
  #view-hvac-photos {
    margin-top: 1rem;
  }

  @media (max-width: 640px) {
    #view-hvac-diagnostics-reports-columns {
      grid-template-columns: 1fr;
    }

    .hvac-generate-report-button {
      width: 100%;
      min-width: 0;
    }
  }

  .hvac-generate-report-form {
    margin: 0;
    display: inline-flex;
    align-items: stretch;
  }

  .hvac-generate-report-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-width: 56px;
    padding: 0.5rem 0.85rem;
    border: 1px solid #1F6B35;
    border-radius: 4px;
    background-color: #EAF6EE;
    color: #1F6B35;
    text-decoration: none;
    font-weight: 700;
    cursor: pointer;
  }

  .hvac-generate-report-button:hover {
    background-color: #DDF5E3;
  }

  #view-equipment-parts-list {
    margin-top: 0.25rem;
  }

  .equipment-part-card-row {
    display: flex;
    align-items: stretch;
    gap: 0.5rem;
  }

  .equipment-part-card-link {
    flex: 1;
  }

  .equipment-part-buy-button {
    flex-shrink: 0;
  }

  .view-customer-card-link:not(.view-customer-hvac-card):hover,
  .view-customer-estimate-item:hover {
    background: linear-gradient(180deg, #FFFFFF 0%, #F5F9FD 100%);
    border-color: #B7C7DA;
  }

  #view-job-panel {
    width: 100%;
    padding: 0 0.75rem 0.75rem;
    box-sizing: border-box;
  }

  #view-job-panel h1 {
    margin: 0 -0.75rem 1rem;
    padding: 0.5rem 0.75rem;
    text-align: center;
    background: linear-gradient(135deg, var(--kl-header) 0%, var(--kl-header-soft) 100%);
    color: var(--kl-accent-contrast);
    font-family: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: 0.02em;
  }

  #view-job-actions {
    border: 1px solid #C5C7CB;
    background-color: #FFFFFF;
    margin-bottom: 1rem;
  }

  #view-job-actions-header {
    margin: 0;
    padding: 0.6rem 0.75rem;
    border-bottom: 1px solid #C5C7CB;
    background-color: var(--kl-accent-soft);
    color: var(--kl-text);
    font-size: 1.05rem;
    font-weight: 700;
  }

  #view-job-actions-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    padding: 0.75rem;
  }

  #view-job-actions-row a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 0.95rem;
    border: 1px solid #1B263B;
    border-radius: 4px;
    background-color: #1B263B;
    color: #F8F9FA;
    text-decoration: none;
    font-weight: 600;
  }

  #view-job-actions-row a:hover {
    background-color: #27364F;
    border-color: #27364F;
  }

  #view-job-actions-row form {
    margin: 0;
    padding: 0;
    display: inline;
  }

  #view-job-actions-row button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 0.95rem;
    border: 1px solid #1B263B;
    border-radius: 4px;
    background-color: #1B263B;
    color: #F8F9FA;
    font-weight: 600;
    font-family: inherit;
    font-size: inherit;
    cursor: pointer;
  }

  #view-job-actions-row button:hover {
    background-color: #27364F;
    border-color: #27364F;
  }

  .view-job-action-blocked {
    display: inline-block;
    padding: 0.55rem 0.95rem;
    border: 1px solid var(--kl-border);
    border-radius: 4px;
    background-color: #edf0f3;
    color: var(--kl-text-muted);
    font-weight: 600;
    font-family: inherit;
    font-size: inherit;
    cursor: not-allowed;
    opacity: 0.6;
  }

  #home-job-action-button--blocked,
  .home-job-action-button--blocked {
    cursor: not-allowed;
    opacity: 0.55;
  }

  #view-job-details {
    margin-top: 0.5rem;
  }

  #view-job-details > h2 {
    margin: 0 0 0.75rem;
    color: var(--kl-header-soft);
  }

  .view-job-section-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-top: 1px solid #808080;
    width: 100%;
    box-sizing: border-box;
  }

  .view-job-section-row--full {
    grid-template-columns: 1fr;
  }

  .view-job-section-row--full .view-job-section-column:first-child {
    border-right: 0;
  }

  .view-job-section-column {
    padding: 0 0.75rem 0.75rem;
    box-sizing: border-box;
    min-width: 0;
  }

  .view-job-section-column:first-child {
    border-right: 1px solid #F8F9FA;
  }

  .view-job-section-column > h3 {
    text-align: center;
    background: linear-gradient(135deg, var(--kl-header) 0%, var(--kl-header-soft) 100%);
    color: var(--kl-accent-contrast);
    margin: 0 -0.75rem 0.75rem;
    padding: 0.5rem 0.75rem;
  }

  #view-job-details-list,
  #view-job-location-list,
  #view-job-notes-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.9rem;
    padding: 0.25rem 0;
  }

  #view-job-notes-list {
    grid-template-columns: 1fr;
  }

  #view-job-services-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .view-job-detail-item {
    padding: 0;
  }

  .view-job-detail-item h4 {
    margin: 0 0 0.2rem;
    color: #1B263B;
    font-size: 1rem;
    font-weight: 700;
  }

  .view-job-detail-item p {
    margin: 0;
    color: #1B263B;
    font-size: 1.25rem;
  }

  #view-service-panel {
    width: 100%;
    padding: 0 0.75rem 0.75rem;
    box-sizing: border-box;
  }

  #view-service-panel h1 {
    margin: 0 -0.75rem 1rem;
    padding: 0.5rem 0.75rem;
    text-align: center;
    background: linear-gradient(135deg, var(--kl-header) 0%, var(--kl-header-soft) 100%);
    color: var(--kl-accent-contrast);
    font-family: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: 0.02em;
  }

  #view-service-actions {
    border: 1px solid #C5C7CB;
    background-color: #FFFFFF;
    margin-bottom: 1rem;
  }

  #view-service-actions-header {
    margin: 0;
    padding: 0.6rem 0.75rem;
    border-bottom: 1px solid #C5C7CB;
    background-color: var(--kl-accent-soft);
    color: var(--kl-text);
    font-size: 1.05rem;
    font-weight: 700;
  }

  #view-service-actions-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    padding: 0.75rem;
  }

  #view-service-actions-row a {
    display: inline-block;
    padding: 0.55rem 0.95rem;
    border: 1px solid #1B263B;
    border-radius: 4px;
    background-color: #1B263B;
    color: #F8F9FA;
    text-decoration: none;
    font-weight: 600;
  }

  #view-service-actions-row a:hover {
    background-color: #27364F;
    border-color: #27364F;
  }

  #view-service-actions-row form {
    margin: 0;
  }

  #view-service-actions-row button {
    display: inline-block;
    padding: 0.55rem 0.95rem;
    border: 1px solid #1B263B;
    border-radius: 4px;
    background-color: #1B263B;
    color: #F8F9FA;
    font-family: "Source Sans 3", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
  }

  #view-service-actions-row button:hover {
    background-color: #27364F;
    border-color: #27364F;
  }

  #view-service-details {
    margin-top: 0.5rem;
  }

  #view-service-parts {
    margin-top: 1.25rem;
  }

  #view-service-parts > h2 {
    margin: 0 0 0.75rem;
    color: var(--kl-header-soft);
  }

  #view-service-parts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
  }

  #view-service-details > h2 {
    margin: 0 0 0.75rem;
    color: var(--kl-header-soft);
  }

  #view-service-details-content {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
    padding: 1rem;
    border: 1px solid #C5C7CB;
    background-color: #FFFFFF;
  }

  #view-service-associated-categories {
    margin-top: 1.25rem;
  }

  #view-service-associated-categories > h2 {
    margin: 0 0 0.75rem;
    color: var(--kl-header-soft);
  }

  #view-service-associated-categories-content {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
    padding: 1rem;
    border: 1px solid #C5C7CB;
    background-color: #FFFFFF;
  }

  .view-service-detail-item {
    padding: 0;
    min-width: 0;
  }

  .view-service-detail-item h4 {
    margin: 0 0 0.2rem;
    color: #1B263B;
    font-size: 1rem;
    font-weight: 700;
  }

  .view-service-detail-item p {
    margin: 0;
    color: #1B263B;
    font-size: 1.25rem;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .view-service-detail-item a {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  @media (max-width: 768px) {
    .view-customer-section-row {
      grid-template-columns: 1fr;
    }

    #view-customer-details-columns,
    #view-customer-estimates-columns,
    #view-customer-account-columns {
      grid-template-columns: 1fr;
    }

    .view-customer-section-column {
      min-width: 0;
    }

    .view-customer-card-link,
    .view-customer-estimate-item,
    .view-customer-detail-item h4,
    .view-customer-detail-item p,
    .view-customer-card-link h4,
    .view-customer-card-link p,
    .view-customer-estimate-item h4,
    .view-customer-estimate-item p {
      overflow-wrap: anywhere;
      word-break: break-word;
    }

    #view-customer-estimates-columns .view-customer-section-column {
      border-right: 0;
      border-bottom: 1px solid #F8F9FA;
    }

    #view-customer-estimates-columns .view-customer-section-column:last-child {
      border-bottom: 0;
    }

    #view-customer-details-list {
      grid-template-columns: 1fr;
    }

    .view-customer-section-column:first-child {
      border-right: 0;
      border-bottom: 1px solid #F8F9FA;
    }

    .view-job-section-row {
      grid-template-columns: 1fr;
    }

    #view-job-details-list {
      grid-template-columns: 1fr;
    }

    #view-job-location-list {
      grid-template-columns: 1fr;
    }

    #view-job-services-list {
      flex-direction: column;
    }

    #view-job-notes-list {
      grid-template-columns: 1fr;
    }

    .view-job-section-column:first-child {
      border-right: 0;
      border-bottom: 1px solid #F8F9FA;
    }

    #view-service-details-content {
      grid-template-columns: 1fr;
    }

    #view-service-associated-categories-content {
      grid-template-columns: 1fr;
    }
  }

  @media (max-width: 900px) {
    #header-container {
      width: 90vw;
      grid-template-columns: 1fr auto auto;
      grid-template-areas:
        "brand toggle login"
        "servicecall servicecall servicecall"
        "business business business"
        "nav nav nav";
      column-gap: 0.75rem;
      justify-content: normal;
      padding: 0.75rem 0;
    }

    #header-container h1 {
      grid-area: brand;
    }

    #header-container .header-service-call-btn {
      grid-area: servicecall;
      display: flex;
      justify-self: stretch;
      justify-content: center;
      margin: 0.75rem 0.5rem;
    }

    #mobile-nav-toggle {
      display: inline-block;
      grid-area: toggle;
      justify-self: end;
    }

    #header-business-name {
      width: 100%;
      max-width: none;
      margin-top: 0.2rem;
      font-size: 1.25rem;
      white-space: normal;
      overflow: visible;
      text-overflow: unset;
      text-align: center;
    }

    #header-user-controls {
      grid-area: login;
      justify-self: end;
      margin-left: 0.5rem;
    }

    #employee-greeting-link span {
      display: none;
    }

    #app-nav-toggle {
      display: inline-flex;
    }

    #header-navigation {
      display: none;
      grid-area: nav;
      justify-self: stretch;
      margin-top: 0.75rem;
      padding-top: 0.75rem;
      border-top: 1px solid rgba(248, 249, 250, 0.2);
    }

    #header-navigation.is-open {
      display: block;
    }

    #header-nav {
      flex-direction: column;
      align-items: flex-start;
      gap: 0.75rem;
    }

    #header-nav li:not(:last-child)::after {
      content: none;
    }

    #header-nav a {
      display: block;
      padding: 0.2rem 0;
    }

    .home-scheduling-row {
      grid-template-columns: 1fr;
    }

    #home-latest-row {
      grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    }

    #customers-controls-row {
      grid-template-columns: 1fr;
      align-items: start;
    }

    #jobs-controls-row {
      grid-template-columns: 1fr;
    }

    .jobs-controls-right-top {
      flex-direction: column;
      align-items: flex-start;
    }

    .jobs-controls-right-actions {
      width: 100%;
      justify-content: flex-start;
      flex-wrap: wrap;
    }

    .jobs-controls-right-actions select {
      min-width: 0;
      width: 100%;
      max-width: 340px;
    }

    .customers-controls-right-top {
      flex-direction: column;
      align-items: flex-start;
    }

    .customers-controls-right-actions {
      width: 100%;
      display: flex;
      flex-wrap: wrap;
      gap: 0.5rem;
      justify-content: flex-start;
    }

    .customers-controls-right-actions a {
      flex: 1 1 120px;
      text-align: center;
      box-sizing: border-box;
    }

    .jobs-compact-list .jobs-card-row--status .jobs-status-chip,
    .estimates-compact-list .jobs-card-row--status .jobs-status-chip {
      justify-self: start;
    }

    .customers-results-search {
      width: 100%;
    }

    .add-customer-form-row {
      grid-template-columns: 1fr;
    }

    .add-customer-form-row--single {
      max-width: none;
    }

    #add-customer-form-actions,
    #create-job-form-actions,
    #create-service-form-actions {
      justify-content: flex-start;
    }
  }

  @media (max-width: 768px) {
    #header-container,
    #main-container,
    #footer-container {
      width: 95%;
      box-sizing: border-box;
    }

    #home-jobs-pages,
    #home-estimates-pages,
    #home-payments-pages,
    .list-pages {
      gap: 0.10rem;
    }

    #home-jobs-pages a,
    #home-estimates-pages a,
    #home-payments-pages a,
    .list-pages a {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-width: 1.85rem;
      padding: 0.2rem 0.35rem;
      font-size: 1.05rem;
      border-radius: 4px;
    }

  }

  .customers-add-button,
  .customers-controls-right a,
  #add-job-service-button,
  #add-job-part-button,
  #add-job-labor-button,
  #add-job-material-button,
  #add-job-discount-button,
  #jobs-clear-date-filters,
  .home-latest-action-link {
    border-color: var(--kl-border);
    background: linear-gradient(180deg, var(--kl-surface) 0%, var(--kl-surface-soft) 100%);
    color: var(--kl-text);
  }

  .resource-subscription #view-customer-actions-row a.home-latest-action-link {
    border-color: var(--kl-border);
    background: linear-gradient(180deg, var(--kl-surface) 0%, var(--kl-surface-soft) 100%);
    color: var(--kl-text);
  }

  .customers-add-button:hover,
  .customers-controls-right a:hover,
  #add-job-service-button:hover,
  #add-job-part-button:hover,
  #add-job-labor-button:hover,
  #add-job-material-button:hover,
  #add-job-discount-button:hover,
  #jobs-clear-date-filters:hover,
  .home-latest-action-link:hover {
    border-color: var(--kl-border-strong);
    background: linear-gradient(180deg, var(--kl-surface) 0%, var(--kl-surface-softer) 100%);
    color: var(--kl-accent-strong);
  }

  .resource-subscription #view-customer-actions-row a.home-latest-action-link:hover {
    border-color: var(--kl-border-strong);
    background: linear-gradient(180deg, var(--kl-surface) 0%, var(--kl-surface-softer) 100%);
    color: var(--kl-accent-strong);
  }

  .home-call-mobile-button,
  .estimate-email-btn,
  .hvac-generate-report-button {
    border-color: #227241;
    background: linear-gradient(180deg, #F0FAF4 0%, #E0F4E8 100%);
    color: #1C6238;
  }

  .home-call-mobile-button:hover,
  .estimate-email-btn:hover,
  .hvac-generate-report-button:hover {
    border-color: #1F6B35;
    background: linear-gradient(180deg, #E9F8EF 0%, #D7F0E0 100%);
  }

  .job-row-remove-button {
    border-color: #C73737;
    background: linear-gradient(180deg, #FFF4F4 0%, #FEEAEA 100%);
    color: #9B1D1D;
  }

  .job-row-remove-button:hover {
    border-color: #B91C1C;
    background: linear-gradient(180deg, #FEEEEE 0%, #FDE2E2 100%);
    color: #8E1A1A;
  }

  #view-customer-actions-row .view-customer-action-link.is-disabled,
  #view-customer-actions-row .view-customer-action-link.is-disabled:hover {
    box-shadow: none;
    transform: none;
  }

  @media (max-width: 768px) {
    #view-customer-actions-row,
    #view-job-actions-row,
    #view-service-actions-row {
      gap: 0.5rem;
    }

    #view-customer-actions-row form,
    #view-job-actions-row form,
    #view-service-actions-row form {
      display: block;
      flex: 1 1 calc(50% - 0.5rem);
      min-width: 0;
    }

    #view-customer-actions-row a,
    #view-customer-actions-row button,
    #view-job-actions-row a,
    #view-job-actions-row button,
    #view-service-actions-row a,
    #view-service-actions-row button {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 100%;
      padding: 0.55rem 0.75rem;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    #customers-search-form button,
    .jobs-controls-right-actions button,
    .jobs-controls-right-actions a,
    .customers-controls-right a {
      min-height: 2.5rem;
      white-space: nowrap;
    }
  }

  @media (max-width: 540px) {
    #breadcrumb {
      font-size: 0.84rem;
      line-height: 1.25;
    }

    #breadcrumb ol {
      flex-wrap: wrap;
      align-items: center;
      row-gap: 0.3rem;
    }

    #breadcrumb li {
      display: inline-flex;
      align-items: center;
      white-space: nowrap;
      min-width: 0;
    }

    #breadcrumb li + li::before {
      margin: 0 0.35rem;
      line-height: 1;
    }

    #breadcrumb a,
    #breadcrumb li[aria-current="page"] {
      display: inline-block;
      line-height: 1.2;
    }

    #view-customer-actions-row form,
    #view-job-actions-row form,
    #view-service-actions-row form {
      flex-basis: 100%;
    }

    .customers-controls-right,
    .jobs-controls-right-actions {
      width: 100%;
      gap: 0.5rem;
    }

    #customers-search-form button,
    .jobs-controls-right-actions button,
    .jobs-controls-right-actions a,
    .customers-controls-right a {
      width: 100%;
    }
  }

  #business-logo-section {
    margin-top: 1.25rem;
  }

  #business-tax-config-section {
    margin-top: 1.25rem;
  }

  #business-tax-config-section > h3 {
    text-align: center;
    background: linear-gradient(135deg, var(--kl-header) 0%, var(--kl-header-soft) 100%);
    color: var(--kl-accent-contrast);
    margin: 0 -0.75rem 0.75rem;
    padding: 0.5rem 0.75rem;
  }

  .business-tax-config-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.9rem;
    padding: 0.25rem 0;
  }

  @media (max-width: 1200px) {
    .business-tax-config-list {
      grid-template-columns: repeat(3, minmax(0, 1fr));
    }
  }

  @media (max-width: 900px) {
    .business-tax-config-list {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
  }

  @media (max-width: 640px) {
    .business-tax-config-list {
      grid-template-columns: 1fr;
    }
  }

  .business-logo-status {
    margin: 0.5rem 0;
    padding: 0.6rem 0.8rem;
    border-radius: 8px;
    font-weight: 600;
  }

  .business-logo-status.is-success {
    color: #1f6b35;
    background-color: #eaf6ee;
    border: 1px solid #b9debf;
  }

  .business-logo-status.is-error {
    color: #9f1239;
    background-color: #fff1f2;
    border: 1px solid #fecdd3;
  }

  .business-logo-placeholder {
    margin: 0;
    padding: 1rem 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    text-align: center;
    color: #5b6473;
    border: 2px dashed #b8c1cc;
    border-radius: 12px;
    background: #eef1f4;
    box-shadow: none;
  }

  .business-logo-placeholder-icon {
    color: #7b8696;
    font-size: 1rem;
  }

  .business-logo-note {
    margin: 0.55rem 0 0;
    color: #56657a;
    font-size: 0.9rem;
  }

  .business-logo-preview-shell {
    margin: 0;
    padding: 0.85rem;
    border: 1px solid #d8e0ea;
    border-radius: 12px;
    background: linear-gradient(180deg, #ffffff 0%, #f7fafc 100%);
    box-shadow: 0 4px 12px rgba(16, 33, 55, 0.06);
    text-align: center;
  }

  .business-logo-preview-image {
    max-width: 100%;
    max-height: 140px;
    width: auto;
    height: auto;
  }

  .business-logo-upload-form {
    margin-top: 0.85rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    align-items: stretch;
  }

  .business-logo-upload-input {
    flex: 1 1 320px;
    min-height: 44px;
    padding: 0.35rem;
    border: 1px solid #c7cfda;
    border-radius: 10px;
    background-color: #ffffff;
    color: #1f2937;
    box-sizing: border-box;
  }

  .business-logo-upload-input::file-selector-button {
    margin-right: 0.65rem;
    padding: 0.52rem 0.9rem 0.52rem 2.05rem;
    border: 1px solid var(--kl-accent-strong);
    border-radius: 8px;
    background-color: var(--kl-accent-strong);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23f8f9fa' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 16V4'/%3E%3Cpath d='m7 9 5-5 5 5'/%3E%3Cpath d='M20 16.5a4.5 4.5 0 0 1-4.5 4.5h-7A4.5 4.5 0 0 1 4 16.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 0.72rem center;
    color: #f8f9fa;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
  }

  .business-logo-upload-input::-webkit-file-upload-button {
    margin-right: 0.65rem;
    padding: 0.52rem 0.9rem 0.52rem 2.05rem;
    border: 1px solid var(--kl-accent-strong);
    border-radius: 8px;
    background-color: var(--kl-accent-strong);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23f8f9fa' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 16V4'/%3E%3Cpath d='m7 9 5-5 5 5'/%3E%3Cpath d='M20 16.5a4.5 4.5 0 0 1-4.5 4.5h-7A4.5 4.5 0 0 1 4 16.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 0.72rem center;
    color: #f8f9fa;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
  }

  .business-logo-upload-input:hover::file-selector-button,
  .business-logo-upload-input:hover::-webkit-file-upload-button {
    background-color: var(--kl-accent);
    border-color: var(--kl-accent);
  }

  .business-logo-upload-button {
    flex: 0 0 auto;
    min-height: 44px;
    padding: 0.55rem 1rem 0.55rem 2.1rem;
    border: 1px solid var(--kl-accent-strong);
    border-radius: 8px;
    background-color: var(--kl-accent-strong);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23f8f9fa' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 16V4'/%3E%3Cpath d='m7 9 5-5 5 5'/%3E%3Cpath d='M20 16.5a4.5 4.5 0 0 1-4.5 4.5h-7A4.5 4.5 0 0 1 4 16.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 0.72rem center;
    color: #f8f9fa;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
  }

  .business-logo-upload-button:hover {
    background-color: var(--kl-accent);
    border-color: var(--kl-accent);
  }

  @media (max-width: 640px) {
    .business-logo-upload-form {
      flex-direction: column;
      align-items: stretch;
    }

    .business-logo-upload-input,
    .business-logo-upload-button {
      width: 100%;
      max-width: 100%;
    }

    .business-logo-upload-input::file-selector-button,
    .business-logo-upload-input::-webkit-file-upload-button {
      width: 100%;
      margin-right: 0;
      margin-bottom: 0.45rem;
    }
  }

.job-hvac-picker {
  grid-column: 1 / -1;
  margin-top: 0.35rem;
}

.job-hvac-picker-input {
  display: none;
}

.job-hvac-picker-pills {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.4rem;
  margin-top: 0.2rem;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 0.25rem;
}

.job-hvac-chip {
  flex: 0 0 auto;
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid #C5C7CB;
  border-radius: 999px;
  background: #FFFFFF;
  color: #1B263B;
  font-family: "Source Sans 3", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.2;
  padding: 0.38rem 0.72rem;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.job-hvac-chip:hover {
  background: #F3F6FA;
  border-color: #AAB5C2;
}

.job-hvac-chip.is-selected {
  background: var(--kl-header);
  border-color: var(--kl-header);
  color: var(--kl-accent-contrast);
}

.job-hvac-picker-empty {
  margin: 0;
  font-size: 0.9rem;
  color: #6B7280;
}

/* --- MOBILE         (≤ 540px) --- */
@media (max-width: 540px) {
  .rev-kpi-row {
      grid-template-columns: 1fr;
    }
}

/* --- MOBILE         (≤ 520px) --- */
@media (max-width: 520px) {
  .reporting-kpi-row {
      grid-template-columns: minmax(0, 1fr);
    }

    .reporting-chart {
      height: 180px;
    }

    .reporting-kpi-row--two-column {
      grid-template-columns: minmax(0, 1fr);
    }

    .reporting-kpi-row--four-column {
      grid-template-columns: minmax(0, 1fr);
    }

    .reporting-jobs-pagination {
      flex-direction: column;
      align-items: stretch;
    }

    .reporting-jobs-pagination-links {
      justify-content: flex-start;
    }

    .reporting-day-label {
      font-size: 13px;
    }

    .reporting-day-label-hide-sm {
      display: none;
    }

    .reporting-axis-label-x,
    .reporting-axis-label-y {
      font-size: 14px;
    }

    .reporting-axis-title-x,
    .reporting-axis-title-y {
      font-size: 15px;
    }
}

/* --- MOBILE SMALL   (≤ 420px) --- */
@media (max-width: 420px) {
  .reporting-day-label {
      font-size: 12px;
    }

    .reporting-day-label-alt {
      display: none;
    }

    .reporting-axis-label-x,
    .reporting-axis-label-y {
      font-size: 13px;
    }

    .reporting-axis-title-x,
    .reporting-axis-title-y {
      font-size: 14px;
    }
}


/* -- Sub-Properties ------------------------------------------------------- */

.sub-properties-tools-section {
  margin-bottom: 1rem;
}

.sub-properties-tools-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sub-properties-actions-divider {
  border: 0;
  border-top: 1px solid #d1d5db;
  margin: 1rem 0;
}

.sub-properties-tools-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
  margin-top: 1.2rem;
}

.sub-properties-primary-btn {
  padding: 0.65rem 1.1rem;
  border: 1px solid #1B263B;
  border-radius: 4px;
  background-color: #1B263B;
  color: #F8F9FA;
  font-family: "Source Sans 3", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}

.sub-properties-primary-btn:hover {
  background-color: #27364F;
  border-color: #27364F;
}

.sub-properties-action-row {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.6rem;
  margin: 1rem 0;
}

.sub-properties-action-link {
  display: inline-block;
  padding: 0.5rem 1.2rem;
  border-radius: 4px;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
}

.sub-properties-action-link--secondary {
  background: transparent;
  color: #374151;
  border-color: #d1d5db;
}

.sub-properties-action-link--secondary:hover {
  background: #f3f4f6;
}

.sub-properties-same-address-field {
  display: flex;
  flex-direction: row !important;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.4rem;
  margin-top: 1.8rem;
}

.sub-properties-same-address-field label {
  margin: 0;
}

.sub-properties-checkbox {
  width: 1.25rem;
  height: 1.25rem;
  cursor: pointer;
}

.sub-properties-hvac-preview {
  margin-top: 1.5rem;
}

.sub-properties-section-title {
  margin: 0 0 0.75rem;
  padding: 0.45rem 0.75rem;
  background: var(--kl-header);
  border: 1px solid var(--kl-header-soft);
  border-radius: 4px;
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 700;
}

#sub-properties-list-title {
  margin-top: 1.25rem;
}

.sub-properties-hvac-type {
  font-size: 1rem;
  font-weight: 600;
  margin: 0.25rem 0;
}

.sub-properties-hvac-note {
  font-size: 0.875rem;
  color: #6b7280;
  margin: 0;
}

/* Sub-property generated rows */

.sub-property-row {
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
  background: #f9fafb;
}

.sub-property-row-header {
  margin-bottom: 0.75rem;
}

.sub-property-unit-label {
  font-weight: 600;
  font-size: 1rem;
  color: #111827;
}

/* Default HVAC form actions row */

.default-hvac-form-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.default-hvac-form-actions .btn-secondary {
  display: inline-block;
  padding: 0.5rem 1.2rem;
  background: transparent;
  color: #374151;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
}

.default-hvac-form-actions .btn-secondary:hover {
  background: #f3f4f6;
}

@media (max-width: 768px) {
  .sub-properties-tools-row {
    grid-template-columns: 1fr;
  }

  .sub-properties-same-address-field {
    margin-top: 0;
  }
}

/* Customers list card redesign */
.resource-customers .customer-card {
  display: flex;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0;
  position: relative;
  z-index: 1;
  overflow: visible;
  border: 1px solid #2f5a4a;
  border-top: 3px solid #00A86B;
  border-radius: 0;
  background: #1D3329;
  color: #F2F5F3;
}

.resource-customers .customer-card:has(.customer-card-actions-menu-wrapper[open]),
.resource-customers .customer-card.is-actions-open {
  z-index: 120;
}

.resource-customers .customer-card:hover {
  cursor: pointer;
  background: #244236;
  border-color: #3a6553;
}

.resource-customers .customer-card-row,
.resource-customers .customer-card-column {
  flex: 0 0 auto;
  width: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.18rem;
  padding: 0 0.75rem;
  border-right: 1px solid #2f5a4a;
  min-width: 0;
}

.resource-customers .customer-card-row:first-child,
.resource-customers .customer-card-column:first-child {
  padding-left: 0;
}

.resource-customers .customer-card-row:last-child,
.resource-customers .customer-card-column:last-child {
  padding-right: 0;
  border-right: 0;
}

.resource-customers .customer-card-label {
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: #B2C0B9;
  text-align: center;
}

.resource-customers .customer-card-value {
  text-align: center;
  font-size: 0.92rem;
  color: #F2F5F3;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  max-width: none;
}

.resource-customers .customer-card-value--name {
  color: #F2F5F3;
  font-size: 1rem;
  font-weight: 600;
}

.resource-customers .customer-card-value--name-link {
  text-decoration: none;
}

.resource-customers .customer-card-value--name-link:hover {
  text-decoration: underline;
}

.resource-customers .customer-card-value--company,
.resource-customers .customer-card-value--email,
.resource-customers .customer-card-value--address-locality {
  color: #B2C0B9;
}

.resource-customers .customer-card-value--company {
  color: #8C9A93;
  font-size: 0.85rem;
}

.resource-customers .customer-card-value--phone {
  color: #B2C0B9;
  font-weight: 500;
}

.resource-customers .customer-card-value--email {
  color: #8C9A93;
  font-size: 0.85rem;
}

.resource-customers .customer-card-value--address-line1,
.resource-customers .customer-card-value--address-line2 {
  color: #B2C0B9;
  font-weight: 400;
}

.resource-customers .customer-card-value--address-locality {
  color: #8C9A93;
  font-size: 0.85rem;
}

.resource-customers .customer-card-value--type,
.resource-customers .customer-card-value--balance,
.resource-customers .customer-card-value--properties {
  color: #B2C0B9;
  font-weight: 500;
}

.resource-customers .customer-card-column--name-only {
  justify-content: center;
}

.resource-customers .customer-card-value--status {
  margin-top: 0.1rem;
}

.resource-customers .customer-card-column--actions {
  min-width: 72px;
  position: relative;
  overflow: visible;
}

.resource-customers .customer-card-column--balance {
  margin-left: auto;
}

.resource-customers .customer-card-column--balance,
.resource-customers .customer-card-column--properties,
.resource-customers .customer-card-column--actions {
  align-items: flex-end;
}

.resource-customers .customer-card-column--balance .customer-card-label,
.resource-customers .customer-card-column--balance .customer-card-value,
.resource-customers .customer-card-column--properties .customer-card-label,
.resource-customers .customer-card-column--properties .customer-card-value,
.resource-customers .customer-card-column--actions .customer-card-label {
  text-align: right;
}

.resource-customers .customer-card-actions-menu-wrapper {
  position: relative;
}

.resource-customers .customer-card-actions-menu-wrapper[open] {
  z-index: 60;
}

.resource-customers .customer-card-actions-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.8rem;
  min-height: 1.6rem;
  padding: 0.1rem 0.35rem;
  border: 1px solid #2f5a4a;
  list-style: none;
  cursor: pointer;
  background: #253E33;
  color: #B2C0B9;
  font-size: 1.25rem;
  line-height: 1;
  user-select: none;
}

.resource-customers .customer-card-actions-trigger:hover {
  background: #2d4b3f;
  color: #F2F5F3;
}

.resource-customers .customer-card-actions-trigger::-webkit-details-marker {
  display: none;
}

.resource-customers .customer-card-actions-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 0.3rem);
  z-index: 80;
  min-width: 130px;
  display: grid;
  gap: 0;
  padding: 0;
  border: 1px solid #2f5a4a;
  background: #244236;
}

.resource-customers .customer-card-action-item {
  display: block;
  width: 100%;
  padding: 0.5rem 0.55rem;
  box-sizing: border-box;
  color: #F2F5F3;
  text-decoration: none;
  font-size: 0.85rem;
  text-align: left;
  background: #1D3329;
  border: 0;
  cursor: pointer;
}

.resource-customers .customer-card-action-item:hover {
  background: #284739;
  color: #F2F5F3;
}

.resource-customers .customer-card-action-item.is-disabled {
  background: #1D3329;
  color: #8C9A93;
  cursor: not-allowed;
}

.resource-customers .customer-card-action-delete {
  cursor: pointer;
}

.resource-customers .customer-card-actions-menu form {
  margin: 0;
}

@media (max-width: 1450px) {
  .resource-customers .customer-card {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    row-gap: 0.75rem;
  }

  .resource-customers .customer-card-column--type {
    grid-column: 4 / span 2;
    grid-row: 2;
    border-top: 1px solid #2f5a4a;
    padding-top: 0.55rem;
  }

  .resource-customers .customer-card-column--status {
    grid-column: 1 / span 3;
  }

  .resource-customers .customer-card-column--name {
    grid-column: 4 / span 3;
  }

  .resource-customers .customer-card-column--contact {
    grid-column: 7 / span 3;
  }

  .resource-customers .customer-card-column--address {
    grid-column: 10 / span 3;
    border-right: 0;
  }

  .resource-customers .customer-card-column--balance {
    margin-left: 0;
    grid-column: 6 / span 2;
    grid-row: 2;
    border-top: 1px solid #2f5a4a;
    padding-top: 0.55rem;
  }

  .resource-customers .customer-card-column--properties {
    display: none;
  }

  .resource-customers .customer-card-column--actions {
    grid-column: 8 / span 2;
    grid-row: 2;
    border-right: 0;
    border-top: 1px solid #2f5a4a;
    padding-top: 0.55rem;
  }

  .resource-customers .customer-card-column--type,
  .resource-customers .customer-card-column--balance,
  .resource-customers .customer-card-column--actions {
    align-items: center;
  }

  .resource-customers .customer-card-column--type .customer-card-label,
  .resource-customers .customer-card-column--type .customer-card-value,
  .resource-customers .customer-card-column--balance .customer-card-label,
  .resource-customers .customer-card-column--balance .customer-card-value,
  .resource-customers .customer-card-column--actions .customer-card-label {
    text-align: center;
  }

  .resource-customers .customer-card-value--email {
    overflow-wrap: anywhere;
  }
}

@media (max-width: 1199px) {
  .resource-customers .customer-card {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .resource-customers .customer-card-column--status {
    grid-column: 1 / span 3;
    grid-row: 1;
  }

  .resource-customers .customer-card-column--name {
    grid-column: 4 / span 3;
    grid-row: 1;
    border-right: 0;
  }

  .resource-customers .customer-card-column--contact {
    grid-column: 1 / span 3;
    grid-row: 2;
  }

  .resource-customers .customer-card-column--address {
    grid-column: 4 / span 3;
    grid-row: 2;
    border-right: 0;
  }

  .resource-customers .customer-card-column--type {
    grid-column: 1 / span 2;
    grid-row: 3;
  }

  .resource-customers .customer-card-column--balance {
    grid-column: 3 / span 2;
    grid-row: 3;
  }

  .resource-customers .customer-card-column--actions {
    grid-column: 5 / span 2;
    grid-row: 3;
    min-width: 0;
    border-right: 0;
  }
}

/* Customers page action buttons */
.customers-controls-right-actions a:first-child {
  background: #00A86B;
  color: #0B120F;
  border-color: #00A86B;
}

.customers-controls-right-actions a:first-child:hover {
  background: #009863;
  color: #0B120F;
  border-color: #009863;
}

.customers-controls-right-actions a:last-child {
  background: #253E33;
  color: #B2C0B9;
  border-color: #2f5a4a;
}

.customers-controls-right-actions a:last-child:hover {
  background: #2d4b3f;
  color: #d0ddd7;
  border-color: #3a6553;
}

/* Jobs and estimates styling aligned with customers page */
.resource-jobs .jobs-controls-left h2,
.resource-jobs .jobs-controls-right-top h2 {
  color: #F2F5F3;
}

.resource-jobs .jobs-filter-group {
  border: 1px solid #2f5a4a;
  border-radius: 0;
  background-color: #1D3329;
}

.resource-jobs .jobs-filter-group summary {
  background: #244236;
  color: #F2F5F3;
  border-bottom: 1px solid #2f5a4a;
}

.resource-jobs .jobs-filter-content {
  background-color: #1D3329;
}

.resource-jobs .jobs-filter-content label,
.resource-jobs .jobs-filter-date-range label {
  color: #B2C0B9;
}

.resource-jobs .jobs-filter-date-range input {
  border: 1px solid #2f5a4a;
  border-radius: 0;
  background-color: #253E33;
  color: #F2F5F3;
}

.resource-jobs .jobs-filter-date-range input:focus {
  outline: 2px solid #3a6553;
  border-color: #3a6553;
}

.resource-jobs #jobs-clear-date-filters,
.resource-jobs #estimates-clear-date-filters {
  border: 1px solid #2f5a4a;
  border-radius: 0;
  background: #253E33;
  color: #B2C0B9;
}

.resource-jobs #jobs-clear-date-filters:hover,
.resource-jobs #estimates-clear-date-filters:hover {
  background: #2d4b3f;
  color: #d0ddd7;
  border-color: #3a6553;
}

.resource-jobs .jobs-controls-right-top {
  padding-bottom: 0;
  border-bottom: 0;
}

.resource-jobs .jobs-controls-right-actions label {
  color: #B2C0B9;
}

.resource-jobs .jobs-controls-right-actions select {
  border: 1px solid #2f5a4a;
  border-radius: 0;
  background-color: #1D3329;
  color: #F2F5F3;
  background-image:
    linear-gradient(45deg, transparent 50%, #F2F5F3 50%),
    linear-gradient(135deg, #F2F5F3 50%, transparent 50%);
}

.resource-jobs .jobs-controls-right-actions select:focus {
  border-color: #3a6553;
  outline: 2px solid #3a6553;
}

.resource-jobs .jobs-controls-right-actions button,
.resource-jobs .jobs-controls-right-actions a {
  border: 1px solid #2f5a4a;
  border-radius: 0;
  background: #253E33;
  color: #B2C0B9;
}

.resource-jobs .jobs-controls-right-actions button:hover,
.resource-jobs .jobs-controls-right-actions a:hover {
  background: #2d4b3f;
  color: #d0ddd7;
  border-color: #3a6553;
}

.resource-jobs .jobs-compact-list .jobs-card,
.resource-jobs .estimates-compact-list .jobs-card {
  display: flex;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0;
  padding: 0.55rem 0.45rem;
  border: 1px solid #2f5a4a;
  border-top: 3px solid #00A86B;
  border-radius: 0;
  background: #1D3329;
  color: #F2F5F3;
}

.resource-jobs .jobs-compact-list .jobs-card:hover,
.resource-jobs .estimates-compact-list .jobs-card:hover {
  background: #244236;
  border-color: #3a6553;
  box-shadow: none;
}

.resource-jobs .jobs-compact-list .jobs-card-row,
.resource-jobs .estimates-compact-list .jobs-card-row {
  flex: 1 1 auto;
  width: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.18rem;
  padding: 0 0.75rem;
  border-right: 1px solid #2f5a4a;
  min-width: 0;
}

.resource-jobs .jobs-compact-list .jobs-card-row:first-child,
.resource-jobs .estimates-compact-list .jobs-card-row:first-child {
  padding-left: 0;
}

.resource-jobs .jobs-compact-list .jobs-card-row:last-child,
.resource-jobs .estimates-compact-list .jobs-card-row:last-child {
  padding-right: 0;
  border-right: 0;
}

.resource-jobs .jobs-compact-list .jobs-card-label,
.resource-jobs .estimates-compact-list .jobs-card-label {
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: #B2C0B9;
  text-align: center;
}

.resource-jobs .jobs-compact-list .jobs-card-value,
.resource-jobs .estimates-compact-list .jobs-card-value {
  text-align: center;
  font-size: 0.92rem;
  color: #F2F5F3;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  max-width: none;
}

.resource-jobs .jobs-compact-list .jobs-card-value--address,
.resource-jobs .estimates-compact-list .jobs-card-value--address {
  color: #8C9A93;
  font-size: 0.85rem;
}

.resource-jobs .jobs-compact-list .jobs-card-row--status .jobs-status-chip,
.resource-jobs .estimates-compact-list .jobs-card-row--status .jobs-status-chip {
  justify-self: auto;
}

@media (max-width: 1450px) {
  .resource-jobs .jobs-compact-list .jobs-card,
  .resource-jobs .estimates-compact-list .jobs-card {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    row-gap: 0.75rem;
  }

  .resource-jobs .jobs-compact-list .jobs-card-row,
  .resource-jobs .estimates-compact-list .jobs-card-row {
    padding: 0 0.62rem;
  }

  .resource-jobs .jobs-compact-list .jobs-card-row:nth-child(1),
  .resource-jobs .estimates-compact-list .jobs-card-row:nth-child(1) {
    grid-column: 1 / span 3;
    grid-row: 1;
  }

  .resource-jobs .jobs-compact-list .jobs-card-row:nth-child(2),
  .resource-jobs .estimates-compact-list .jobs-card-row:nth-child(2) {
    grid-column: 4 / span 3;
    grid-row: 1;
  }

  .resource-jobs .jobs-compact-list .jobs-card-row:nth-child(3),
  .resource-jobs .estimates-compact-list .jobs-card-row:nth-child(3) {
    grid-column: 7 / span 3;
    grid-row: 1;
  }

  .resource-jobs .jobs-compact-list .jobs-card-row:nth-child(4),
  .resource-jobs .estimates-compact-list .jobs-card-row:nth-child(4) {
    grid-column: 10 / span 3;
    grid-row: 1;
    border-right: 0;
  }

  .resource-jobs .jobs-compact-list .jobs-card-row:nth-child(n+5),
  .resource-jobs .estimates-compact-list .jobs-card-row:nth-child(n+5) {
    grid-column: 5 / span 4;
    grid-row: 2;
    border-right: 0;
    border-top: 1px solid #2f5a4a;
    padding-top: 0.55rem;
    align-items: center;
  }

  .resource-jobs .jobs-compact-list .jobs-card-row:nth-child(n+5) .jobs-card-label,
  .resource-jobs .jobs-compact-list .jobs-card-row:nth-child(n+5) .jobs-card-value,
  .resource-jobs .estimates-compact-list .jobs-card-row:nth-child(n+5) .jobs-card-label,
  .resource-jobs .estimates-compact-list .jobs-card-row:nth-child(n+5) .jobs-card-value {
    text-align: center;
  }
}

@media (max-width: 1199px) {
  .resource-jobs .jobs-compact-list .jobs-card,
  .resource-jobs .estimates-compact-list .jobs-card {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .resource-jobs .jobs-compact-list .jobs-card-row:nth-child(1),
  .resource-jobs .estimates-compact-list .jobs-card-row:nth-child(1) {
    grid-column: 1 / span 3;
    grid-row: 1;
  }

  .resource-jobs .jobs-compact-list .jobs-card-row:nth-child(2),
  .resource-jobs .estimates-compact-list .jobs-card-row:nth-child(2) {
    grid-column: 4 / span 3;
    grid-row: 1;
    border-right: 0;
  }

  .resource-jobs .jobs-compact-list .jobs-card-row:nth-child(3),
  .resource-jobs .estimates-compact-list .jobs-card-row:nth-child(3) {
    grid-column: 1 / span 3;
    grid-row: 2;
  }

  .resource-jobs .jobs-compact-list .jobs-card-row:nth-child(4),
  .resource-jobs .estimates-compact-list .jobs-card-row:nth-child(4) {
    grid-column: 4 / span 3;
    grid-row: 2;
    border-right: 0;
  }

  .resource-jobs .jobs-compact-list .jobs-card-row:nth-child(n+5),
  .resource-jobs .estimates-compact-list .jobs-card-row:nth-child(n+5) {
    grid-column: 2 / span 4;
    grid-row: 3;
  }
}

/* Invoices list cards carry more fields (7) than jobs/estimates, so the
   extra rows (5-7) need distinct placement to avoid stacking in one cell. */
@media (max-width: 1450px) {
  .resource-jobs .invoices-compact-list .jobs-card-row:nth-child(5) {
    grid-column: 1 / span 4;
    grid-row: 2;
  }

  .resource-jobs .invoices-compact-list .jobs-card-row:nth-child(6) {
    grid-column: 5 / span 4;
    grid-row: 2;
  }

  .resource-jobs .invoices-compact-list .jobs-card-row:nth-child(7) {
    grid-column: 9 / span 4;
    grid-row: 2;
  }
}

@media (max-width: 1199px) {
  .resource-jobs .invoices-compact-list .jobs-card-row:nth-child(5) {
    grid-column: 1 / span 3;
    grid-row: 3;
  }

  .resource-jobs .invoices-compact-list .jobs-card-row:nth-child(6) {
    grid-column: 4 / span 3;
    grid-row: 3;
  }

  .resource-jobs .invoices-compact-list .jobs-card-row:nth-child(7) {
    grid-column: 1 / span 3;
    grid-row: 4;
    border-top: 1px solid #2f5a4a;
    padding-top: 0.55rem;
  }
}

/* Reporting page styling aligned with green/off-white theme */
.resource-reporting h1,
.resource-reporting .jobs-controls-right-top h2 {
  color: #F2F5F3;
}

.resource-reporting .reporting-view-subtitle,
.resource-reporting #breadcrumb a,
.resource-reporting #breadcrumb li {
  color: #B2C0B9;
}

.resource-reporting .reporting-sidebar {
  border: 1px solid #2f5a4a;
  border-radius: 0;
  background: #1D3329;
  box-shadow: none;
}

.resource-reporting .reporting-sidebar h3 {
  color: #F2F5F3;
}

.resource-reporting .reporting-nav-link {
  border: 1px solid #2f5a4a;
  border-radius: 0;
  background: #253E33;
  color: #B2C0B9;
}

.resource-reporting .reporting-nav-link small {
  color: #8C9A93;
}

.resource-reporting .reporting-nav-link:hover {
  border-color: #3a6553;
  background: #2d4b3f;
  color: #F2F5F3;
}

.resource-reporting .reporting-nav-link.is-active {
  border-color: #00A86B;
  background: #244236;
  color: #F2F5F3;
}

.resource-reporting .reporting-nav-link.is-disabled {
  color: #8C9A93;
  background: #1D3329;
}

.resource-reporting .reporting-card,
.resource-reporting .reporting-jobs-table-shell,
.resource-reporting .reporting-mini-list-item,
.resource-reporting .reporting-kpi,
.resource-reporting .rev-breakdown-card,
.resource-reporting .rev-kpi-card {
  border: 1px solid #2f5a4a;
  border-radius: 0;
  background: #1D3329;
  box-shadow: none;
}

.resource-reporting .reporting-card-header h3,
.resource-reporting .reporting-list-block h4,
.resource-reporting .reporting-chart-title,
.resource-reporting .rev-kpi-value,
.resource-reporting .rev-service-bar-amount,
.resource-reporting .reporting-mini-list-item strong {
  color: #F2F5F3;
}

.resource-reporting .reporting-card-header p,
.resource-reporting .reporting-kpi span,
.resource-reporting .reporting-kpi small,
.resource-reporting .reporting-jobs-pagination-summary,
.resource-reporting .reporting-mini-list-item span,
.resource-reporting .reporting-mini-list-empty,
.resource-reporting .reporting-aging-note,
.resource-reporting .rev-kpi-label,
.resource-reporting .rev-kpi-growth,
.resource-reporting .rev-section-label,
.resource-reporting .rev-date-label,
.resource-reporting .rev-placeholder,
.resource-reporting .rev-service-bar-label,
.resource-reporting .rev-donut-legend-item,
.resource-reporting .rev-donut-pct,
.resource-reporting .reporting-receivables-flag {
  color: #B2C0B9;
}

.resource-reporting .reporting-kpi strong,
.resource-reporting .reporting-jobs-table tbody td {
  color: #F2F5F3;
}

.resource-reporting .reporting-kpi .reporting-kpi-trend--up,
.resource-reporting .rev-kpi-growth.is-up {
  color: #00A86B;
}

.resource-reporting .reporting-kpi .reporting-kpi-trend--down,
.resource-reporting .rev-kpi-growth.is-down {
  color: #F87171;
}

.resource-reporting .reporting-jobs-table {
  background: #1D3329;
}

.resource-reporting .reporting-jobs-table thead th {
  background: #244236;
  color: #F2F5F3;
  border-bottom: 1px solid #2f5a4a;
}

.resource-reporting .reporting-jobs-table tbody th,
.resource-reporting .reporting-jobs-table tbody td {
  border-bottom: 1px solid #2f5a4a;
}

.resource-reporting .reporting-jobs-table tbody th {
  color: #B2C0B9;
}

.resource-reporting .reporting-jobs-table tbody tr:nth-child(even) {
  background: #244236;
}

.resource-reporting .reporting-jobs-pagination {
  border-top: 1px solid #2f5a4a;
  background: #1D3329;
}

.resource-reporting .reporting-jobs-page-link,
.resource-reporting .reporting-aging-legend-item,
.resource-reporting .rev-timeframe-btn {
  border: 1px solid #2f5a4a;
  border-radius: 0;
  background: #253E33;
  color: #B2C0B9;
}

.resource-reporting .reporting-jobs-page-link:hover,
.resource-reporting .reporting-aging-legend-item:hover,
.resource-reporting .rev-timeframe-btn:hover {
  border-color: #3a6553;
  background: #2d4b3f;
  color: #F2F5F3;
}

.resource-reporting .reporting-jobs-page-link.is-active,
.resource-reporting .reporting-aging-legend-item.is-active,
.resource-reporting .rev-timeframe-btn.is-active {
  border-color: #00A86B;
  background: #244236;
  color: #F2F5F3;
}

.resource-reporting .rev-date-input {
  border: 1px solid #2f5a4a;
  border-radius: 0;
  background: #1D3329;
  color: #F2F5F3;
}

.resource-reporting .rev-service-bar-track {
  background: #2a4a3e;
}

.resource-reporting .rev-service-bar-fill {
  background: #00A86B;
}

.resource-reporting .reporting-chart {
  background: #1D3329;
  border: 1px solid #2f5a4a;
  border-radius: 0;
}

.resource-reporting .reporting-axis {
  stroke: #8C9A93;
}

.resource-reporting .reporting-grid-x,
.resource-reporting .reporting-grid-y {
  stroke: #2f5a4a;
}

.resource-reporting .reporting-line {
  stroke: #00A86B;
}

.resource-reporting .reporting-point {
  fill: #14B8A6;
  stroke: #1D3329;
}

.resource-reporting .reporting-bar--pending {
  fill: #8C9A93;
}

.resource-reporting .reporting-bar--estimating {
  fill: #22D3EE;
}

.resource-reporting .reporting-bar--scheduled {
  fill: #14B8A6;
}

.resource-reporting .reporting-bar--started {
  fill: #F59E0B;
}

.resource-reporting .reporting-bar--completed {
  fill: #00A86B;
}

.resource-reporting .reporting-bar-value,
.resource-reporting .reporting-axis-label-x,
.resource-reporting .reporting-axis-label-y,
.resource-reporting .reporting-axis-title-x,
.resource-reporting .reporting-axis-title-y,
.resource-reporting .reporting-day-label {
  fill: #B2C0B9;
  color: #B2C0B9;
}

/* Business/Admin/Price Book parity pass */
.resource-admin .jobs-controls-left h2,
.resource-admin .jobs-controls-right-top h2,
.resource-services .jobs-controls-left h2,
.resource-services .jobs-controls-right-top h2,
.resource-parts .jobs-controls-left h2,
.resource-parts .jobs-controls-right-top h2,
.resource-business #view-customer-actions > h2,
.resource-business #view-customer-details > h2,
.resource-business .view-customer-section-column h3,
.resource-business .view-customer-detail-item h4,
.resource-business .create-job-form-section-header,
.resource-employees .customers-controls-left h2,
.resource-employees #all-customers-title-row h2,
.resource-subscription .jobs-controls-right-top h2,
.resource-subscription .subscription-summary-card h3,
.resource-subscription .subscription-panel-card h3 {
  color: #F2F5F3;
}

.resource-admin .admin-link-card h3,
.resource-admin .admin-link-card p {
  color: #F2F5F3;
}

.resource-admin #breadcrumb a,
.resource-admin #breadcrumb li,
.resource-services #breadcrumb a,
.resource-services #breadcrumb li,
.resource-parts #breadcrumb a,
.resource-parts #breadcrumb li,
.resource-business #breadcrumb a,
.resource-business #breadcrumb li,
.resource-subscription #breadcrumb a,
.resource-subscription #breadcrumb li,
.resource-business .form-field-note,
.resource-business .view-customer-detail-item p,
.resource-business .add-customer-form-field label,
.resource-employees #customers-search-form input,
.resource-employees .customer-card-label,
.resource-subscription .subscription-summary-note,
.resource-subscription .subscription-detail-row span,
.resource-subscription .subscription-summary-kicker,
.resource-subscription .subscription-included-features-list,
.resource-subscription .subscription-included-features-list li {
  color: #B2C0B9;
}

.resource-admin .jobs-filter-group,
.resource-admin .jobs-filter-content,
.resource-admin .jobs-controls-right-actions select,
.resource-admin .catalog-search-form input,
.resource-admin .admin-link-card,
.resource-services .jobs-filter-group,
.resource-services .jobs-filter-content,
.resource-services .jobs-controls-right-actions select,
.resource-services .catalog-search-form input,
.resource-services .catalog-compact-list .jobs-card,
.resource-parts .jobs-filter-group,
.resource-parts .jobs-filter-content,
.resource-parts .jobs-controls-right-actions select,
.resource-parts .catalog-search-form input,
.resource-parts .catalog-compact-list .jobs-card,
.resource-business #view-customer-actions,
.resource-business #view-customer-details,
.resource-business .view-customer-section-column,
.resource-business .view-customer-detail-item,
.resource-business #business-profile-form,
.resource-business #business-markup-recalculate-prompt,
.resource-business .add-customer-form-field input,
.resource-business .add-customer-form-field textarea,
.resource-employees #customers-search-form input,
.resource-employees .customer-card,
.resource-subscription .subscription-summary-card,
.resource-subscription .subscription-panel-card,
.resource-subscription .reactivate-subscription-panel {
  border-color: #2f5a4a;
  border-radius: 0;
  background: #1D3329;
  color: #F2F5F3;
  box-shadow: none;
}

.resource-admin .jobs-filter-group summary,
.resource-services .jobs-filter-group summary,
.resource-parts .jobs-filter-group summary {
  border-bottom: 1px solid #2f5a4a;
  background: #244236;
  color: #F2F5F3;
}

.resource-admin .jobs-filter-content label,
.resource-admin .catalog-search-form-label,
.resource-services .jobs-filter-content label,
.resource-services .catalog-search-form-label,
.resource-parts .jobs-filter-content label,
.resource-parts .catalog-search-form-label {
  color: #B2C0B9;
}

.resource-admin .jobs-controls-right-actions button,
.resource-admin .jobs-controls-right-actions a,
.resource-admin #jobs-clear-date-filters,
.resource-services .jobs-controls-right-actions button,
.resource-services .jobs-controls-right-actions a,
.resource-services #jobs-clear-date-filters,
.resource-parts .jobs-controls-right-actions button,
.resource-parts .jobs-controls-right-actions a,
.resource-parts #jobs-clear-date-filters,
.resource-business #view-customer-actions-row a,
.resource-business #view-customer-actions-row button,
.resource-employees .customers-controls-right a,
.resource-subscription .subscription-actions .home-latest-action-link,
.resource-subscription .subscription-cancel-actions-row .home-latest-action-link,
.resource-subscription .subscription-cancel-actions-row .subscription-remove-button,
.resource-subscription #view-customer-actions-row a,
.resource-subscription #view-customer-actions-row button {
  border: 1px solid #2f5a4a;
  border-radius: 0;
  background: #253E33;
  color: #B2C0B9;
}

.resource-admin .jobs-controls-right-actions button:hover,
.resource-admin .jobs-controls-right-actions a:hover,
.resource-admin #jobs-clear-date-filters:hover,
.resource-services .jobs-controls-right-actions button:hover,
.resource-services .jobs-controls-right-actions a:hover,
.resource-services #jobs-clear-date-filters:hover,
.resource-parts .jobs-controls-right-actions button:hover,
.resource-parts .jobs-controls-right-actions a:hover,
.resource-parts #jobs-clear-date-filters:hover,
.resource-business #view-customer-actions-row a:hover,
.resource-business #view-customer-actions-row button:hover,
.resource-employees .customers-controls-right a:hover,
.resource-subscription .subscription-actions .home-latest-action-link:hover,
.resource-subscription .subscription-cancel-actions-row .home-latest-action-link:hover,
.resource-subscription .subscription-cancel-actions-row .subscription-remove-button:hover,
.resource-subscription #view-customer-actions-row a:hover,
.resource-subscription #view-customer-actions-row button:hover {
  border-color: #3a6553;
  background: #2d4b3f;
  color: #F2F5F3;
}

.resource-admin .admin-link-card:hover,
.resource-admin .catalog-compact-list .jobs-card:hover,
.resource-services .catalog-compact-list .jobs-card:hover,
.resource-parts .catalog-compact-list .jobs-card:hover,
.resource-employees .customer-card:hover {
  border-color: #3a6553;
  background: #244236;
}

.resource-admin .catalog-compact-list .jobs-card,
.resource-services .catalog-compact-list .jobs-card,
.resource-parts .catalog-compact-list .jobs-card,
.resource-employees .customer-card {
  border: 1px solid #2f5a4a;
  border-top: 3px solid #00A86B;
  border-radius: 0;
  background: #1D3329;
}

.resource-admin .catalog-compact-list .jobs-card .jobs-card-label,
.resource-services .catalog-compact-list .jobs-card .jobs-card-label,
.resource-parts .catalog-compact-list .jobs-card .jobs-card-label {
  color: #B2C0B9;
}

.resource-admin .catalog-compact-list .jobs-card .jobs-card-value,
.resource-services .catalog-compact-list .jobs-card .jobs-card-value,
.resource-parts .catalog-compact-list .jobs-card .jobs-card-value,
.resource-employees .customer-card-value,
.resource-subscription .subscription-detail-row strong {
  color: #F2F5F3;
}

.resource-business .add-customer-form-field input:focus,
.resource-business .add-customer-form-field textarea:focus,
.resource-admin .jobs-controls-right-actions select:focus,
.resource-admin .catalog-search-form input:focus,
.resource-services .jobs-controls-right-actions select:focus,
.resource-services .catalog-search-form input:focus,
.resource-parts .jobs-controls-right-actions select:focus,
.resource-parts .catalog-search-form input:focus,
.resource-employees #customers-search-form input:focus {
  outline: 2px solid #3a6553;
  border-color: #3a6553;
}

.resource-business .business-logo-status.is-success {
  border-color: #2f5a4a;
  background: #244236;
  color: #D8F3E8;
}

.resource-business .business-logo-status.is-error {
  border-color: #7f3434;
  background: #3c1f1f;
  color: #FECACA;
}

.resource-subscription .reactivate-subscription-message {
  color: #B2C0B9;
}

.resource-subscription .reactivate-subscription-button {
  border: 1px solid #2f5a4a;
  border-radius: 0;
  background: #253E33;
  color: #B2C0B9;
  box-shadow: none;
}

.resource-employees .customer-card-value--name-link,
.resource-employees [data-live-card-filter-empty] {
  color: #B2C0B9;
}

.resource-employees .customer-status-chip.is-active {
  background-color: #14B8A6;
  color: #F2F5F3;
}

.resource-employees #customers-controls-row {
  grid-template-columns: 1fr;
}

.resource-employees .customers-controls-right {
  width: 100%;
  grid-template-rows: auto auto;
}

.resource-employees .customers-controls-right-top {
  width: 100%;
}

.resource-employees .customers-controls-right-actions {
  margin-left: auto;
  justify-content: flex-end;
}

.resource-employees #customers-search-form.catalog-search-form {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  width: 100%;
}

.resource-employees #customers-search-form.catalog-search-form .catalog-search-form-label {
  color: #F2F5F3;
}

.resource-employees #customers-search-form.catalog-search-form input[type="search"] {
  width: min(100%, 720px);
  max-width: 720px;
}

.resource-employees .customer-card {
  cursor: pointer;
  display: flex;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0;
}

.resource-employees .customer-card-column {
  flex: 0 0 auto;
  width: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.18rem;
  padding: 0 0.75rem;
  border-right: 1px solid #2f5a4a;
  min-width: 0;
}

.resource-employees .customer-card-column:first-child {
  padding-left: 0;
}

.resource-employees .customer-card-column:last-child {
  padding-right: 0;
  border-right: 0;
}

.resource-employees .customer-card-label {
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: #B2C0B9;
  text-align: center;
}

.resource-employees .customer-card-value {
  text-align: center;
  font-size: 0.92rem;
  color: #F2F5F3;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  max-width: none;
}

.resource-employees .customer-card-value--name {
  font-size: 1rem;
  font-weight: 600;
  color: #F2F5F3;
}

.resource-employees .customer-card-value--phone {
  color: #B2C0B9;
  font-weight: 500;
}

.resource-employees .customer-card-value--email {
  color: #8C9A93;
  font-size: 0.85rem;
  overflow-wrap: anywhere;
}

.resource-employees .customer-card-column--name-only {
  justify-content: center;
}

.resource-employees .customer-card-column--position {
  margin-left: auto;
  align-items: flex-end;
}

.resource-employees .customer-card-column--position .customer-card-label,
.resource-employees .customer-card-column--position .customer-card-value {
  text-align: right;
}

.resource-employees .employee-card-hidden-text {
  display: none;
}

.resource-customers #view-customer-actions {
  border: 1px solid #2f5a4a;
  border-radius: 0;
  background: #1D3329;
  box-shadow: none;
}

.resource-customers #view-customer-actions-header {
  border-bottom: 1px solid #2f5a4a;
  background: #244236;
  color: #F2F5F3;
}

.resource-customers #view-customer-actions-row {
  gap: 0.55rem;
}

.resource-customers #view-customer-actions-row a,
.resource-customers #view-customer-actions-row button {
  border: 1px solid #2f5a4a;
  border-radius: 0;
  background: #253E33;
  color: #B2C0B9;
}

.resource-customers #view-customer-actions-row .view-customer-action-primary {
  display: inline-block;
  padding: 0.55rem 0.95rem;
  border-color: #00A86B;
  border-radius: 4px;
  background: #00A86B;
  color: #0B120F;
  font-weight: 600;
  text-decoration: none;
}

.resource-customers #view-customer-actions-row .view-customer-action-secondary {
  display: inline-block;
  padding: 0.55rem 0.95rem;
  border-color: #2f5a4a;
  border-radius: 4px;
  background: #253E33;
  color: #B2C0B9;
  font-weight: 600;
  text-decoration: none;
}

.resource-customers #view-customer-actions-row .view-customer-action-danger {
  display: inline-block;
  padding: 0.55rem 0.95rem;
  border: 1px solid #7f2a2a;
  border-radius: 4px;
  background: #4c1f1f;
  color: #f8d8d8;
  font-weight: 600;
  text-decoration: none;
}

.resource-customers #view-customer-actions-row a:hover,
.resource-customers #view-customer-actions-row button:hover {
  border-color: #3a6553;
  background: #2d4b3f;
  color: #F2F5F3;
}

.resource-customers #view-customer-actions-row .view-customer-action-primary:hover {
  border-color: #009863;
  background: #009863;
  color: #0B120F;
  text-decoration: none;
}

.resource-customers #view-customer-actions-row .view-customer-action-secondary:hover {
  border-color: #3a6553;
  background: #2d4b3f;
  color: #D0DDD7;
  text-decoration: none;
}

.resource-customers #view-customer-actions-row .view-customer-action-danger:hover {
  border-color: #9a3535;
  background: #5e2727;
  color: #ffe6e6;
  text-decoration: none;
}

.resource-customers #view-customer-actions-row .view-customer-action-link.is-disabled,
.resource-customers #view-customer-actions-row .view-customer-action-link.is-disabled:hover {
  border: 1px solid #2f5a4a;
  background: #22372d;
  color: #8C9A93;
  cursor: not-allowed;
  opacity: 0.95;
  box-shadow: none;
  text-decoration: none;
}

@media (max-width: 768px) {
  .resource-customers #view-customer-actions-row .view-customer-action-primary,
  .resource-customers #view-customer-actions-row .view-customer-action-secondary,
  .resource-customers #view-customer-actions-row .view-customer-action-danger,
  .resource-customers #view-customer-actions-row .view-customer-action-link.is-disabled {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 0.75rem;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .resource-customers #view-customer-actions-row > .view-customer-action-primary,
  .resource-customers #view-customer-actions-row > .view-customer-action-secondary,
  .resource-customers #view-customer-actions-row > .view-customer-action-danger,
  .resource-customers #view-customer-actions-row > .view-customer-action-link.is-disabled {
    flex: 1 1 calc(50% - 0.5rem);
    min-width: 0;
    width: auto;
  }
}

@media (max-width: 540px) {
  .resource-customers #view-customer-actions-row > .view-customer-action-primary,
  .resource-customers #view-customer-actions-row > .view-customer-action-secondary,
  .resource-customers #view-customer-actions-row > .view-customer-action-danger,
  .resource-customers #view-customer-actions-row > .view-customer-action-link.is-disabled {
    flex-basis: 100%;
  }
}

.resource-customers #view-customer-actions-note {
  color: #B2C0B9;
}

.resource-customers#view-customer-panel #breadcrumb a,
.resource-customers#view-customer-panel #breadcrumb li,
.resource-customers#view-customer-panel #view-customer-details > h2,
.resource-customers#view-customer-panel .view-customer-section-column > h3,
.resource-customers#view-customer-panel .view-customer-detail-item h4,
.resource-customers#view-customer-panel .view-customer-detail-item p,
.resource-customers#view-customer-panel .view-customer-card-link h4,
.resource-customers#view-customer-panel .view-customer-card-link p,
.resource-customers#view-customer-panel .view-customer-estimate-item h4,
.resource-customers#view-customer-panel .view-customer-estimate-item p,
.resource-customers#view-customer-panel .view-customer-properties-header,
.resource-customers#view-customer-panel .view-customer-internal-note-header .note-card-date,
.resource-customers#view-customer-panel .view-customer-internal-note-header .note-card-date a,
.resource-customers#view-customer-panel .note-card-text,
.resource-customers#view-customer-panel .list-pages span,
.resource-customers#view-customer-panel .list-pages a,
.resource-customers#view-customer-panel .view-customer-hvac-card-kicker,
.resource-customers#view-customer-panel .view-customer-hvac-card-header h4,
.resource-customers#view-customer-panel .view-customer-hvac-card-label,
.resource-customers#view-customer-panel .view-customer-hvac-card-value,
.resource-customers#view-customer-panel .view-customer-hvac-card-subvalue,
.resource-customers#view-customer-panel #view-customer-actions-note {
  color: #F2F5F3;
}

.resource-customers#view-customer-panel #view-customer-details {
  margin-top: 0.75rem;
  display: grid;
  gap: 1rem;
}

.resource-customers#view-customer-panel .view-customer-section-row {
  border-top: 0;
  gap: 1rem;
}

.resource-customers#view-customer-panel .view-customer-section-column,
.resource-customers#view-customer-panel .view-customer-section-column:first-child {
  border: 1px solid #00A86B;
  border-radius: 0;
  background: #1D3329;
  color: #F2F5F3;
  padding: 0.7rem;
}

.resource-customers#view-customer-panel .view-customer-section-column > h3 {
  text-align: center;
  background: #00A86B;
  color: #F2F5F3;
  margin: -0.7rem -0.7rem 0.75rem;
  padding: 0.6rem 0.75rem;
}

.resource-customers#view-customer-panel .view-customer-card-link,
.resource-customers#view-customer-panel .view-customer-estimate-item,
.resource-customers#view-customer-panel .view-customer-hvac-card {
  border: 1px solid var(--kl-border);
  border-radius: 4px;
  background: var(--kl-surface);
}

.resource-customers#view-customer-panel .view-customer-internal-note-card {
  border: 1px solid #2f5a4a;
  border-top: 3px solid #00A86B;
  border-radius: 8px;
  background: linear-gradient(180deg, #223a30 0%, #1d3329 100%);
  box-shadow: 0 8px 16px rgba(12, 30, 23, 0.18);
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.resource-customers#view-customer-panel .view-customer-internal-note-card:hover {
  border-color: #3a6553;
  background: linear-gradient(180deg, #2b4a3d 0%, #223a30 100%);
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(12, 30, 23, 0.24);
}

.resource-customers#view-customer-panel .view-customer-internal-note-delete {
  border: 1px solid #4f2f2f;
  background: #3b2222;
  color: #ffd8d8;
}

.resource-customers#view-customer-panel .view-customer-internal-note-delete:hover {
  border-color: #9a3535;
  background: #5e2727;
  color: #ffe6e6;
}

.resource-customers#view-customer-panel .view-customer-hvac-card {
  display: block;
  border-radius: 8px;
  border-width: 1px;
  border-top-width: 3px;
  background: linear-gradient(180deg, #223a30 0%, #1d3329 100%);
  box-shadow: 0 8px 16px rgba(12, 30, 23, 0.18);
  overflow: hidden;
  text-decoration: none;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.resource-customers#view-customer-panel .view-customer-hvac-card:hover {
  border-color: #3a6553;
  background: linear-gradient(180deg, #2b4a3d 0%, #223a30 100%);
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(12, 30, 23, 0.24);
}

.resource-customers#view-customer-panel .view-customer-hvac-card-header {
  padding: 0.78rem 0.85rem 0.68rem;
  border-bottom: 1px solid #2f5a4a;
  background: linear-gradient(180deg, rgba(79, 126, 107, 0.18) 0%, rgba(52, 84, 71, 0.12) 100%);
}

.resource-customers#view-customer-panel .view-customer-hvac-card-kicker {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9db2aa;
}

.resource-customers#view-customer-panel .view-customer-hvac-card-header h4 {
  margin-top: 0.15rem;
  font-size: 1rem;
  color: #F2F5F3;
}

.resource-customer-property-view #view-customer-maintenance-history .maintenance-history-card {
  display: block;
  padding: 0.85rem 0.95rem;
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
}

.resource-customer-property-view #view-customer-maintenance-history .maintenance-history-card:hover {
  border-color: #4b7d68;
  background: linear-gradient(180deg, #2b4a3d 0%, #223a30 100%);
}

.resource-customer-property-view #view-customer-maintenance-history .maintenance-history-card-header {
  margin: 0 0 0.8rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid #2f5a4a;
  font-size: 0.95rem;
  font-weight: 600;
  color: #d7e4de;
}

.resource-customer-property-view #view-customer-maintenance-history .maintenance-history-system-name {
  margin: 0.7rem 0 0.35rem;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #8fb4a4;
}

.resource-customer-property-view #view-customer-maintenance-history .maintenance-history-line-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.28rem 0;
}

.resource-customer-property-view #view-customer-maintenance-history .maintenance-history-line-item-name {
  color: #f2f5f3;
  font-size: 0.93rem;
  font-weight: 500;
}

.resource-customer-property-view #view-customer-maintenance-history .maintenance-history-line-item-amount {
  color: #f2f5f3;
  font-size: 0.93rem;
  font-weight: 700;
  white-space: nowrap;
}

.resource-customer-property-view #view-customer-maintenance-history .maintenance-history-total-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.8rem;
  margin-top: 0.7rem;
  padding-top: 0.6rem;
  border-top: 1px solid #2f5a4a;
  color: #e6f0eb;
  font-size: 0.93rem;
  font-weight: 700;
}

.resource-customer-property-view #view-customer-maintenance-history .maintenance-history-links-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 0.7rem;
}

.resource-customer-property-view #view-customer-maintenance-history .maintenance-history-links-row a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 132px;
  min-height: 34px;
  padding: 0.35rem 0.75rem;
  border: 1px solid #3a6553;
  border-radius: 6px;
  background: #274439;
  color: #d8efe3;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

.resource-customer-property-view #view-customer-maintenance-history .maintenance-history-links-row a:hover {
  border-color: #4b7d68;
  background: #2f5245;
  color: #f2f5f3;
  text-decoration: none;
}

.resource-customer-hvac-view #view-hvac-history-columns {
  align-items: stretch;
}

.resource-customer-hvac-view #view-hvac-service-history .maintenance-history-card,
.resource-customer-hvac-view #view-hvac-parts-history .maintenance-history-card {
  display: block;
  padding: 0.85rem 0.95rem;
  border-radius: 8px;
  border: 1px solid #3a6553;
  background: linear-gradient(180deg, #223a30 0%, #1d3329 100%);
  text-decoration: none;
}

.resource-customer-hvac-view #view-hvac-service-history .maintenance-history-card-header,
.resource-customer-hvac-view #view-hvac-parts-history .maintenance-history-card-header {
  margin: 0 0 0.8rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid #2f5a4a;
  font-size: 0.95rem;
  font-weight: 600;
  color: #d7e4de;
}

.resource-customer-hvac-view #view-hvac-service-history .maintenance-history-line-item,
.resource-customer-hvac-view #view-hvac-parts-history .maintenance-history-line-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.28rem 0;
}

.resource-customer-hvac-view #view-hvac-service-history .maintenance-history-line-item-name,
.resource-customer-hvac-view #view-hvac-parts-history .maintenance-history-line-item-name {
  color: #f2f5f3;
  font-size: 0.93rem;
  font-weight: 500;
}

.resource-customer-hvac-view #view-hvac-service-history .maintenance-history-line-item-amount,
.resource-customer-hvac-view #view-hvac-parts-history .maintenance-history-line-item-amount {
  color: #f2f5f3;
  font-size: 0.93rem;
  font-weight: 700;
  white-space: nowrap;
}

.resource-customer-hvac-view #view-hvac-service-history .maintenance-history-total-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.8rem;
  margin-top: 0.7rem;
  padding-top: 0.6rem;
  border-top: 1px solid #2f5a4a;
  color: #e6f0eb;
  font-size: 0.93rem;
  font-weight: 700;
}

.resource-customer-hvac-view #view-hvac-service-history .maintenance-history-links-row,
.resource-customer-hvac-view #view-hvac-parts-history .maintenance-history-links-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 0.7rem;
}

.resource-customer-hvac-view #view-hvac-service-history .maintenance-history-links-row a,
.resource-customer-hvac-view #view-hvac-parts-history .maintenance-history-links-row a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 132px;
  min-height: 34px;
  padding: 0.35rem 0.75rem;
  border: 1px solid #3a6553;
  border-radius: 6px;
  background: #274439;
  color: #d8efe3;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

.resource-customer-hvac-view #view-hvac-service-history .maintenance-history-links-row a:hover,
.resource-customer-hvac-view #view-hvac-parts-history .maintenance-history-links-row a:hover {
  border-color: #4b7d68;
  background: #2f5245;
  color: #f2f5f3;
  text-decoration: none;
}

.resource-customer-hvac-view #view-hvac-service-history .maintenance-history-empty-state,
.resource-customer-hvac-view #view-hvac-parts-history .maintenance-history-empty-state {
  margin: 0.25rem auto 0;
  width: 80%;
  max-width: 520px;
  padding: 0.9rem 1rem;
  border: 1px dashed #3a6553;
  border-radius: 8px;
  background: rgba(32, 55, 44, 0.55);
  color: #d7e4de;
  font-size: 0.92rem;
  line-height: 1.5;
  text-align: left;
}

@media (max-width: 980px) {
  .resource-customer-hvac-view #view-hvac-history-columns {
    grid-template-columns: 1fr;
  }
}

.resource-customers#view-customer-panel .view-customer-hvac-card-row {
  padding: 0.58rem 0.85rem;
  border-bottom: 1px solid #2f5a4a;
}

.resource-customers#view-customer-panel .view-customer-hvac-card-row:last-child {
  border-bottom: 0;
}

.resource-customers#view-customer-panel .view-customer-hvac-card-label {
  color: #B2C0B9;
  font-size: 0.82rem;
  font-weight: 700;
}

.resource-customers#view-customer-panel .view-customer-hvac-card-value,
.resource-customers#view-customer-panel .view-customer-hvac-card-subvalue {
  color: #F2F5F3;
  font-size: 0.9rem;
  font-weight: 700;
}

.resource-customers#view-customer-panel .view-customer-hvac-card--heat-pump {
  border-top-color: #5FA3D3;
}

.resource-customers#view-customer-panel .view-customer-hvac-card--split,
.resource-customers#view-customer-panel .view-customer-hvac-card--mini-split,
.resource-customers#view-customer-panel .view-customer-sub-property-card {
  border-top-color: #14B8A6;
}

.resource-customers#view-customer-panel .view-customer-hvac-card--package {
  border-top-color: #F59E0B;
}

.resource-customers#view-customer-panel #view-customer-maintenance-history .view-customer-card-link {
  display: block;
  border: 1px solid #2f5a4a;
  border-radius: 8px;
  border-top-width: 3px;
  background: linear-gradient(180deg, #223a30 0%, #1d3329 100%);
  box-shadow: 0 8px 16px rgba(12, 30, 23, 0.18);
  overflow: hidden;
  text-decoration: none;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.resource-customers#view-customer-panel #view-customer-maintenance-history .view-customer-card-link:hover {
  border-color: #3a6553;
  background: linear-gradient(180deg, #2b4a3d 0%, #223a30 100%);
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(12, 30, 23, 0.24);
}

.resource-customers#view-customer-panel #view-customer-maintenance-history .view-customer-hvac-card-row {
  padding: 0.58rem 0.85rem;
  border-bottom: 1px solid #2f5a4a;
}

.resource-customers#view-customer-panel #view-customer-maintenance-history .view-customer-hvac-card-row:last-child {
  border-bottom: 0;
}

.resource-customers#view-customer-panel #view-customer-maintenance-history .view-customer-hvac-card-label {
  color: #B2C0B9;
  font-size: 0.82rem;
  font-weight: 700;
}

.resource-customers#view-customer-panel #view-customer-maintenance-history .view-customer-hvac-card-value {
  color: #F2F5F3;
  font-size: 0.9rem;
  font-weight: 700;
}

.resource-customers#view-customer-panel .view-customer-card-link:not(.view-customer-hvac-card):hover,
.resource-customers#view-customer-panel .view-customer-estimate-item:hover {
  border-color: #3a6553;
  background: #244236;
}

.resource-customers#view-customer-panel .view-customer-properties-header,
.resource-customers#view-customer-panel .view-customer-properties-row,
.resource-customers#view-customer-panel .view-customer-hvac-card-row {
  border-color: var(--kl-border);
}

.resource-customers#view-customer-panel .view-customer-summary-card {
  display: block;
  padding: 0.62rem 0.75rem;
  border: 1px solid #2f5a4a;
  border-top: 3px solid #00A86B;
  border-radius: 0;
  background: #1D3329;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.resource-customers#view-customer-panel .view-customer-summary-card:hover {
  border-color: #3a6553;
  background: #244236;
}

.resource-customers#view-customer-panel .view-customer-summary-card h4 {
  margin: 0 0 0.2rem;
  color: #F2F5F3;
  font-size: 0.98rem;
  font-weight: 700;
}

.resource-customers#view-customer-panel .view-customer-summary-card p {
  margin: 0;
  color: #B2C0B9;
  font-size: 0.9rem;
}

.resource-customers#view-customer-panel .customers-add-button,
.resource-customers#view-customer-panel .view-customer-internal-note-actions .home-latest-action-link {
  display: inline-block;
  padding: 0.55rem 0.95rem;
  border: 1px solid #00A86B;
  border-radius: 4px;
  background: #00A86B;
  color: #0B120F;
  text-decoration: none;
  font-weight: 600;
}

.resource-customers#view-customer-panel .customers-add-button:hover,
.resource-customers#view-customer-panel .view-customer-internal-note-actions .home-latest-action-link:hover {
  border-color: #009863;
  background: #009863;
  color: #0B120F;
  text-decoration: none;
}

.resource-customers#view-customer-panel #view-customer-internal-notes-list .view-job-detail-item p {
  color: #F2F5F3;
}

.resource-customer-hvac-view h1 {
  color: #F2F5F3;
}

.resource-customer-hvac-view .form-field-error {
  border: 1px solid #9a3535;
  background: #5e2727;
  color: #ffe6e6;
}

.resource-customer-hvac-view .hvac-system-kpi-card {
  border: 1px solid #2f5a4a;
  border-top: 3px solid #00A86B;
  border-radius: 8px;
  background: linear-gradient(180deg, #223a30 0%, #1d3329 100%);
}

.resource-customer-hvac-view .hvac-system-kpi-card h4,
.resource-customer-hvac-view .hvac-system-kpi-value,
.resource-customer-hvac-view .hvac-system-kpi-value span {
  color: #F2F5F3;
}

.resource-customer-hvac-view .hvac-system-kpi-meta,
.resource-customer-hvac-view .hvac-system-status-note {
  color: #B2C0B9;
}

.resource-customer-hvac-view .hvac-component-card {
  border: 1px solid #2f5a4a;
  border-radius: 8px;
  background: linear-gradient(180deg, #223a30 0%, #1d3329 100%);
  color: #F2F5F3;
  box-shadow: 0 8px 16px rgba(12, 30, 23, 0.18);
}

.resource-customer-hvac-view .hvac-component-card:hover {
  border-color: #3a6553;
  background: linear-gradient(180deg, #2b4a3d 0%, #223a30 100%);
  box-shadow: 0 10px 18px rgba(12, 30, 23, 0.24);
}

.resource-customer-hvac-view .hvac-component-card-header {
  background: linear-gradient(180deg, rgba(79, 126, 107, 0.18) 0%, rgba(52, 84, 71, 0.12) 100%);
  border-bottom: 1px solid #2f5a4a;
}

.resource-customer-hvac-view .hvac-component-card--report .hvac-component-card-header {
  background: linear-gradient(180deg, rgba(79, 126, 107, 0.18) 0%, rgba(52, 84, 71, 0.12) 100%);
}

.resource-customer-hvac-view .hvac-component-card-system-type {
  color: #9db2aa;
}

.resource-customer-hvac-view .hvac-component-card-heading-text h4,
.resource-customer-hvac-view .hvac-component-row strong {
  color: #F2F5F3;
}

.resource-customer-hvac-view .hvac-component-row {
  border-bottom: 1px solid #2f5a4a;
}

.resource-customer-hvac-view .hvac-component-row span {
  color: #B2C0B9;
}

.resource-customer-hvac-view .hvac-photos-note {
  color: #B2C0B9;
  background: #22372d;
  border: 1px solid #2f5a4a;
}

.resource-customer-hvac-view .hvac-photo-tile {
  border: 1px solid #2f5a4a;
  background: #22372d;
}

.resource-customer-hvac-view .hvac-photo-delete-btn {
  background: rgba(16, 24, 20, 0.82);
  color: #F2F5F3;
}

.resource-customer-hvac-view .hvac-photo-delete-btn:hover {
  background: #8d3232;
}

.resource-customer-hvac-view .hvac-photo-tile--add {
  border: 1.5px dashed #3a6553;
  color: #B2C0B9;
}

.resource-customer-hvac-view .hvac-photo-tile--add:hover {
  border-color: #00A86B;
  background: #244236;
  color: #D0DDD7;
}

.resource-customer-hvac-component-view #view-customer-details .view-customer-section-column {
  border-radius: 8px;
}

.resource-customer-hvac-component-view #view-equipment-details-columns {
  align-items: start;
}

.resource-customer-hvac-component-view .hvac-component-card--detail-page {
  min-height: 0;
}

.resource-customer-hvac-component-view #view-customer-actions-row {
  gap: 0.55rem;
}

.resource-customer-hvac-component-view .hvac-component-card-icon {
  color: #D0DDD7;
  background-color: #1f342b;
  border-color: #3b6a58;
}

.resource-customer-hvac-component-view .hvac-component-row strong {
  max-width: 60%;
  word-break: break-word;
}

.resource-customer-hvac-component-update .form-field-error,
.resource-customer-hvac-component-update .field-validation-error.is-visible {
  color: #f8d8d8;
}

.resource-customer-hvac-component-update .form-field-input-error {
  border-color: #9a3535 !important;
  box-shadow: 0 0 0 3px rgba(154, 53, 53, 0.18);
  background: #402424;
}

.resource-customer-hvac-component-update .hvac-range-separator {
  color: #D0DDD7;
}

.resource-customer-hvac-component-update #add-customer-form-actions button:disabled {
  border-color: #2f5a4a;
  background: #22372d;
  color: #8C9A93;
  opacity: 0.85;
}

.resource-customer-hvac-diagnostics-add .form-field-error,
.resource-customer-hvac-diagnostics-add .field-validation-error.is-visible {
  color: #f8d8d8;
}

.resource-customer-hvac-diagnostics-add .hvac-diagnostics-section {
  border: 1px solid #2f5a4a;
  border-radius: 8px;
  background: #1d3329;
}

.resource-customer-hvac-diagnostics-add .hvac-diagnostics-section summary {
  background: linear-gradient(180deg, #244236 0%, #1f382f 100%);
  color: #F2F5F3;
}

.resource-customer-hvac-diagnostics-add .hvac-diagnostics-section summary::after {
  background-color: rgba(247, 252, 248, 0.18);
  color: #F2F5F3;
}

.resource-customer-hvac-diagnostics-add .hvac-diagnostics-section-content {
  background: #1d3329;
  align-items: start;
  gap: 0.85rem 0.95rem;
}

.resource-customer-hvac-diagnostics-add .hvac-diagnostics-section-content .add-customer-form-row {
  border: 1px solid #2f5a4a;
  border-radius: 8px;
  background: #223a30;
  padding: 0.75rem;
  width: auto;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.resource-customer-hvac-diagnostics-add .add-customer-form-field label,
.resource-customer-hvac-diagnostics-add .hvac-diagnostic-section-photos h4 {
  color: #D0DDD7;
}

.resource-customer-hvac-diagnostics-add .add-customer-form-field input,
.resource-customer-hvac-diagnostics-add .add-customer-form-field select,
.resource-customer-hvac-diagnostics-add .add-customer-form-field textarea {
  border: 1px solid #2f5a4a;
  background: #1f342b;
  color: #F2F5F3;
}

.resource-customer-hvac-diagnostics-add .add-customer-form-field select {
  border-color: #3b6a58;
  background-color: #1f342b;
  background-image:
    linear-gradient(45deg, transparent 50%, #D0DDD7 50%),
    linear-gradient(135deg, #D0DDD7 50%, transparent 50%);
  background-position:
    calc(100% - 1.05rem) calc(50% + 1px),
    calc(100% - 0.75rem) calc(50% + 1px);
  background-size: 0.35rem 0.35rem, 0.35rem 0.35rem;
  background-repeat: no-repeat;
  padding-right: 2.3rem;
  border-radius: 8px;
}

.resource-customer-hvac-diagnostics-add .add-customer-form-field select:hover {
  border-color: #4a7f6a;
  background-color: #254136;
}

.resource-customer-hvac-diagnostics-add .add-customer-form-field select option {
  background-color: #1f342b;
  color: #F2F5F3;
}

.resource-customer-hvac-diagnostics-add .add-customer-form-field input:focus,
.resource-customer-hvac-diagnostics-add .add-customer-form-field select:focus,
.resource-customer-hvac-diagnostics-add .add-customer-form-field textarea:focus {
  outline: 2px solid #5FA3D3;
  border-color: #5FA3D3;
}

.resource-customer-hvac-diagnostics-add .hvac-photos-note {
  color: #B2C0B9;
  background: #22372d;
  border: 1px solid #2f5a4a;
}

.resource-customer-hvac-diagnostics-add .hvac-photo-tile {
  border: 1px solid #2f5a4a;
  background: #22372d;
}

.resource-customer-hvac-diagnostics-add .hvac-photo-tile--add {
  border: 1.5px dashed #3a6553;
  color: #B2C0B9;
}

.resource-customer-hvac-diagnostics-add .hvac-photo-tile--add:hover {
  border-color: #00A86B;
  background: #244236;
  color: #D0DDD7;
}

.resource-customer-hvac-diagnostics-add .hvac-photo-delete-btn {
  background: rgba(16, 24, 20, 0.82);
  color: #F2F5F3;
}

.resource-customer-hvac-diagnostics-add .hvac-photo-delete-btn:hover {
  background: #8d3232;
}

.resource-customer-hvac-diagnostics-add #add-customer-form-actions button {
  min-height: 40px;
  padding: 0.6rem 1rem;
  border: 1px solid #2f5a4a;
  border-radius: 8px;
  background: linear-gradient(180deg, #2d4b3f 0%, #253E33 100%);
  color: #E4ECE8;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 3px 10px rgba(12, 30, 23, 0.2);
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.resource-customer-hvac-diagnostics-add #add-customer-form-actions button:hover {
  border-color: #4d816d;
  background: linear-gradient(180deg, #35604f 0%, #2b4d40 100%);
  color: #F2F5F3;
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(12, 30, 23, 0.26);
}

.resource-customer-sub-properties-add .sub-properties-tools-section,
.resource-customer-sub-properties-add .sub-properties-hvac-preview,
.resource-customer-sub-properties-add .sub-property-row {
  border: 1px solid #2f5a4a;
  border-radius: 8px;
  background: linear-gradient(180deg, #1f3b31 0%, #1d3329 100%);
  box-shadow: 0 8px 16px rgba(12, 30, 23, 0.16);
}

.resource-customer-sub-properties-add .sub-properties-tools-section,
.resource-customer-sub-properties-add .sub-properties-hvac-preview {
  padding: 0.85rem;
}

.resource-customer-sub-properties-add .sub-properties-tools-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.resource-customer-sub-properties-add .sub-properties-actions-divider {
  border-top-color: #2f5a4a;
}

.resource-customer-sub-properties-add .sub-properties-primary-btn {
  border: 1px solid #2f5a4a;
  border-radius: 8px;
  background: linear-gradient(180deg, #2d4b3f 0%, #253E33 100%);
  color: #E4ECE8;
  font-weight: 700;
  box-shadow: 0 3px 10px rgba(12, 30, 23, 0.2);
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.resource-customer-sub-properties-add .sub-properties-primary-btn:hover {
  border-color: #4d816d;
  background: linear-gradient(180deg, #35604f 0%, #2b4d40 100%);
  color: #F2F5F3;
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(12, 30, 23, 0.26);
}

.resource-customer-sub-properties-add .sub-properties-action-link--secondary,
.resource-customer-sub-properties-add .default-hvac-form-actions .btn-secondary {
  border: 1px solid #2f5a4a;
  border-radius: 8px;
  background: linear-gradient(180deg, #253E33 0%, #22372d 100%);
  color: #D0DDD7;
  box-shadow: 0 3px 10px rgba(12, 30, 23, 0.14);
}

.resource-customer-sub-properties-add .sub-properties-action-link--secondary:hover,
.resource-customer-sub-properties-add .default-hvac-form-actions .btn-secondary:hover {
  border-color: #3a6553;
  background: linear-gradient(180deg, #35604f 0%, #2b4d40 100%);
  color: #F2F5F3;
}

.resource-customer-sub-properties-add .sub-properties-section-title {
  border: 1px solid #2f5a4a;
  background: #244236;
  color: #F2F5F3;
}

.resource-customer-sub-properties-add .sub-properties-hvac-preview {
  overflow: hidden;
}

.resource-customer-sub-properties-add .sub-properties-hvac-preview .sub-properties-section-title {
  margin: -0.85rem -0.85rem 0.85rem;
  border-radius: 8px 8px 0 0;
}

.resource-customer-sub-properties-add .sub-properties-hvac-type,
.resource-customer-sub-properties-add .sub-property-unit-label {
  color: #F2F5F3;
}

.resource-customer-sub-properties-add .sub-properties-hvac-type {
  margin-top: 0.1rem;
  font-size: 1.05rem;
  font-weight: 800;
}

.resource-customer-sub-properties-add .sub-properties-hvac-note {
  color: #B2C0B9;
  line-height: 1.5;
}

.resource-customer-sub-properties-add .sub-property-row {
  margin-bottom: 0.8rem;
}

.resource-customer-default-hvac-add #add-customer-form section.add-customer-panel:not(#ductwork-section):not(#refrigerant-section) .add-customer-form-row {
  margin-top: 0.9rem;
  margin-bottom: 0.9rem;
}

.resource-customer-default-hvac-add #add-customer-form > .add-customer-form-row {
  margin-bottom: 1rem;
}

.resource-customer-default-hvac-add #add-customer-panel {
  border: 1px solid #2f5a4a;
  border-radius: 0;
  background: #1d3329;
  box-shadow: none;
}

.resource-customer-default-hvac-add #add-customer-form {
  padding: 0;
  border: 0;
  background: transparent;
  gap: 0.95rem;
}

.resource-customer-default-hvac-add #add-customer-form > .add-customer-form-row:first-of-type {
  margin-top: 0.25rem;
}

.resource-customer-default-hvac-add #add-customer-form .add-customer-form-row {
  gap: 0.9rem;
}

.resource-customer-default-hvac-add #add-customer-form .add-customer-form-field {
  gap: 0.5rem;
}

.resource-customer-default-hvac-add #add-customer-form section.add-customer-panel {
  margin-top: 0.25rem;
  padding: 0.85rem;
}

.resource-customer-default-hvac-add #breadcrumb a,
.resource-customer-default-hvac-add #breadcrumb li[aria-current="page"] {
  color: #F2F5F3;
}

.resource-customer-default-hvac-add #breadcrumb li + li::before {
  color: #9db2aa;
}

.resource-customer-default-hvac-add #breadcrumb a:hover {
  color: #D0DDD7;
}

.resource-customer-default-hvac-add #add-customer-form section.add-customer-panel:not(#ductwork-section):not(#refrigerant-section) .add-customer-form-field {
  gap: 0.5rem;
}

.resource-customer-default-hvac-add #add-customer-form .hvac-other-field[hidden] {
  display: none !important;
}

.resource-customer-default-hvac-add #add-customer-form .manufactured-year-hint {
  margin-top: 0.15rem;
  font-size: 0.82rem;
  color: #9bcfb9;
  font-weight: 600;
}

.resource-customer-default-hvac-add #add-customer-form .manufactured-year-age {
  color: #B2C0B9;
  font-weight: 600;
  font-size: 0.85em;
}

.resource-customer-default-hvac-add .add-customer-panel {
  border: 1px solid #2f5a4a;
  border-radius: 8px;
  background: linear-gradient(180deg, #1f3b31 0%, #1d3329 100%);
  box-shadow: 0 8px 16px rgba(12, 30, 23, 0.16);
}

.resource-customer-default-hvac-add .add-customer-panel h2,
.resource-customer-default-hvac-add .add-customer-panel h3 {
  margin: 0 0 0.75rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid #2f5a4a;
  border-radius: 8px;
  background: #244236;
  color: #F2F5F3;
}

.resource-customer-default-hvac-add #add-customer-form .add-customer-form-field label {
  color: #F2F5F3;
}

.resource-customer-default-hvac-add #add-customer-form .add-customer-form-field input,
.resource-customer-default-hvac-add #add-customer-form .add-customer-form-field select,
.resource-customer-default-hvac-add #add-customer-form .add-customer-form-field textarea {
  border: 1px solid #2f5a4a;
  border-radius: 8px;
  background: #223a30 !important;
  color: #F2F5F3;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.resource-customer-default-hvac-add #add-customer-form .add-customer-form-field select {
  appearance: none;
  -webkit-appearance: none;
  color-scheme: dark;
  background-image:
    linear-gradient(45deg, transparent 50%, #D0DDD7 50%),
    linear-gradient(135deg, #D0DDD7 50%, transparent 50%);
  background-color: #223a30 !important;
}

.resource-customer-default-hvac-add #add-customer-form .add-customer-form-field input {
  background-color: #223a30 !important;
}

.resource-customer-default-hvac-add #add-customer-form .add-customer-form-field textarea {
  background-color: #223a30 !important;
}

.resource-customer-default-hvac-add #add-customer-form .add-customer-form-field select option {
  background: #1d3329;
  color: #F2F5F3;
}

.resource-customer-default-hvac-add #add-customer-form .add-customer-form-field textarea {
  min-height: 44px;
}

.resource-customer-default-hvac-add #add-customer-form .add-customer-form-field input::placeholder,
.resource-customer-default-hvac-add #add-customer-form .add-customer-form-field textarea::placeholder {
  color: #9db2aa;
}

.resource-customer-default-hvac-add #add-customer-form .add-customer-form-field input:focus,
.resource-customer-default-hvac-add #add-customer-form .add-customer-form-field select:focus,
.resource-customer-default-hvac-add #add-customer-form .add-customer-form-field textarea:focus {
  outline: 2px solid #00A86B;
  outline-offset: 1px;
  border-color: #00A86B;
}

.resource-customer-default-hvac-add #add-customer-form .form-field-input-error {
  border-color: #9a3535 !important;
  box-shadow: 0 0 0 3px rgba(154, 53, 53, 0.18);
  background: #402424;
}

.resource-customer-default-hvac-add .field-validation-error.is-visible,
.resource-customer-default-hvac-add .form-field-error {
  color: #f8d8d8;
}

.resource-customer-default-hvac-add .hvac-range-separator {
  color: #D0DDD7;
}

.resource-customer-default-hvac-add .default-hvac-form-actions {
  margin-top: 1rem;
}

.resource-customer-default-hvac-add .default-hvac-form-actions .btn-secondary {
  border: 1px solid #2f5a4a;
  border-radius: 8px;
  background: #253E33;
  color: #B2C0B9;
}

.resource-customer-default-hvac-add #add-customer-form-actions button {
  border: 1px solid #2f5a4a;
  border-radius: 8px;
  background: linear-gradient(180deg, #2d4b3f 0%, #253E33 100%);
  color: #E4ECE8;
  font-weight: 700;
  box-shadow: 0 3px 10px rgba(12, 30, 23, 0.2);
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.resource-customer-default-hvac-add #add-customer-form-actions button:hover {
  border-color: #4d816d;
  background: linear-gradient(180deg, #35604f 0%, #2b4d40 100%);
  color: #F2F5F3;
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(12, 30, 23, 0.26);
}

.resource-customer-default-hvac-add #add-customer-form-actions button:disabled {
  border-color: #2f5a4a;
  background: #22372d;
  color: #8C9A93;
  box-shadow: none;
  transform: none;
}

.resource-customer-default-hvac-add .default-hvac-form-actions .btn-secondary:hover {
  border-color: #3a6553;
  background: #2d4b3f;
  color: #D0DDD7;
}

.invoice-public-main-container {
  width: min(1080px, calc(100vw - 2rem));
  margin: 1rem auto;
}

.resource-invoice-view .invoice-inline-action-form {
  display: inline;
}

.resource-invoice-view .invoice-banner {
  margin: 0.6rem 0 1rem;
  padding: 0.8rem 1rem;
  border: 1px solid #2f5a4a;
  border-radius: 4px;
  background: #223a30;
}

.resource-invoice-view .invoice-banner p {
  margin: 0;
  color: #F2F5F3;
  font-weight: 600;
}

.resource-invoice-view .invoice-banner-success {
  border-color: #2f5a4a;
  background: #244236;
}

.resource-invoice-view .invoice-banner-neutral {
  border-color: #3a6553;
  background: #2d4b3f;
}

.resource-invoice-view .invoice-banner-warning {
  border-color: #9d7b2f;
  background: #4e3f1f;
}

.resource-invoice-view .invoice-banner-danger {
  border-color: #8a3b3b;
  background: #4f2a2a;
}

.resource-invoice-view .invoice-modal-stack-block {
  margin: 0;
}

.resource-invoice-view .invoice-modal-step-text {
  margin-bottom: 1rem;
}

.resource-invoice-view .invoice-modal-pricing-summary,
.resource-invoice-view .invoice-modal-amount-row {
  margin-bottom: 1rem;
}

.resource-invoice-view .invoice-payment-actions-vertical {
  flex-direction: column;
  align-items: stretch;
}

.resource-invoice-view .invoice-cash-balance-text {
  margin: 0.5rem 0 1rem;
}

.resource-invoice-view .invoice-modal-actions-compact {
  padding: 0;
  margin-top: 0.8rem;
}

.resource-invoice-view .invoice-warning-text {
  color: #d5b15d;
}

.invoice-public-main-container #view-job-panel.resource-invoice-public {
  border: 1px solid #00A86B;
  border-radius: 0;
  background: #1D3329;
  padding: 0.75rem;
}

.invoice-public-main-container #view-job-panel.resource-invoice-public #breadcrumb {
  border-bottom: 1px solid #2f5a4a;
  background: #1D3329;
}

.invoice-public-main-container #view-job-panel.resource-invoice-public #breadcrumb a,
.invoice-public-main-container #view-job-panel.resource-invoice-public #breadcrumb li,
.invoice-public-main-container #view-job-panel.resource-invoice-public #view-job-details > h2,
.invoice-public-main-container #view-job-panel.resource-invoice-public .estimate-stack-block h3,
.invoice-public-main-container #view-job-panel.resource-invoice-public .view-job-detail-item h4,
.invoice-public-main-container #view-job-panel.resource-invoice-public .view-job-detail-item p,
.invoice-public-main-container #view-job-panel.resource-invoice-public .estimate-line-item-title,
.invoice-public-main-container #view-job-panel.resource-invoice-public .estimate-line-item-amount,
.invoice-public-main-container #view-job-panel.resource-invoice-public .estimate-pricing-row,
.invoice-public-main-container #view-job-panel.resource-invoice-public .estimate-pricing-total,
.invoice-public-main-container #view-job-panel.resource-invoice-public .estimate-customer-status-text,
.invoice-public-main-container #view-job-panel.resource-invoice-public .note-card-text {
  color: #F2F5F3;
}

.invoice-public-main-container #view-job-panel.resource-invoice-public .estimate-line-item-meta {
  color: #B2C0B9;
}

.invoice-public-main-container #view-job-panel.resource-invoice-public .estimate-stack-block {
  border: 1px solid #00A86B;
  border-radius: 0;
  background: #1D3329;
  padding: 0.7rem;
}

.invoice-public-main-container #view-job-panel.resource-invoice-public .estimate-stack-block h3 {
  text-align: center;
  background: #00A86B;
  color: #F2F5F3;
  margin: -0.7rem -0.7rem 0.75rem;
  padding: 0.6rem 0.75rem;
}

.invoice-public-main-container #view-job-panel.resource-invoice-public .estimate-pricing-summary {
  border: 1px solid #2f5a4a;
  border-radius: 8px;
  background: #223a30;
  padding: 0.5rem 0.7rem;
}

.invoice-public-main-container #view-job-panel.resource-invoice-public .estimate-pricing-row {
  border-bottom: 1px solid #2f5a4a;
}

.invoice-public-main-container #view-job-panel.resource-invoice-public .estimate-pricing-total {
  border-top-color: #2f5a4a;
}

.invoice-public-main-container #view-job-panel.resource-invoice-public .estimate-customer-actions-block {
  text-align: left;
}

.invoice-public-main-container #view-job-panel.resource-invoice-public .invoice-payment-options {
  text-align: center;
}

.invoice-public-main-container #view-job-panel.resource-invoice-public .invoice-payment-options-divider {
  border-left-color: #2f5a4a;
}

.invoice-public-main-container #view-job-panel.resource-invoice-public .invoice-payment-qr-title {
  color: #F2F5F3;
}

.invoice-public-main-container #view-job-panel.resource-invoice-public .invoice-payment-qr-caption {
  color: #B2C0B9;
}

.invoice-public-main-container #view-job-panel.resource-invoice-public .estimate-customer-actions {
  justify-content: flex-start;
}

.invoice-public-main-container #view-job-panel.resource-invoice-public .invoice-payment-options .estimate-customer-actions {
  justify-content: center;
}

.invoice-public-main-container #view-job-panel.resource-invoice-public .estimate-customer-action-btn {
  min-width: 200px;
  border: 1px solid #2f5a4a;
  border-radius: 8px;
  background: #253E33;
  color: #D0DDD7;
}

.invoice-public-main-container #view-job-panel.resource-invoice-public .estimate-customer-action-btn:hover {
  border-color: #3a6553;
  background: #2d4b3f;
  color: #F2F5F3;
}

.invoice-public-main-container #view-job-panel.resource-invoice-public .estimate-customer-action-btn-accept {
  border-color: #00A86B;
  background: #00A86B;
  color: #0B120F;
}

.invoice-public-main-container #view-job-panel.resource-invoice-public .estimate-customer-action-btn-accept:hover {
  border-color: #009863;
  background: #009863;
  color: #0B120F;
}

#payment-options-modal {
  background-color: rgba(6, 14, 10, 0.66);
  backdrop-filter: blur(2px);
}

#payment-options-modal .modal-content {
  width: min(640px, 94vw);
  max-width: 640px;
  border: 1px solid #2f5a4a;
  border-radius: 10px;
  background: linear-gradient(180deg, #223a30 0%, #1d3329 100%);
  box-shadow: 0 20px 48px rgba(5, 15, 11, 0.45);
}

#payment-options-modal .modal-header {
  padding: 0.95rem 1rem;
  border-bottom: 1px solid #2f5a4a;
  background: #244236;
}

#payment-options-modal .modal-header h2,
#payment-options-modal .modal-close-btn,
#payment-options-modal .estimate-customer-status-text,
#payment-options-modal .estimate-pricing-row,
#payment-options-modal .estimate-pricing-total,
#payment-options-modal .add-customer-form-field label,
#payment-options-modal .add-customer-form-field input,
#payment-options-modal .add-customer-form-field textarea {
  color: #F2F5F3;
}

#payment-options-modal .modal-close-btn {
  border: 1px solid #2f5a4a;
  border-radius: 6px;
  background: #253E33;
}

#payment-options-modal .modal-close-btn:hover {
  border-color: #3a6553;
  background: #2d4b3f;
}

#payment-options-modal .estimate-stack-block {
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 1.25rem 1.25rem 1.5rem;
}

#payment-options-modal .invoice-payment-actions-vertical {
  margin-top: 1.5rem;
}

#payment-options-modal .estimate-pricing-summary {
  border: 1px solid #2f5a4a;
  border-radius: 8px;
  background: #1d3329;
  padding: 0.55rem 0.7rem;
}

#payment-options-modal .estimate-pricing-row {
  border-bottom: 1px solid #2f5a4a;
}

#payment-options-modal .estimate-pricing-row:last-child {
  border-bottom: 0;
}

#payment-options-modal .add-customer-form-field input,
#payment-options-modal .add-customer-form-field textarea {
  border: 1px solid #2f5a4a;
  border-radius: 8px;
  background: #253E33;
}

#payment-options-modal .add-customer-form-field input::placeholder,
#payment-options-modal .add-customer-form-field textarea::placeholder {
  color: #a6b8b1;
}

#payment-options-modal .add-customer-form-field input:focus,
#payment-options-modal .add-customer-form-field textarea:focus {
  border-color: #5fa3d3;
  outline: 2px solid rgba(95, 163, 211, 0.3);
  outline-offset: 1px;
}

#payment-options-modal .estimate-customer-action-btn,
#payment-options-modal .modal-send-btn,
#payment-options-modal .modal-cancel-btn {
  border: 1px solid #2f5a4a;
  border-radius: 8px;
  background: #253E33;
  color: #D0DDD7;
}

#payment-options-modal .estimate-customer-action-btn:hover,
#payment-options-modal .modal-send-btn:hover,
#payment-options-modal .modal-cancel-btn:hover {
  border-color: #3a6553;
  background: #2d4b3f;
  color: #F2F5F3;
}

#payment-options-modal .estimate-customer-action-btn-accept,
#payment-options-modal .modal-send-btn {
  border-color: #00A86B;
  background: #00A86B;
  color: #0B120F;
}

#payment-options-modal .estimate-customer-action-btn-accept:hover,
#payment-options-modal .modal-send-btn:hover {
  border-color: #009863;
  background: #009863;
  color: #0B120F;
}

#payment-options-modal .estimate-customer-action-btn:disabled,
#payment-options-modal .modal-send-btn:disabled,
#payment-options-modal .modal-cancel-btn:disabled {
  opacity: 0.45;
}

#payment-options-modal .modal-actions {
  border-top: 1px solid #2f5a4a;
  padding: 1rem 1.25rem 1.25rem;
}

.invoice-email-modal {
  background-color: rgba(6, 14, 10, 0.66);
  backdrop-filter: blur(2px);
}

.invoice-email-modal .modal-content {
  width: min(700px, 94vw);
  max-width: 700px;
  border: 1px solid #2f5a4a;
  border-radius: 10px;
  background: linear-gradient(180deg, #223a30 0%, #1d3329 100%);
  box-shadow: 0 20px 48px rgba(5, 15, 11, 0.45);
}

.invoice-email-modal .modal-header {
  padding: 0.95rem 1rem;
  border-bottom: 1px solid #2f5a4a;
  background: #244236;
}

.invoice-email-modal .modal-header h2,
.invoice-email-modal .modal-close-btn,
.invoice-email-modal .form-group label,
.invoice-email-modal .form-group input,
.invoice-email-modal .form-group textarea {
  color: #F2F5F3;
}

.invoice-email-modal .modal-close-btn {
  border: 1px solid #2f5a4a;
  border-radius: 6px;
  background: #253E33;
}

.invoice-email-modal .modal-close-btn:hover {
  border-color: #3a6553;
  background: #2d4b3f;
}

.invoice-email-modal #email-estimate-form {
  padding: 0.95rem 1rem 1rem;
}

.invoice-email-modal .form-group {
  margin-bottom: 0.85rem;
}

.invoice-email-modal .form-group input,
.invoice-email-modal .form-group textarea {
  border: 1px solid #2f5a4a;
  border-radius: 8px;
  background: #253E33;
}

.invoice-email-modal .form-group input::placeholder,
.invoice-email-modal .form-group textarea::placeholder {
  color: #a6b8b1;
}

.invoice-email-modal .form-group input:focus,
.invoice-email-modal .form-group textarea:focus {
  border-color: #5fa3d3;
  outline: 2px solid rgba(95, 163, 211, 0.3);
  outline-offset: 1px;
}

.invoice-email-modal .email-readonly-input {
  background: #1f342b;
}

.invoice-email-modal .modal-actions {
  border-top: 1px solid #2f5a4a;
  padding-top: 0.8rem;
}

.invoice-email-modal .modal-send-btn,
.invoice-email-modal .modal-cancel-btn {
  border: 1px solid #2f5a4a;
  border-radius: 8px;
  background: #253E33;
  color: #D0DDD7;
}

.invoice-email-modal .modal-send-btn {
  border-color: #00A86B;
  background: #00A86B;
  color: #0B120F;
}

.invoice-email-modal .modal-send-btn:hover {
  border-color: #009863;
  background: #009863;
  color: #0B120F;
}

.invoice-email-modal .modal-cancel-btn:hover {
  border-color: #3a6553;
  background: #2d4b3f;
  color: #F2F5F3;
}

/* Email Estimate Modal - Updated styling */
#email-estimate-modal {
  background-color: rgba(6, 14, 10, 0.66);
  backdrop-filter: blur(2px);
}

#email-estimate-modal .modal-content {
  width: min(700px, 94vw);
  max-width: 700px;
  border: 1px solid #2f5a4a;
  border-radius: 10px;
  background: linear-gradient(180deg, #223a30 0%, #1d3329 100%);
  box-shadow: 0 20px 48px rgba(5, 15, 11, 0.45);
}

#email-estimate-modal .modal-header {
  padding: 0.95rem 1rem;
  border-bottom: 1px solid #2f5a4a;
  background: #244236;
}

#email-estimate-modal .modal-header h2,
#email-estimate-modal .modal-close-btn,
#email-estimate-modal .form-group label,
#email-estimate-modal .form-group input,
#email-estimate-modal .form-group textarea {
  color: #F2F5F3;
}

#email-estimate-modal .modal-close-btn {
  border: 1px solid #2f5a4a;
  border-radius: 6px;
  background: #253E33;
}

#email-estimate-modal .modal-close-btn:hover {
  border-color: #3a6553;
  background: #2d4b3f;
}

#email-estimate-modal #email-estimate-form {
  padding: 0.95rem 1rem 1rem;
}

#email-estimate-modal .form-group {
  margin-bottom: 0.85rem;
}

#email-estimate-modal .form-group input,
#email-estimate-modal .form-group textarea {
  border: 1px solid #2f5a4a;
  border-radius: 8px;
  background: #253E33;
}

#email-estimate-modal .form-group input::placeholder,
#email-estimate-modal .form-group textarea::placeholder {
  color: #a6b8b1;
}

#email-estimate-modal .form-group input:focus,
#email-estimate-modal .form-group textarea:focus {
  border-color: #5fa3d3;
  outline: 2px solid rgba(95, 163, 211, 0.3);
  outline-offset: 1px;
}

#email-estimate-modal .email-readonly-input {
  background: #1f342b;
}

#email-estimate-modal .modal-actions {
  border-top: 1px solid #2f5a4a;
  padding-top: 0.8rem;
}

#email-estimate-modal .modal-send-btn,
#email-estimate-modal .modal-cancel-btn {
  border: 1px solid #2f5a4a;
  border-radius: 8px;
  background: #253E33;
  color: #D0DDD7;
}

#email-estimate-modal .modal-send-btn {
  border-color: #00A86B;
  background: #00A86B;
  color: #0B120F;
}

#email-estimate-modal .modal-send-btn:hover {
  border-color: #009863;
  background: #009863;
  color: #0B120F;
}

#email-estimate-modal .modal-cancel-btn:hover {
  border-color: #3a6553;
  background: #2d4b3f;
  color: #F2F5F3;
}

.resource-invoice-view .estimate-line-items {
  border: 1px solid #2f5a4a;
  border-radius: 8px;
  background: linear-gradient(180deg, #223a30 0%, #1d3329 100%);
  overflow: hidden;
}

.resource-invoice-view .estimate-line-item-row {
  border-bottom: 1px solid #2f5a4a;
  background: transparent;
}

.resource-invoice-view .estimate-line-item-row:last-child {
  border-bottom: 0;
}

.resource-invoice-view .estimate-line-item-title,
.resource-invoice-view .estimate-line-item-amount,
.resource-invoice-view .note-card-text {
  color: #f5f8f6;
}

.resource-invoice-view .estimate-line-item-meta {
  color: #c8d3ce;
}

.resource-invoice-view .note-card {
  border: 1px solid #2f5a4a;
  border-radius: 8px;
  background: linear-gradient(180deg, #223a30 0%, #1d3329 100%);
  box-shadow: 0 8px 16px rgba(12, 30, 23, 0.18);
}

@media (max-width: 768px) {
  .resource-customer-sub-properties-add .sub-properties-tools-row {
    grid-template-columns: 1fr;
  }
}

.resource-estimate-view #view-service-actions {
  border: 1px solid #2f5a4a;
  border-radius: 0;
  background: #1D3329;
  box-shadow: none;
  margin-bottom: 1rem;
}

.resource-estimate-view #view-service-actions-header {
  border-bottom: 1px solid #2f5a4a;
  background: #244236;
  color: #F2F5F3;
}

.resource-estimate-view #view-service-actions-row {
  gap: 0.55rem;
}

.resource-estimate-view #view-service-actions-row .view-estimate-action-secondary {
  display: inline-block;
  box-sizing: border-box;
  padding: 0.55rem 0.95rem;
  border: 1px solid #2f5a4a;
  border-radius: 4px;
  background: #253E33;
  color: #B2C0B9;
  font-weight: 600;
  text-decoration: none;
}

.resource-estimate-view #view-service-actions-row .view-estimate-action-secondary:hover {
  border-color: #3a6553;
  background: #2d4b3f;
  color: #D0DDD7;
  text-decoration: none;
}

.resource-estimate-view .view-estimate-pdf-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 0.55rem 0.95rem;
  border: 1px solid #2f5a4a;
  border-radius: 4px;
  background: #253E33;
  color: #B2C0B9;
  font-weight: 600;
  text-decoration: none;
}

.resource-estimate-view .view-estimate-pdf-link:hover {
  border-color: #3a6553;
  background: #2d4b3f;
  color: #D0DDD7;
  text-decoration: none;
}

@media (max-width: 768px) {
  .resource-estimate-view #view-service-actions-row .view-estimate-action-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 calc(50% - 0.5rem);
    width: 100%;
    min-width: 0;
    padding: 0.55rem 0.75rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .resource-estimate-view #view-service-actions-row .estimate-email-btn {
    flex: 1 1 100%;
  }
}

.resource-estimate-view #breadcrumb a,
.resource-estimate-view #breadcrumb li,
.resource-estimate-view #view-job-details > h2,
.resource-estimate-view #view-job-progress > h2,
.resource-estimate-view .estimate-stack-block h3,
.resource-estimate-view .view-job-detail-item h4,
.resource-estimate-view .view-job-detail-item p,
.resource-estimate-view .estimate-line-item-title,
.resource-estimate-view .estimate-line-item-amount,
.resource-estimate-view .estimate-pricing-row,
.resource-estimate-view .estimate-pricing-total,
.resource-estimate-view .estimate-customer-status-text,
.resource-estimate-view .note-card-date,
.resource-estimate-view .note-card-text {
  color: #F2F5F3;
}

.resource-estimate-view .estimate-line-item-meta,
.resource-estimate-view .progress-step-label,
.resource-estimate-view .estimate-customer-status-text {
  color: #B2C0B9;
}

.resource-estimate-view #view-job-details {
  display: grid;
  gap: 1rem;
}

.resource-estimate-view .estimate-stack-block {
  border: 1px solid #00A86B;
  border-radius: 0;
  background: #1D3329;
  color: #F2F5F3;
  padding: 0.7rem;
}

.resource-estimate-view .estimate-stack-block h3 {
  text-align: center;
  background: #00A86B;
  color: #F2F5F3;
  margin: -0.7rem -0.7rem 0.75rem;
  padding: 0.6rem 0.75rem;
}

.resource-estimate-view .estimate-line-items,
.resource-estimate-view .estimate-line-item-row,
.resource-estimate-view .estimate-pricing-row,
.resource-estimate-view .modal-header,
.resource-estimate-view .modal-actions {
  border-color: #2f5a4a;
}

.resource-estimate-view .estimate-line-items {
  border: 1px solid #2f5a4a;
  border-radius: 8px;
  background: linear-gradient(180deg, #223a30 0%, #1d3329 100%);
  box-shadow: 0 8px 16px rgba(12, 30, 23, 0.18);
}

.resource-estimate-view .estimate-line-item-row {
  background: transparent;
}

.resource-estimate-view .note-card,
.resource-estimate-view .estimate-signature-modal-content,
.resource-estimate-view .modal-content {
  border: 1px solid var(--kl-border);
  border-radius: 4px;
  background: var(--kl-surface);
}

.resource-estimate-view .note-card {
  border: 1px solid #2f5a4a;
  border-radius: 8px;
  background: linear-gradient(180deg, #223a30 0%, #1d3329 100%);
  box-shadow: 0 8px 16px rgba(12, 30, 23, 0.18);
  padding: 1rem 1.05rem;
  margin: 0;
}

.resource-estimate-view .note-card-text {
  color: #f5f8f6;
  font-size: 0.96rem;
  line-height: 1.55;
}

.resource-estimate-view .estimate-stack-block > .note-card {
  margin-top: 0.05rem;
}

.resource-estimate-view .progress-step-circle {
  background-color: #253E33;
  border-color: #2f5a4a;
  color: #B2C0B9;
}

.resource-estimate-view .progress-step-connector {
  background-color: #2f5a4a;
}

.resource-estimate-view .progress-step.is-done .progress-step-circle {
  background-color: #00A86B;
  border-color: #00A86B;
  color: #0B120F;
}

.resource-estimate-view .progress-step.is-active .progress-step-circle {
  background-color: #244236;
  border-color: #5fa3d3;
  color: #5fa3d3;
}

.resource-estimate-view .progress-step-connector.is-done {
  background-color: #00A86B;
}

.resource-estimate-view .progress-step-connector.is-active-right {
  background-color: #5fa3d3;
}

.resource-estimate-view .estimate-services-list {
  border: 0;
  background: transparent;
  display: grid;
  gap: 0.65rem;
}

#view-job-panel.resource-invoice-view .estimate-line-items {
  border: 1px solid #2f5a4a;
  border-radius: 8px;
  background: linear-gradient(180deg, #223a30 0%, #1d3329 100%);
  overflow: hidden;
}

#view-job-panel.resource-invoice-view .estimate-line-item-row {
  border-bottom: 1px solid #2f5a4a;
  background: transparent;
}

#view-job-panel.resource-invoice-view .estimate-line-item-row:last-child {
  border-bottom: 0;
}

#view-job-panel.resource-invoice-view .note-card {
  border: 1px solid #2f5a4a;
  border-radius: 8px;
  background: linear-gradient(180deg, #223a30 0%, #1d3329 100%);
  box-shadow: 0 8px 16px rgba(12, 30, 23, 0.18);
}

.resource-estimate-view .estimate-service-card {
  border: 1px solid #2f5a4a;
  border-radius: 4px;
  background: #223a30;
  border-bottom: 1px solid #2f5a4a;
  box-shadow: 0 8px 16px rgba(12, 30, 23, 0.18);
  padding: 0.85rem 0.95rem;
}

.resource-estimate-view .estimate-service-card-main {
  display: grid;
  gap: 0.2rem;
}

.resource-estimate-view .estimate-service-card .estimate-line-item-title {
  color: #f5f8f6;
}

.resource-estimate-view .estimate-service-card .estimate-line-item-meta {
  color: #c8d3ce;
}

.resource-estimate-view .estimate-service-card-amount {
  color: #f5f8f6;
  font-size: 1rem;
}

.resource-job-view #view-job-actions {
  border: 1px solid #2f5a4a;
  border-radius: 0;
  background: #1D3329;
  box-shadow: none;
  margin-bottom: 1rem;
}

.resource-job-view #view-job-actions-header {
  border-bottom: 1px solid #2f5a4a;
  background: #244236;
  color: #F2F5F3;
}

.resource-job-view #view-job-actions-row {
  gap: 0.55rem;
}

.resource-job-view #view-job-actions-row a,
.resource-job-view #view-job-actions-row button {
  border: 1px solid #2f5a4a;
  border-radius: 4px;
  background: #253E33;
  color: #B2C0B9;
  text-decoration: none;
}

.resource-job-view #view-job-actions-row a:hover,
.resource-job-view #view-job-actions-row button:hover {
  border-color: #3a6553;
  background: #2d4b3f;
  color: #D0DDD7;
  text-decoration: none;
}

.resource-job-view #view-job-recurring-status-note {
  border: 1px solid #2f5a4a !important;
  background: #223a30 !important;
}

.resource-job-view #view-job-recurring-status-note p {
  color: #d0ddd7 !important;
}

.resource-job-view #view-job-missing-scheduling-note {
  border: 1px solid #4f5a32 !important;
  background: #2f3220 !important;
}

.resource-job-view #view-job-missing-scheduling-note p {
  color: #e2dbb7 !important;
}

.resource-job-view #breadcrumb a,
.resource-job-view #breadcrumb li,
.resource-job-view #view-job-details > h2,
.resource-job-view #view-job-progress > h2,
.resource-job-view .view-job-section-column > h3,
.resource-job-view .view-job-detail-item h4,
.resource-job-view .view-job-detail-item p,
.resource-job-view .note-card-date,
.resource-job-view .note-card-text,
.resource-job-view .view-job-line-item,
.resource-job-view .view-job-line-item strong {
  color: #F2F5F3;
}

.resource-job-view .view-job-line-divider,
.resource-job-view .view-job-action-blocked,
.resource-job-view .view-job-internal-note-form textarea::placeholder,
.resource-job-view .progress-step-label {
  color: #B2C0B9;
}

.resource-job-view #view-job-details {
  display: grid;
  gap: 1rem;
}

.resource-job-view .view-job-section-row {
  border: 0;
  border-top: 0;
  background: transparent;
  margin: 0;
  gap: 1rem;
}

.resource-job-view .view-job-section-column,
.resource-job-view .view-job-section-column:first-child {
  border: 1px solid #00A86B;
  border-radius: 0;
  background: #1D3329;
  color: #F2F5F3;
  padding: 0.7rem;
}

.resource-job-view .view-job-section-column > h3 {
  text-align: center;
  background: #00A86B;
  color: #F2F5F3;
  margin: -0.7rem -0.7rem 0.75rem;
  padding: 0.6rem 0.75rem;
}

.resource-job-view .view-job-line-item {
  border: 1px solid #2f5a4a;
  border-radius: 4px;
  background: #223a30;
  padding: 0.65rem 0.75rem;
}

.resource-job-view .note-card,
.resource-job-view .view-job-internal-note-form textarea,
.resource-job-view .modal-content,
.resource-job-view .modal-header,
.resource-job-view .modal-actions,
.resource-job-view .form-group input,
.resource-job-view .form-group textarea {
  border-color: #2f5a4a;
  background: var(--kl-surface);
  color: #F2F5F3;
}

.resource-job-view .view-job-internal-note-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.55rem;
}

.resource-job-view .view-job-internal-note-actions .home-latest-action-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.55rem 0.95rem;
  border: 1px solid #00A86B;
  border-radius: 4px;
  background: #00A86B;
  color: #0B120F;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.resource-job-view .view-job-internal-note-actions .home-latest-action-link:hover {
  border-color: #009863;
  background: #009863;
  color: #0B120F;
  text-decoration: none;
}

.resource-job-view .view-job-internal-note-actions .home-latest-action-link:focus-visible {
  outline: 2px solid #5fa3d3;
  outline-offset: 2px;
}

.resource-job-view .view-job-customer-call-button {
  min-width: 40px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid #2f5a4a;
  border-radius: 4px;
  background: #253E33;
  color: #D0DDD7;
  box-shadow: 0 6px 14px rgba(12, 30, 23, 0.16);
}

.resource-job-view .view-job-customer-call-button:hover {
  border-color: #3a6553;
  background: #2d4b3f;
  color: #F2F5F3;
}

.resource-job-view .view-job-customer-call-button:focus-visible {
  outline: 2px solid #5fa3d3;
  outline-offset: 2px;
}

.resource-job-view .form-group label,
.resource-job-view .modal-header h2,
.resource-job-view .modal-close-btn {
  color: #F2F5F3;
}

.resource-job-view #view-job-invoices-list .estimate-card-wrapper .view-customer-card-link {
  border-color: #2f5a4a;
  background: #223a30;
}

.resource-job-view #view-job-invoices-list .estimate-card-wrapper .view-customer-card-link h4,
.resource-job-view #view-job-invoices-list .estimate-card-wrapper .view-customer-card-link p {
  color: #F2F5F3;
}

.resource-job-view #view-job-invoices-list .estimate-email-btn {
  border-color: #2f5a4a;
  background: #253E33;
  color: #D0DDD7;
  box-shadow: 0 6px 14px rgba(12, 30, 23, 0.16);
}

.resource-job-view #view-job-invoices-list .estimate-email-btn:hover {
  border-color: #3a6553;
  background: #2d4b3f;
  color: #F2F5F3;
}

.resource-job-view #view-job-invoices-list .estimate-email-btn:focus-visible {
  outline: 2px solid #5fa3d3;
  outline-offset: 2px;
}

.resource-job-view .progress-step-circle {
  background-color: #253E33;
  border-color: #2f5a4a;
  color: #B2C0B9;
}

.resource-job-view .progress-step-connector {
  background-color: #2f5a4a;
}

.resource-job-view .progress-step.is-done .progress-step-circle {
  background-color: #00A86B;
  border-color: #00A86B;
  color: #0B120F;
}

.resource-job-view .progress-step.is-active .progress-step-circle {
  background-color: #244236;
  border-color: #5fa3d3;
  color: #5fa3d3;
}

.resource-job-view .progress-step-connector.is-done {
  background-color: #00A86B;
}

.resource-job-view .progress-step-connector.is-active-right {
  background-color: #5fa3d3;
}

.resource-job-view .view-job-internal-note-form textarea:focus,
.resource-job-view .form-group input:focus,
.resource-job-view .form-group textarea:focus {
  outline: 2px solid #5fa3d3;
  outline-offset: 1px;
}

.resource-job-update,
.resource-estimate-update {
  color: #F2F5F3;
}

.resource-job-update h1,
.resource-estimate-update h1 {
  margin: 0 -0.75rem 0;
  background: #00A86B;
  color: #F2F5F3;
}

.resource-job-update #breadcrumb,
.resource-estimate-update #breadcrumb {
  border-bottom: 1px solid #2f5a4a;
  background: #1D3329;
}

.resource-job-update #breadcrumb a,
.resource-job-update #breadcrumb li,
.resource-estimate-update #breadcrumb a,
.resource-estimate-update #breadcrumb li {
  color: #D0DDD7;
}

.resource-job-update #create-job-form,
.resource-estimate-update #create-job-form {
  border: 1px solid #00A86B;
  background: #1D3329;
  border-radius: 0;
  padding: 0.85rem;
}

.resource-job-update #create-job-form .create-job-form-section-header,
.resource-estimate-update #create-job-form .create-job-form-section-header {
  margin: 1rem 0 0.75rem;
  border-radius: 0;
  background: #00A86B;
  color: #F2F5F3;
}

.resource-job-update .add-customer-form-row,
.resource-estimate-update .add-customer-form-row {
  border: 1px solid #2f5a4a;
  background: #223a30;
  padding: 0.75rem;
  border-radius: 4px;
}

.resource-job-update .add-customer-form-field label,
.resource-estimate-update .add-customer-form-field label,
.resource-job-update .form-field-note,
.resource-estimate-update .form-field-note {
  color: #D0DDD7;
}

.resource-job-update .add-customer-form-field input,
.resource-job-update .add-customer-form-field select,
.resource-job-update .add-customer-form-field textarea,
.resource-estimate-update .add-customer-form-field input,
.resource-estimate-update .add-customer-form-field select,
.resource-estimate-update .add-customer-form-field textarea {
  border: 1px solid #2f5a4a;
  background: #1f342b;
  color: #F2F5F3;
}

.resource-job-update .add-customer-form-field select,
.resource-estimate-update .add-customer-form-field select {
  border-color: #3b6a58;
  background-color: #1f342b;
  background-image:
    linear-gradient(45deg, transparent 50%, #D0DDD7 50%),
    linear-gradient(135deg, #D0DDD7 50%, transparent 50%);
  background-position:
    calc(100% - 1.05rem) calc(50% + 1px),
    calc(100% - 0.75rem) calc(50% + 1px);
  background-size: 0.35rem 0.35rem, 0.35rem 0.35rem;
  background-repeat: no-repeat;
  padding-right: 2.3rem;
  border-radius: 8px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.resource-job-update .add-customer-form-field select:hover,
.resource-estimate-update .add-customer-form-field select:hover {
  border-color: #4a7f6a;
  background-color: #254136;
}

.resource-job-update .add-customer-form-field select:focus,
.resource-estimate-update .add-customer-form-field select:focus {
  box-shadow: 0 0 0 3px rgba(95, 163, 211, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.resource-job-update .add-customer-form-field select option,
.resource-estimate-update .add-customer-form-field select option {
  background-color: #1f342b;
  color: #F2F5F3;
}

.resource-job-update .add-customer-form-field input:focus,
.resource-job-update .add-customer-form-field select:focus,
.resource-job-update .add-customer-form-field textarea:focus,
.resource-estimate-update .add-customer-form-field input:focus,
.resource-estimate-update .add-customer-form-field select:focus,
.resource-estimate-update .add-customer-form-field textarea:focus {
  outline: 2px solid #5FA3D3;
  border-color: #5FA3D3;
}

.resource-job-update .job-client-label,
.resource-estimate-update .job-client-label,
.resource-job-update .job-property-address-preview,
.resource-estimate-update .job-property-address-preview,
.resource-job-update .job-property-address-preview-name,
.resource-estimate-update .job-property-address-preview-name,
.resource-job-update .job-client-name,
.resource-estimate-update .job-client-name {
  color: #F2F5F3;
}

.resource-job-update .job-property-address-preview,
.resource-estimate-update .job-property-address-preview {
  border-color: #2f5a4a;
  background: #1f342b;
}

.resource-job-update .job-property-add-button,
.resource-estimate-update .job-property-add-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  margin-top: 0.25rem;
  padding: 0.52rem 0.9rem;
  border: 1px solid #4d816d;
  border-radius: 8px;
  background: linear-gradient(180deg, #366352 0%, #2b4d40 100%);
  color: #EAF2EE;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  box-shadow: 0 3px 10px rgba(12, 30, 23, 0.2);
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.resource-job-update .job-property-add-button:hover,
.resource-estimate-update .job-property-add-button:hover {
  border-color: #62a086;
  background: linear-gradient(180deg, #3f705d 0%, #315847 100%);
  color: #F2F5F3;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(12, 30, 23, 0.26);
}

.resource-job-update .job-property-add-button:focus-visible,
.resource-estimate-update .job-property-add-button:focus-visible {
  outline: 2px solid #5FA3D3;
  outline-offset: 2px;
}

.resource-job-update #job-services-actions,
.resource-job-update #job-parts-actions,
.resource-job-update #job-labors-actions,
.resource-job-update #job-materials-actions,
.resource-job-update #job-equipments-actions,
.resource-job-update #job-discounts-actions,
.resource-estimate-update #job-services-actions,
.resource-estimate-update #job-parts-actions,
.resource-estimate-update #job-labors-actions,
.resource-estimate-update #job-materials-actions,
.resource-estimate-update #job-equipments-actions,
.resource-estimate-update #job-discounts-actions {
  margin-top: 0.15rem;
}

.resource-job-update #add-job-service-button,
.resource-job-update #add-job-part-button,
.resource-job-update #add-job-labor-button,
.resource-job-update #add-job-material-button,
.resource-job-update #add-job-equipment-button,
.resource-job-update #add-job-discount-button,
.resource-job-update #add-standalone-part-button,
.resource-job-update #add-standalone-material-button,
.resource-job-update #add-standalone-equipment-button,
.resource-estimate-update #add-job-service-button,
.resource-estimate-update #add-job-part-button,
.resource-estimate-update #add-job-labor-button,
.resource-estimate-update #add-job-material-button,
.resource-estimate-update #add-job-equipment-button,
.resource-estimate-update #add-job-discount-button,
.resource-estimate-update #add-standalone-part-button,
.resource-estimate-update #add-standalone-material-button,
.resource-estimate-update #add-standalone-equipment-button,
.resource-job-update #clear-date-time,
.resource-estimate-update #clear-date-time {
  padding: 0.55rem 0.95rem;
  border: 1px solid #2f5a4a;
  border-radius: 8px;
  background: linear-gradient(180deg, #2d4b3f 0%, #253E33 100%);
  color: #E4ECE8;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 3px 10px rgba(12, 30, 23, 0.2);
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.resource-job-update #add-job-service-button:hover,
.resource-job-update #add-job-part-button:hover,
.resource-job-update #add-job-labor-button:hover,
.resource-job-update #add-job-material-button:hover,
.resource-job-update #add-job-equipment-button:hover,
.resource-job-update #add-job-discount-button:hover,
.resource-job-update #add-standalone-part-button:hover,
.resource-job-update #add-standalone-material-button:hover,
.resource-job-update #add-standalone-equipment-button:hover,
.resource-estimate-update #add-job-service-button:hover,
.resource-estimate-update #add-job-part-button:hover,
.resource-estimate-update #add-job-labor-button:hover,
.resource-estimate-update #add-job-material-button:hover,
.resource-estimate-update #add-job-equipment-button:hover,
.resource-estimate-update #add-job-discount-button:hover,
.resource-estimate-update #add-standalone-part-button:hover,
.resource-estimate-update #add-standalone-material-button:hover,
.resource-estimate-update #add-standalone-equipment-button:hover,
.resource-job-update #clear-date-time:hover,
.resource-estimate-update #clear-date-time:hover {
  border-color: #4d816d;
  background: linear-gradient(180deg, #35604f 0%, #2b4d40 100%);
  color: #F2F5F3;
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(12, 30, 23, 0.26);
}

.resource-job-update #add-job-service-button:focus-visible,
.resource-job-update #add-job-part-button:focus-visible,
.resource-job-update #add-job-labor-button:focus-visible,
.resource-job-update #add-job-material-button:focus-visible,
.resource-job-update #add-job-equipment-button:focus-visible,
.resource-job-update #add-job-discount-button:focus-visible,
.resource-job-update #add-standalone-part-button:focus-visible,
.resource-job-update #add-standalone-material-button:focus-visible,
.resource-job-update #add-standalone-equipment-button:focus-visible,
.resource-estimate-update #add-job-service-button:focus-visible,
.resource-estimate-update #add-job-part-button:focus-visible,
.resource-estimate-update #add-job-labor-button:focus-visible,
.resource-estimate-update #add-job-material-button:focus-visible,
.resource-estimate-update #add-job-equipment-button:focus-visible,
.resource-estimate-update #add-job-discount-button:focus-visible,
.resource-estimate-update #add-standalone-part-button:focus-visible,
.resource-estimate-update #add-standalone-material-button:focus-visible,
.resource-estimate-update #add-standalone-equipment-button:focus-visible,
.resource-job-update #clear-date-time:focus-visible,
.resource-estimate-update #clear-date-time:focus-visible {
  outline: 2px solid #5FA3D3;
  outline-offset: 2px;
}

.resource-job-update .contextual-prompt,
.resource-estimate-update .contextual-prompt {
  border-color: #2f5a4a;
  background: #1f342b;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.resource-job-update .contextual-prompt > summary,
.resource-estimate-update .contextual-prompt > summary {
  background: linear-gradient(180deg, #2a4639 0%, #21382e 100%);
  color: #E4ECE8;
}

.resource-job-update .contextual-prompt > summary::after,
.resource-estimate-update .contextual-prompt > summary::after {
  color: #BFD0C8;
}

.resource-job-update .contextual-prompt-items,
.resource-estimate-update .contextual-prompt-items {
  border-top-color: #2f5a4a;
  background: #1f342b;
}

.resource-job-update .contextual-prompt-item,
.resource-estimate-update .contextual-prompt-item {
  border-color: #355b4b;
  background: #223a30;
}

.resource-job-update .contextual-prompt-item-name,
.resource-estimate-update .contextual-prompt-item-name {
  color: #DCE7E2;
}

.resource-job-update .contextual-prompt-item-add,
.resource-estimate-update .contextual-prompt-item-add {
  border-color: #3d6b5a;
  background: linear-gradient(180deg, #2d4b3f 0%, #253E33 100%);
  color: #E4ECE8;
}

.resource-job-update .contextual-prompt-item-add:hover,
.resource-estimate-update .contextual-prompt-item-add:hover {
  border-color: #4d816d;
  background: linear-gradient(180deg, #35604f 0%, #2b4d40 100%);
  color: #F2F5F3;
}

.resource-job-update .service-sub-item-row,
.resource-estimate-update .service-sub-item-row {
  border-color: #355b4b;
  background: linear-gradient(180deg, #223a30 0%, #1f342b 100%);
}

.resource-job-update .service-sub-item-name,
.resource-estimate-update .service-sub-item-name {
  color: #E4ECE8;
}

.resource-job-update .service-sub-item-price,
.resource-estimate-update .service-sub-item-price,
.resource-job-update .service-sub-item-serial-wrap input,
.resource-estimate-update .service-sub-item-serial-wrap input {
  border-color: #3d6b5a;
  background: #1f342b;
  color: #F2F5F3;
}

.resource-job-update .service-sub-item-included,
.resource-estimate-update .service-sub-item-included {
  border-color: #4d816d;
  background: #244236;
  color: #CDE4D8;
}

.resource-job-update .service-sub-item-remove,
.resource-estimate-update .service-sub-item-remove {
  border-color: #9a3535;
  background: #4c1f1f;
  color: #f8d8d8;
}

.resource-job-update .service-sub-item-remove:hover,
.resource-estimate-update .service-sub-item-remove:hover {
  background: #5e2727;
  border-color: #b24646;
}

.resource-job-update .service-sub-item-serial-wrap label,
.resource-estimate-update .service-sub-item-serial-wrap label {
  color: #BFD0C8;
}

@media (prefers-reduced-motion: reduce) {
  .service-sub-item-row.is-entering {
    animation: none;
  }
}

.resource-job-update #create-job-form .standalone-items-toggle,
.resource-estimate-update #create-job-form .standalone-items-toggle {
  border-color: #2f5a4a;
  background: #223a30;
}

.resource-job-update #create-job-form .standalone-items-toggle > summary,
.resource-estimate-update #create-job-form .standalone-items-toggle > summary {
  background: #00A86B;
  color: #F2F5F3;
}

.resource-job-update #create-job-form .standalone-items-actions,
.resource-job-update #job-standalone-items-list,
.resource-estimate-update #create-job-form .standalone-items-actions,
.resource-estimate-update #job-standalone-items-list {
  border-top-color: #2f5a4a;
  background: #1f342b;
}

.resource-job-update .job-row-remove-button,
.resource-estimate-update .job-row-remove-button {
  border-color: #7f2a2a;
  background: #4c1f1f;
  color: #f8d8d8;
}

.resource-job-update .job-row-remove-button:hover,
.resource-estimate-update .job-row-remove-button:hover {
  background: #5e2727;
  border-color: #9a3535;
}

.resource-job-update #create-job-form-actions button,
.resource-estimate-update #create-job-form-actions button {
  border: 1px solid #2f5a4a;
  background: #253E33;
  color: #F2F5F3;
}

.resource-job-update #create-job-form-actions button:hover,
.resource-estimate-update #create-job-form-actions button:hover {
  border-color: #3a6553;
  background: #2d4b3f;
}

/* Maintenance plan discount live preview banner */
.maintenance-plan-preview {
  margin: 1rem 0 0;
  border: 1px solid #2f5a4a;
  border-left: 3px solid #00A86B;
  border-radius: 6px;
  background: #1f342b;
  padding: 0.9rem 1rem;
  color: #F2F5F3;
}

.maintenance-plan-preview[hidden] {
  display: none;
}

.maintenance-plan-preview.is-info {
  border-left-color: #5a8c79;
}

.maintenance-plan-preview-head {
  font-weight: 700;
  font-size: 0.95rem;
  color: #56d6a0;
  margin-bottom: 0.5rem;
}

.maintenance-plan-preview.is-info .maintenance-plan-preview-head {
  color: #D0DDD7;
}

.maintenance-plan-preview-perks {
  margin: 0 0 0.6rem;
  padding-left: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.maintenance-plan-preview-perks li {
  color: #D0DDD7;
  font-size: 0.88rem;
}

.maintenance-plan-preview-totals {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  max-width: 320px;
  border-top: 1px solid #2f5a4a;
  padding-top: 0.6rem;
}

.maintenance-plan-preview-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.9rem;
  color: #D0DDD7;
}

.maintenance-plan-preview-savings {
  color: #56d6a0;
  font-weight: 600;
}

.maintenance-plan-preview-final {
  border-top: 1px solid #2f5a4a;
  padding-top: 0.35rem;
  margin-top: 0.15rem;
  font-weight: 700;
  font-size: 1rem;
  color: #F2F5F3;
}

.maintenance-plan-preview-note {
  margin: 0.6rem 0 0;
  font-size: 0.82rem;
  color: #9fb3a9;
}

.resource-customer-update {
  color: #F2F5F3;
}

.resource-customer-update h1 {
  margin: 0 -0.75rem 0;
  background: #00A86B;
  color: #F2F5F3;
}

.resource-customer-update #breadcrumb {
  border-bottom: 1px solid #2f5a4a;
  background: #1D3329;
}

.resource-customer-update #breadcrumb a,
.resource-customer-update #breadcrumb li {
  color: #D0DDD7;
}

.resource-customer-hvac-diagnostics-add #breadcrumb {
  border-bottom: 1px solid #C5C7CB;
  background: transparent;
}

.resource-customer-hvac-diagnostics-add #breadcrumb a {
  color: #F2F5F3;
}

.resource-customer-hvac-diagnostics-add #breadcrumb li[aria-current="page"] {
  color: #9db2aa;
}

.resource-customer-update #add-customer-form {
  border: 1px solid #00A86B;
  border-radius: 0;
  background: #1D3329;
  padding: 0.85rem;
}

.resource-customer-update .add-customer-form-row {
  border: 1px solid #2f5a4a;
  border-radius: 4px;
  background: #223a30;
  padding: 0.75rem;
}

.resource-customer-update .add-customer-form-field label,
.resource-customer-update .form-field-note {
  color: #D0DDD7;
}

.resource-customer-update .add-customer-form-field input,
.resource-customer-update .add-customer-form-field select,
.resource-customer-update .add-customer-form-field textarea {
  border: 1px solid #2f5a4a;
  background: #1f342b;
  color: #F2F5F3;
}

.resource-customer-update .add-customer-form-field select {
  border-color: #3b6a58;
  background-color: #1f342b;
  background-image:
    linear-gradient(45deg, transparent 50%, #D0DDD7 50%),
    linear-gradient(135deg, #D0DDD7 50%, transparent 50%);
  background-position:
    calc(100% - 1.05rem) calc(50% + 1px),
    calc(100% - 0.75rem) calc(50% + 1px);
  background-size: 0.35rem 0.35rem, 0.35rem 0.35rem;
  background-repeat: no-repeat;
  padding-right: 2.3rem;
  border-radius: 8px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.resource-customer-update .add-customer-form-field select:hover {
  border-color: #4a7f6a;
  background-color: #254136;
}

.resource-customer-update .add-customer-form-field select:focus {
  box-shadow: 0 0 0 3px rgba(95, 163, 211, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.resource-customer-update .add-customer-form-field select option {
  background-color: #1f342b;
  color: #F2F5F3;
}

.resource-customer-update .add-customer-form-field input:focus,
.resource-customer-update .add-customer-form-field select:focus,
.resource-customer-update .add-customer-form-field textarea:focus {
  outline: 2px solid #5FA3D3;
  border-color: #5FA3D3;
}

.resource-customer-update #add-customer-form-actions button {
  padding: 0.65rem 1.1rem;
  border: 1px solid #2f5a4a;
  border-radius: 8px;
  background: linear-gradient(180deg, #2d4b3f 0%, #253E33 100%);
  color: #E4ECE8;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 3px 10px rgba(12, 30, 23, 0.2);
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.resource-customer-update #add-customer-form-actions button:hover {
  border-color: #4d816d;
  background: linear-gradient(180deg, #35604f 0%, #2b4d40 100%);
  color: #F2F5F3;
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(12, 30, 23, 0.26);
}

.resource-customer-update #add-customer-form-actions button:focus-visible {
  outline: 2px solid #5FA3D3;
  outline-offset: 2px;
}

.resource-pricebook-form,
.resource-pricebook-view {
  color: #F2F5F3;
}

.resource-pricebook-form #breadcrumb,
.resource-pricebook-view #breadcrumb {
  border-bottom: 1px solid #2f5a4a;
  background: #1D3329;
}

.resource-pricebook-form #breadcrumb a,
.resource-pricebook-form #breadcrumb li,
.resource-pricebook-view #breadcrumb a,
.resource-pricebook-view #breadcrumb li {
  color: #D0DDD7;
}

.resource-pricebook-form #create-service-form,
.resource-pricebook-form #create-part-form {
  border: 1px solid #00A86B;
  border-radius: 0;
  background: #1D3329;
  padding: 0.85rem;
}

.resource-pricebook-form #create-service-form .create-job-form-section-header,
.resource-pricebook-form #create-part-form .create-job-form-section-header {
  margin: 1rem 0 0.75rem;
  padding: 0.5rem 0.75rem;
  border-radius: 0;
  background: #00A86B;
  color: #F2F5F3;
}

.resource-pricebook-form #create-service-form > p,
.resource-pricebook-form #create-part-form > p,
.resource-pricebook-form .form-field-note,
.resource-pricebook-form .add-customer-form-field label {
  color: #D0DDD7;
}

.resource-pricebook-form .add-customer-form-row {
  border: 1px solid #2f5a4a;
  border-radius: 4px;
  background: #223a30;
  padding: 0.75rem;
}

.resource-pricebook-form .add-customer-form-field input,
.resource-pricebook-form .add-customer-form-field select,
.resource-pricebook-form .add-customer-form-field textarea {
  border: 1px solid #2f5a4a;
  background: #1f342b;
  color: #F2F5F3;
}

.resource-pricebook-form .add-customer-form-field select {
  border-color: #3b6a58;
  background-color: #1f342b;
  background-image:
    linear-gradient(45deg, transparent 50%, #D0DDD7 50%),
    linear-gradient(135deg, #D0DDD7 50%, transparent 50%);
  background-position:
    calc(100% - 1.05rem) calc(50% + 1px),
    calc(100% - 0.75rem) calc(50% + 1px);
  background-size: 0.35rem 0.35rem, 0.35rem 0.35rem;
  background-repeat: no-repeat;
  padding-right: 2.3rem;
  border-radius: 8px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.resource-pricebook-form .add-customer-form-field select:hover {
  border-color: #4a7f6a;
  background-color: #254136;
}

.resource-pricebook-form .add-customer-form-field select:focus {
  box-shadow: 0 0 0 3px rgba(95, 163, 211, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.resource-pricebook-form .add-customer-form-field select option {
  background-color: #1f342b;
  color: #F2F5F3;
}

.resource-pricebook-form .add-customer-form-field input:focus,
.resource-pricebook-form .add-customer-form-field select:focus,
.resource-pricebook-form .add-customer-form-field textarea:focus {
  outline: 2px solid #5FA3D3;
  border-color: #5FA3D3;
}

.resource-pricebook-form .category-toggle-button {
  border-color: #2f5a4a;
  background: #253E33;
  color: #E4ECE8;
}

.resource-pricebook-form .category-toggle-button:hover {
  border-color: #4d816d;
  background: #2d4b3f;
  color: #F2F5F3;
}

/* Service category pill selectors */
.service-category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.service-category-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  border: 1px solid #3d6b5a;
  border-radius: 999px;
  background: transparent;
  color: #9bb5a8;
  cursor: pointer;
  font-size: 0.875rem;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  user-select: none;
}

.service-category-pill input[type="checkbox"] {
  display: none;
}

.service-category-pill:hover {
  border-color: #4d816d;
  background: #1e3028;
  color: #d0e5da;
}

.service-category-pill--selected {
  border-color: #4d816d;
  background: linear-gradient(180deg, #2d4b3f 0%, #253E33 100%);
  color: #E4ECE8;
}

/* Collapsible category groups (compact, expandable on mobile) */
.service-category-group {
  width: 100%;
  box-sizing: border-box;
  min-width: 0;
}

.service-category-group__summary {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
  pointer-events: none;
}

.service-category-group__summary::-webkit-details-marker {
  display: none;
}

.service-category-group__summary .form-label {
  margin: 0;
}

.service-category-group__count,
.service-category-group__chevron {
  display: none;
}

.service-category-group__count {
  margin-left: auto;
  min-width: 1.5rem;
  padding: 0.05rem 0.45rem;
  border-radius: 999px;
  background: #2d4b3f;
  color: #E4ECE8;
  font-size: 0.75rem;
  font-weight: 600;
  text-align: center;
}

.service-category-group__chevron {
  flex: 0 0 auto;
  color: #9bb5a8;
  transition: transform 0.2s ease;
}

.service-category-group__body {
  margin-top: 0.25rem;
}

@media (max-width: 768px) {
  .service-category-group {
    border: 1px solid #2f5a4a;
    border-radius: 10px;
    background: #1D3329;
    padding: 0.6rem 0.85rem;
  }

  .service-category-group + .service-category-group {
    margin-top: 0.6rem;
  }

  .service-category-group__summary {
    pointer-events: auto;
    cursor: pointer;
  }

  .service-category-group__count,
  .service-category-group__chevron {
    display: inline-flex;
  }

  .service-category-group__count {
    align-items: center;
    justify-content: center;
  }

  .service-category-group[open] .service-category-group__chevron {
    transform: rotate(180deg);
  }

  .service-category-group:not([open]) .service-category-group__body {
    display: none;
  }
}

.resource-category-management {
  margin-top: 1.5rem;
  padding: 1.25rem 1.35rem 1.4rem;
  border: 1px solid #2f5a4a;
  background: #1D3329;
  box-shadow: none;
}

.category-management-header {
  margin-bottom: 1.1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid #2f5a4a;
}

.resource-category-management .category-management-header h2 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: #F2F5F3;
}

.category-management-subtitle {
  margin: 0.3rem 0 0;
  font-size: 0.9rem;
  color: #B2C0B9;
}

.category-management-error {
  margin: 0 0 1rem;
}

.category-management-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

@media (max-width: 720px) {
  .category-management-grid {
    grid-template-columns: 1fr;
  }
}

.category-management-column {
  display: flex;
  flex-direction: column;
  padding: 1rem 1.05rem 1.1rem;
  border: 1px solid #2f5a4a;
  background: #253E33;
}

.category-management-column-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-bottom: 0.85rem;
}

.resource-category-management .category-management-column-header h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #F2F5F3;
}

.category-management-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.6rem;
  height: 1.6rem;
  padding: 0 0.6rem;
  border: 1px solid #3a6553;
  border-radius: 999px;
  background: #1D3329;
  color: #B2C0B9;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.category-management-badge--custom {
  color: #9fe0bb;
  border-color: #3f7a5b;
}

.category-management-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.category-management-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.7rem;
  border: 1px solid #3a6553;
  border-radius: 999px;
  background: #1D3329;
  color: #E4ECE8;
  font-size: 0.85rem;
  font-weight: 600;
}

.category-management-custom-list {
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 0.5rem;
}

.category-management-custom-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  padding: 0.5rem 0.4rem 0.5rem 0.75rem;
  border: 1px solid #3a6553;
  background: #1D3329;
}

.category-management-custom-name {
  color: #E4ECE8;
  font-size: 0.9rem;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.category-management-custom-item form {
  margin: 0;
  flex-shrink: 0;
}

.category-management-delete-button {
  padding: 0.35rem 0.7rem;
  border: 1px solid #6b2f2f;
  border-radius: 4px;
  background: #3a2020;
  color: #f0c9c9;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.category-management-delete-button:hover {
  border-color: #b91c1c;
  background: #5a2626;
  color: #ffe4e4;
}

.category-management-empty {
  margin: 0;
  padding: 0.6rem 0;
  color: #93a59c;
  font-size: 0.88rem;
  font-style: italic;
}

.category-management-inline-add {
  margin-top: 1rem;
}

.category-management-inline-add > summary {
  list-style: none;
  cursor: pointer;
}

.category-management-inline-add > summary::-webkit-details-marker {
  display: none;
}

.category-management-add-button {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 1rem;
  border: 1px solid #2f5a4a;
  border-radius: 6px;
  background: linear-gradient(180deg, #2d4b3f 0%, #253E33 100%);
  color: #E4ECE8;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 3px 10px rgba(12, 30, 23, 0.2);
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.category-management-add-button:hover {
  border-color: #3a6553;
  background: linear-gradient(180deg, #356254 0%, #2d4b3f 100%);
  color: #F2F5F3;
  transform: translateY(-1px);
}

.category-management-inline-add[open] > .category-management-add-button {
  border-color: #3a6553;
  background: #2d4b3f;
  color: #F2F5F3;
}

.category-management-inline-form {
  margin-top: 0.7rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.category-management-inline-form input[type="text"] {
  flex: 1 1 200px;
  min-width: 200px;
  padding: 0.55rem 0.75rem;
  border: 1px solid #2f5a4a;
  border-radius: 4px;
  background: #1D3329;
  color: #F2F5F3;
  font-size: 0.9rem;
}

.category-management-inline-form input[type="text"]::placeholder {
  color: #7f9389;
}

.category-management-inline-form input[type="text"]:focus {
  outline: none;
  border-color: var(--kl-focus);
  box-shadow: 0 0 0 2px rgba(103, 201, 143, 0.25);
}

.category-management-save-button {
  padding: 0.55rem 1.1rem;
  border: 1px solid #2f5a4a;
  border-radius: 6px;
  background: linear-gradient(180deg, #2d4b3f 0%, #253E33 100%);
  color: #E4ECE8;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.category-management-save-button:hover {
  border-color: #3a6553;
  background: linear-gradient(180deg, #356254 0%, #2d4b3f 100%);
  color: #F2F5F3;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
  color: #d0e5da;
}

.resource-pricebook-form #create-service-form-actions button,
.resource-pricebook-form #add-service-part-button,
.resource-pricebook-form #add-service-material-button {
  padding: 0.6rem 1rem;
  border: 1px solid #2f5a4a;
  border-radius: 8px;
  background: linear-gradient(180deg, #2d4b3f 0%, #253E33 100%);
  color: #E4ECE8;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 3px 10px rgba(12, 30, 23, 0.2);
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.resource-pricebook-form #create-service-form-actions button:hover,
.resource-pricebook-form #add-service-part-button:hover,
.resource-pricebook-form #add-service-material-button:hover {
  border-color: #4d816d;
  background: linear-gradient(180deg, #35604f 0%, #2b4d40 100%);
  color: #F2F5F3;
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(12, 30, 23, 0.26);
}

.resource-pricebook-form #create-service-form-actions button:focus-visible,
.resource-pricebook-form #add-service-part-button:focus-visible,
.resource-pricebook-form #add-service-material-button:focus-visible {
  outline: 2px solid #5FA3D3;
  outline-offset: 2px;
}

.resource-pricebook-view #view-service-actions {
  border: 1px solid #2f5a4a;
  border-radius: 0;
  background: #1D3329;
  box-shadow: none;
  margin-bottom: 1rem;
}

.resource-pricebook-view #view-service-actions-header {
  border-bottom: 1px solid #2f5a4a;
  background: #244236;
  color: #F2F5F3;
}

.resource-pricebook-view #view-service-actions-row {
  gap: 0.55rem;
}

.resource-pricebook-view #view-service-actions-row a,
.resource-pricebook-view #view-service-actions-row button {
  border: 1px solid #2f5a4a;
  border-radius: 4px;
  background: #253E33;
  color: #B2C0B9;
  text-decoration: none;
}

.resource-pricebook-view #view-service-actions-row a:hover,
.resource-pricebook-view #view-service-actions-row button:hover {
  border-color: #3a6553;
  background: #2d4b3f;
  color: #D0DDD7;
  text-decoration: none;
}

.resource-pricebook-view #view-service-details > h2,
.resource-pricebook-view #view-service-associated-categories > h2,
.resource-pricebook-view .view-service-detail-item h4,
.resource-pricebook-view .view-service-detail-item p {
  color: #F2F5F3;
}

.resource-pricebook-view #view-service-details-content,
.resource-pricebook-view #view-service-associated-categories-content {
  border: 1px solid #2f5a4a;
  background: #1D3329;
}

.resource-pricebook-view .view-service-detail-item {
  padding: 0.85rem 0.95rem;
  border: 1px solid #2f5a4a;
  border-radius: 4px;
  background: #223a30;
}

.resource-pricebook-view .view-service-detail-item h4 {
  margin: 0 0 0.35rem;
  color: #B2C0B9;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.resource-pricebook-view .view-service-detail-item p {
  font-size: 1.05rem;
}

.resource-pricebook-view .view-service-detail-item a {
  color: #9cc6e5;
}

.resource-pricebook-view .view-service-detail-item a:hover {
  color: #b7d9ef;
}

.resource-pricebook-view #view-service-parts-grid .jobs-card {
  border: 1px solid #2f5a4a;
  border-radius: 4px;
  background: #223a30;
}

.resource-pricebook-view #view-service-parts-grid .jobs-card:hover {
  border-color: #3a6553;
  background: #2d4b3f;
}

.resource-pricebook-view #view-service-parts-grid .jobs-card-label {
  color: #B2C0B9;
}

.resource-pricebook-view #view-service-parts-grid .jobs-card-value {
  color: #F2F5F3;
}

.resource-subscription.resource-page {
  color: #F2F5F3;
}

.resource-subscription .jobs-controls-right-top {
  margin: 0.2rem 0 1rem;
}

.resource-subscription .jobs-controls-right-top h2 {
  margin: 0;
  padding: 0.6rem 0.75rem;
  border: 1px solid #2f5a4a;
  border-radius: 0;
  background: linear-gradient(180deg, #244236 0%, #1f382f 100%);
  color: #F2F5F3;
}

.resource-subscription #view-customer-actions {
  border: 1px solid #2f5a4a;
  border-radius: 0;
  background: #1D3329;
  box-shadow: none;
}

.resource-subscription #view-customer-actions > h2 {
  margin: 0;
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid #2f5a4a;
  background: #244236;
  color: #F2F5F3;
}

.resource-subscription #view-customer-actions-row {
  gap: 0.55rem;
}

.resource-subscription #view-customer-actions-row a,
.resource-subscription #view-customer-actions-row button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0.55rem 0.95rem;
  border: 1px solid #2f5a4a;
  border-radius: 8px;
  background: linear-gradient(180deg, #2d4b3f 0%, #253E33 100%);
  color: #E4ECE8;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  box-shadow: 0 3px 10px rgba(12, 30, 23, 0.2);
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.resource-subscription #view-customer-actions-row a:hover,
.resource-subscription #view-customer-actions-row button:hover {
  border-color: #4d816d;
  background: linear-gradient(180deg, #35604f 0%, #2b4d40 100%);
  color: #F2F5F3;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(12, 30, 23, 0.26);
}

.resource-subscription .subscription-summary-grid {
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.resource-subscription .subscription-summary-card,
.resource-subscription .subscription-panel-card {
  border: 1px solid #2f5a4a;
  border-radius: 8px;
  background: linear-gradient(180deg, #223a30 0%, #1d3329 100%);
  box-shadow: 0 8px 16px rgba(12, 30, 23, 0.18);
  padding: 0.85rem 0.95rem;
}

.resource-subscription .subscription-summary-card {
  border-top-width: 3px;
}

.resource-subscription .subscription-summary-card:nth-child(1) {
  border-top-color: #00A86B;
}

.resource-subscription .subscription-summary-card:nth-child(2) {
  border-top-color: #14B8A6;
}

.resource-subscription .subscription-summary-card:nth-child(3) {
  border-top-color: #5FA3D3;
}

.resource-subscription .subscription-summary-kicker {
  margin-bottom: 0.3rem;
  font-size: 0.72rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: #9db2aa;
}

.resource-subscription .subscription-summary-card h3,
.resource-subscription .subscription-panel-card h3 {
  margin: 0 0 0.25rem;
  color: #F2F5F3;
}

.resource-subscription .subscription-summary-amount {
  margin: 0.25rem 0 0;
  color: #EAF2EE;
  font-size: 1.15rem;
  font-weight: 700;
}

.resource-subscription .subscription-summary-note {
  margin: 0.25rem 0 0;
  color: #B2C0B9;
}

.resource-subscription .subscription-detail-grid {
  grid-template-columns: 1fr;
  gap: 0.85rem;
}

.resource-subscription .subscription-detail-row {
  border-bottom: 1px solid #2f5a4a;
  padding: 0.58rem 0;
}

.resource-subscription .subscription-detail-row span {
  color: #A9BAB3;
}

.resource-subscription .subscription-detail-row strong {
  color: #F2F5F3;
}

.resource-subscription .subscription-included-features-list {
  margin: 0.35rem 0 0;
  padding-left: 0;
  list-style: none;
}

.resource-subscription .subscription-included-features-list li {
  position: relative;
  padding: 0.45rem 0 0.45rem 1.2rem;
  border-bottom: 1px dashed #2f5a4a;
  color: #D0DDD7;
}

.resource-subscription .subscription-included-features-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.94rem;
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 999px;
  background: #00A86B;
  box-shadow: 0 0 0 2px rgba(0, 168, 107, 0.18);
}

.resource-subscription .subscription-included-features-list li:last-child {
  border-bottom: 0;
}

@media (max-width: 980px) {
  .resource-subscription .subscription-page-columns,
  .resource-subscription .subscription-summary-grid {
    grid-template-columns: 1fr;
  }
}

.resource-subscription .subscription-actions {
  margin-top: 0.85rem;
}

.resource-subscription .subscription-actions .home-latest-action-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0.55rem 0.95rem;
  border: 1px solid #2f5a4a;
  border-radius: 8px;
  background: linear-gradient(180deg, #2d4b3f 0%, #253E33 100%);
  color: #E4ECE8;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 3px 10px rgba(12, 30, 23, 0.2);
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.resource-subscription .subscription-actions .home-latest-action-link:hover {
  border-color: #4d816d;
  background: linear-gradient(180deg, #35604f 0%, #2b4d40 100%);
  color: #F2F5F3;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(12, 30, 23, 0.26);
}

.resource-subscription .subscription-cancel-copy,
.resource-subscription .subscription-cancel-reason-label {
  color: #C7D4CF;
}

.resource-subscription .subscription-cancel-feature-list {
  margin: 0.45rem 0 0.8rem;
  padding-left: 0;
  list-style: none;
}

.resource-subscription .subscription-cancel-feature-list li {
  position: relative;
  padding: 0.45rem 0 0.45rem 1.2rem;
  border-bottom: 1px dashed #2f5a4a;
  color: #D0DDD7;
}

.resource-subscription .subscription-cancel-feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.94rem;
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 999px;
  background: #14B8A6;
  box-shadow: 0 0 0 2px rgba(20, 184, 166, 0.2);
}

.resource-subscription .subscription-cancel-feature-list li:last-child {
  border-bottom: 0;
}

.resource-subscription .subscription-cancel-reason-field textarea {
  border: 1px solid #2f5a4a;
  border-radius: 8px;
  background: #1f342b;
  color: #F2F5F3;
}

.resource-subscription .subscription-cancel-reason-field textarea:focus {
  outline: 2px solid #5FA3D3;
  outline-offset: 1px;
  border-color: #5FA3D3;
}

.resource-subscription .subscription-cancel-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: flex-start;
}

.resource-subscription .subscription-cancel-actions-row .home-latest-action-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0.55rem 0.95rem;
  border: 1px solid #2f5a4a;
  border-radius: 8px;
  background: linear-gradient(180deg, #2d4b3f 0%, #253E33 100%);
  color: #E4ECE8;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 3px 10px rgba(12, 30, 23, 0.2);
}

.resource-subscription .subscription-cancel-actions-row .home-latest-action-link:hover {
  border-color: #4d816d;
  background: linear-gradient(180deg, #35604f 0%, #2b4d40 100%);
  color: #F2F5F3;
  text-decoration: none;
}

.resource-subscription .subscription-cancel-actions-row .subscription-remove-button {
  min-height: 38px;
  padding: 0.55rem 0.95rem;
  border: 1px solid #9a3535;
  border-radius: 8px;
  background: linear-gradient(180deg, #7a2d2d 0%, #632626 100%);
  color: #FBE8E8;
  font-weight: 700;
  box-shadow: 0 3px 10px rgba(42, 14, 14, 0.25);
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.resource-subscription .subscription-cancel-actions-row .subscription-remove-button:hover {
  border-color: #b14444;
  background: linear-gradient(180deg, #8a3434 0%, #6d2b2b 100%);
  color: #FFFFFF;
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(42, 14, 14, 0.3);
}

.resource-subscription .reactivate-subscription-panel {
  border: 1px solid #2f5a4a;
  border-radius: 8px;
  background: linear-gradient(180deg, #223a30 0%, #1d3329 100%);
  box-shadow: 0 8px 16px rgba(12, 30, 23, 0.18);
}

.resource-subscription .reactivate-subscription-message {
  color: #C7D4CF;
}

.resource-subscription .reactivate-subscription-button {
  border: 1px solid #2f5a4a;
  border-radius: 8px;
  background: linear-gradient(180deg, #2d4b3f 0%, #253E33 100%);
  color: #E4ECE8;
  font-weight: 700;
  box-shadow: 0 3px 10px rgba(12, 30, 23, 0.2);
}

.resource-subscription .reactivate-subscription-button:disabled {
  opacity: 0.62;
  cursor: not-allowed;
}

.resource-business.resource-page {
  color: #F2F5F3;
}

.resource-business #view-customer-actions {
  border: 1px solid #2f5a4a;
  border-radius: 0;
  background: #1D3329;
  box-shadow: none;
}

.resource-business #view-customer-actions > h2 {
  margin: 0;
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid #2f5a4a;
  background: #244236;
  color: #F2F5F3;
}

.resource-business #view-customer-actions-row {
  gap: 0.55rem;
}

.resource-business #view-customer-actions-row a,
.resource-business #view-customer-actions-row button {
  display: inline-block;
  padding: 0.55rem 0.95rem;
  border: 1px solid #2f5a4a;
  border-radius: 4px;
  background-color: #253E33;
  color: #E4ECE8;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  box-shadow: none;
  transition: border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease;
  cursor: pointer;
}

.resource-business #view-customer-actions-row a:hover,
.resource-business #view-customer-actions-row button:hover {
  border-color: #3a6553;
  background-color: #2d4b3f;
  color: #F2F5F3;
  text-decoration: none;
}

.resource-business #business-markup-recalculate-prompt {
  margin-bottom: 1rem;
  border: 1px solid #2f5a4a;
  border-radius: 8px;
  background: linear-gradient(180deg, #223a30 0%, #1d3329 100%);
  padding: 0.85rem 0.95rem;
  box-shadow: 0 8px 16px rgba(12, 30, 23, 0.18);
}

.resource-business #business-markup-recalculate-prompt h2 {
  margin: 0 0 0.35rem;
  color: #F2F5F3;
}

.resource-business #business-markup-recalculate-prompt p {
  margin: 0 0 0.6rem;
  color: #C7D4CF;
}

.resource-business .business-markup-prompt-actions {
  display: flex;
  align-items: stretch;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.resource-business .business-markup-prompt-actions form {
  margin: 0;
  display: inline-flex;
}

.resource-business .business-markup-prompt-actions a,
.resource-business .business-markup-prompt-actions button {
  min-height: 40px;
  height: 40px;
  box-sizing: border-box;
  line-height: 1;
}

.resource-business #view-customer-details {
  border: 1px solid #2f5a4a;
  border-radius: 0;
  background: #1D3329;
  box-shadow: none;
}

.resource-business #view-customer-details > h2 {
  margin: 0;
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid #2f5a4a;
  background: #244236;
  color: #F2F5F3;
}

.resource-business #view-profile-details-columns {
  border: 0;
  margin: 0;
}

.resource-business .business-profile-detail-group + .business-profile-detail-group {
  margin-top: 0.85rem;
}

.resource-business .view-customer-section-column {
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0.75rem;
}

.resource-business .view-customer-section-column > h3 {
  margin: 0 0 0.6rem;
  padding: 0.6rem 0.75rem;
  border: 1px solid #2f5a4a;
  border-radius: 8px;
  background: linear-gradient(180deg, #244236 0%, #1f382f 100%);
  color: #F2F5F3;
  text-align: left;
}

.resource-business #view-customer-details-list,
.resource-business .business-profile-details-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.resource-business .business-profile-details-grid--single {
  grid-template-columns: 1fr;
}

.resource-business .view-customer-detail-item {
  border: 1px solid #2f5a4a;
  border-radius: 8px;
  background: linear-gradient(180deg, #223a30 0%, #1d3329 100%);
  padding: 0.7rem 0.75rem;
  box-shadow: 0 8px 16px rgba(12, 30, 23, 0.16);
}

.resource-business .view-customer-detail-item h4 {
  margin: 0 0 0.2rem;
  color: #F2F5F3;
}

.resource-business .view-customer-detail-item p {
  margin: 0;
  color: #C7D4CF;
}

.resource-business .business-profile-installation-schedule-list {
  display: grid;
  gap: 0.75rem;
}

.resource-business .business-profile-installation-schedule-card {
  border: 1px solid #3a6554;
  border-radius: 8px;
  padding: 0.75rem;
  background: linear-gradient(180deg, rgba(34, 57, 47, 0.9) 0%, rgba(27, 45, 37, 0.94) 100%);
}

.resource-business .business-profile-installation-schedule-title {
  margin: 0 0 0.5rem;
  color: #e6efea;
}

.resource-business .business-profile-installation-schedule-row {
  margin: 0;
  color: #d0ded8;
}

.resource-business .business-profile-installation-schedule-row + .business-profile-installation-schedule-row {
  margin-top: 0.25rem;
}

.resource-business #business-logo-section,
.resource-business #business-tax-config-section,
.resource-employee-view #employee-profile-photo-section {
  margin-top: 0.85rem;
  border: 1px solid #2f5a4a;
  border-radius: 8px;
  background: linear-gradient(180deg, #223a30 0%, #1d3329 100%);
  padding: 0.75rem;
  box-shadow: 0 8px 16px rgba(12, 30, 23, 0.16);
}

.resource-business .business-tax-config-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.resource-business .business-logo-status,
.resource-employee-view .business-logo-status {
  border-radius: 8px;
}

.resource-business .business-logo-upload-button,
.resource-employee-view .business-logo-upload-button {
  border-radius: 8px;
}

.resource-business #business-logo-section,
.resource-employee-view #employee-profile-photo-section {
  position: relative;
  overflow: hidden;
}

.resource-business #business-logo-section::before,
.resource-employee-view #employee-profile-photo-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 12% 12%, rgba(20, 184, 166, 0.12), transparent 38%),
    radial-gradient(circle at 90% 85%, rgba(95, 163, 211, 0.1), transparent 34%);
  pointer-events: none;
}

.resource-business #business-logo-section > *,
.resource-employee-view #employee-profile-photo-section > * {
  position: relative;
  z-index: 1;
}

.resource-business #business-logo-section > h3,
.resource-employee-view #employee-profile-photo-section > h3 {
  margin: 0 0 0.6rem;
  font-size: 1rem;
  letter-spacing: 0.01em;
}

.resource-business .business-logo-status,
.resource-employee-view .business-logo-status {
  margin: 0 0 0.65rem;
  border-radius: 10px;
}

.resource-business .business-logo-preview-shell,
.resource-employee-view .business-logo-preview-shell {
  display: grid;
  place-items: center;
  min-height: 180px;
  padding: 1rem;
  border: 1px solid #355f4e;
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(12, 35, 28, 0.7), rgba(27, 52, 42, 0.62)),
    linear-gradient(45deg, rgba(255, 255, 255, 0.03) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.03) 50%, rgba(255, 255, 255, 0.03) 75%, transparent 75%, transparent);
  background-size: auto, 18px 18px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04), 0 10px 18px rgba(9, 24, 18, 0.24);
}

.resource-business .business-logo-preview-image,
.resource-employee-view .business-logo-preview-image {
  max-width: min(100%, 420px);
  max-height: 145px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.35));
}

.resource-business .business-logo-placeholder,
.resource-employee-view .business-logo-placeholder {
  min-height: 136px;
  border: 1px dashed #3f6d5a;
  border-radius: 12px;
  background: linear-gradient(180deg, #203930 0%, #1a2f27 100%);
  color: #d1ddd8;
  gap: 0.6rem;
}

.resource-business .business-logo-placeholder-icon,
.resource-employee-view .business-logo-placeholder-icon {
  color: #6fc7af;
  font-size: 1.1rem;
}

.resource-business .business-logo-note,
.resource-employee-view .business-logo-note {
  margin: 0.65rem 0 0;
  color: #adc0b8;
  font-size: 0.84rem;
  line-height: 1.45;
}

.resource-business .business-logo-upload-form,
.resource-employee-view .business-logo-upload-form {
  margin-top: 0.8rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.6rem;
  align-items: stretch;
}

.resource-business .business-logo-upload-input,
.resource-employee-view .business-logo-upload-input {
  min-height: 44px;
  border: 1px solid #3d6b59;
  border-radius: 10px;
  background: #1f342b;
  color: #d6e4de;
}

.resource-business .business-logo-upload-input::file-selector-button,
.resource-business .business-logo-upload-input::-webkit-file-upload-button,
.resource-employee-view .business-logo-upload-input::file-selector-button,
.resource-employee-view .business-logo-upload-input::-webkit-file-upload-button {
  border-color: #3d6b59;
  border-radius: 8px;
  background: linear-gradient(180deg, #35604f 0%, #2b4d40 100%);
  color: #eef5f1;
}

.resource-business .business-logo-upload-input:hover::file-selector-button,
.resource-business .business-logo-upload-input:hover::-webkit-file-upload-button,
.resource-employee-view .business-logo-upload-input:hover::file-selector-button,
.resource-employee-view .business-logo-upload-input:hover::-webkit-file-upload-button {
  border-color: #4e846f;
  background: linear-gradient(180deg, #3d6e5b 0%, #315747 100%);
}

.resource-business .business-logo-upload-input:focus,
.resource-business .business-logo-upload-button:focus-visible,
.resource-employee-view .business-logo-upload-input:focus,
.resource-employee-view .business-logo-upload-button:focus-visible {
  outline: 2px solid #5FA3D3;
  outline-offset: 2px;
}

.resource-business .business-logo-upload-button,
.resource-employee-view .business-logo-upload-button {
  min-height: 44px;
  border: 1px solid #3d6b59;
  border-radius: 10px;
  background: linear-gradient(180deg, #35604f 0%, #2b4d40 100%);
  color: #eef5f1;
}

.resource-business .business-logo-upload-button:hover,
.resource-employee-view .business-logo-upload-button:hover {
  border-color: #4e846f;
  background: linear-gradient(180deg, #3d6e5b 0%, #315747 100%);
}

.resource-business .business-settings-shell {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: 0.9rem;
  align-items: start;
}

.resource-business .business-settings-sidebar {
  position: sticky;
  top: 0.75rem;
  display: grid;
  gap: 0.65rem;
}

.resource-business .business-settings-sidebar-card,
.resource-business .business-settings-section,
.resource-business .business-settings-hero,
.resource-business .business-settings-global-errors,
.resource-business .payment-schedule-template-card,
.resource-business #business-profile-form {
  border: 1px solid #2f5a4a;
  border-radius: 8px;
  background: linear-gradient(180deg, #223a30 0%, #1d3329 100%);
  box-shadow: 0 8px 16px rgba(12, 30, 23, 0.16);
}

.resource-business #business-profile-form {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.resource-business .add-customer-form-field,
.resource-business .business-settings-sidebar,
.resource-business .business-settings-sidebar-card {
  min-width: 0;
}

.resource-business .add-customer-form-field input,
.resource-business .add-customer-form-field select,
.resource-business .add-customer-form-field textarea {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.resource-business .business-settings-sidebar-card {
  padding: 0.7rem 0.75rem;
}

.resource-business .business-settings-sidebar-eyebrow,
.resource-business .business-settings-section-kicker,
.resource-business .business-settings-hero-eyebrow {
  margin: 0;
  color: #8fb4a4;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.resource-business .business-settings-sidebar-card h2,
.resource-business .business-settings-sidebar-card h3 {
  margin: 0.25rem 0 0.35rem;
  color: #f2f5f3;
}

.resource-business .business-settings-sidebar-card p {
  margin: 0;
  color: #c7d4cf;
}

.resource-business .business-settings-sidebar-nav {
  display: grid;
  gap: 0.35rem;
}

.resource-business .business-settings-sidebar-nav a {
  display: block;
  padding: 0.48rem 0.55rem;
  border: 1px solid #2f5a4a;
  border-radius: 6px;
  color: #dbe7e2;
  text-decoration: none;
  background: linear-gradient(180deg, #2b4a3e 0%, #243d33 100%);
  font-weight: 600;
}

.resource-business .business-settings-sidebar-nav a:hover {
  border-color: #4d816d;
  color: #f2f5f3;
}

.resource-business .business-settings-sidebar-nav a:focus-visible {
  outline: 2px solid #6ba892;
  outline-offset: 2px;
}

.resource-business .business-settings-sidebar-nav a.is-active {
  border-color: #4d816d;
  background: linear-gradient(180deg, #35604f 0%, #2b4d40 100%);
  color: #f2f5f3;
}

.resource-business .business-settings-main {
  display: grid;
  gap: 0.9rem;
  min-width: 0;
}

.resource-business .business-settings-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.85rem;
  align-items: end;
  padding: 0.75rem;
}

.resource-business .business-settings-hero h1 {
  margin: 0.15rem 0 0.3rem;
  color: #f2f5f3;
  font-size: 1.35rem;
}

.resource-business .business-settings-hero-copy {
  margin: 0;
  color: #c7d4cf;
}

.resource-business .business-settings-hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem;
}

.resource-business .business-settings-global-errors {
  padding: 0.65rem 0.75rem;
}

.resource-business .business-settings-global-errors .form-error {
  margin: 0;
}

.resource-business .business-settings-section {
  padding: 0.75rem;
  min-width: 0;
}

.resource-business #section-business-info {
  display: grid;
  row-gap: 0.75rem;
}

.resource-business #section-business-info .add-customer-form-row {
  margin: 0;
}

.resource-business .business-settings-section .create-job-form-section-header {
  margin-top: 0;
}

.resource-business .business-settings-section .create-job-form-section-header.business-settings-markup-header {
  margin-top: 2rem;
}

.resource-business .business-settings-subsection-heading {
  margin: 0.5rem 0 0.35rem;
  color: #f2f5f3;
  font-size: 1rem;
}

.resource-business .business-settings-inline-action {
  margin-top: 0.5rem;
}

.resource-business .business-settings-inline-add-row {
  margin-top: 0.5rem;
}

.resource-business #section-pricing #add-markup-rule-row {
  min-height: 40px;
  padding: 0.6rem 1rem;
  border: 1px solid #2f5a4a;
  border-radius: 8px;
  background: linear-gradient(180deg, #2d4b3f 0%, #253e33 100%);
  color: #e4ece8;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 3px 10px rgba(12, 30, 23, 0.2);
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.resource-business #section-pricing #add-markup-rule-row:hover {
  border-color: #4d816d;
  background: linear-gradient(180deg, #35604f 0%, #2b4d40 100%);
  color: #f2f5f3;
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(12, 30, 23, 0.26);
}

.resource-business #section-pricing .markup-rule-remove-button {
  min-height: 40px;
  padding: 0.6rem 1rem;
  border: 1px solid #9a3535;
  border-radius: 8px;
  background: linear-gradient(180deg, #4a2222 0%, #3a1b1b 100%);
  color: #f4dada;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 3px 10px rgba(45, 14, 14, 0.22);
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.resource-business #section-pricing .markup-rule-remove-button:hover {
  border-color: #c35a5a;
  background: linear-gradient(180deg, #5a2929 0%, #492121 100%);
  color: #fff0f0;
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(45, 14, 14, 0.3);
}

.resource-business .business-settings-payment-schedules {
  background: linear-gradient(180deg, #223a30 0%, #1d3329 100%) !important;
}

.resource-business .business-settings-payment-schedules .payment-schedule-cards-list {
  display: grid;
  gap: 0.85rem;
}

.resource-business .payment-schedule-template-card {
  padding: 0.9rem;
  margin-bottom: 0.9rem;
  border: 1px solid #2f5a4a;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(34, 57, 47, 0.86) 0%, rgba(29, 49, 41, 0.9) 100%);
  box-shadow: 0 8px 20px rgba(8, 24, 18, 0.16);
}

.resource-business .business-settings-payment-schedules .payment-schedule-template-card {
  background: linear-gradient(180deg, rgba(34, 57, 47, 0.94) 0%, rgba(27, 45, 37, 0.96) 100%) !important;
  border-color: #3a6554;
  color: #e3ece8;
}

.resource-business .business-settings-payment-schedules .payment-schedule-card-errors {
  margin-bottom: 0.4rem;
}

.resource-business #section-payment-schedules .payment-schedule-stage-row {
  margin-bottom: 0.55rem;
  padding: 0.55rem;
  border: 1px solid #355f4f;
  border-radius: 9px;
  background: rgba(20, 36, 29, 0.55);
}

.resource-business .business-settings-payment-schedules .payment-schedule-stage-row {
  background: rgba(18, 32, 26, 0.72) !important;
  border-color: #3a6554 !important;
}

.resource-business .business-settings-payment-schedules .payment-schedule-card-toolbar {
  margin-top: 0.2rem;
}

.resource-business .business-settings-payment-schedules .add-customer-form-row {
  background: transparent;
}

.resource-business #section-payment-schedules .payment-schedule-stage-row .add-customer-form-field > label {
  color: #d9e8e1;
}

.resource-business .business-settings-payment-schedules .add-customer-form-field label {
  color: #d9e8e1;
}

.resource-business .business-settings-payment-schedules .add-customer-form-field input,
.resource-business .business-settings-payment-schedules .add-customer-form-field select,
.resource-business .business-settings-payment-schedules .add-customer-form-field textarea {
  border-color: #3b6a58 !important;
  background-color: #1f342b !important;
  color: #f2f5f3 !important;
}

.resource-business .business-settings-payment-schedules .add-customer-form-field input:focus,
.resource-business .business-settings-payment-schedules .add-customer-form-field select:focus,
.resource-business .business-settings-payment-schedules .add-customer-form-field textarea:focus {
  outline: 2px solid #5fa3d3;
  border-color: #5fa3d3;
}

.resource-business #section-payment-schedules input[name="payment_schedule_stage_amount[]"] {
  border: 1px solid #3b6a58;
  border-radius: 8px;
  background: #1f342b;
  color: #f2f5f3;
}

.resource-business #section-payment-schedules input[name="payment_schedule_stage_amount[]"]:focus {
  outline: 2px solid #5fa3d3;
  border-color: #5fa3d3;
}

.resource-business #section-payment-schedules select[name="payment_schedule_stage_name[]"] {
  border: 1px solid #3b6a58;
  border-radius: 8px;
  background-color: #1f342b;
  color: #f2f5f3;
  background-image:
    linear-gradient(45deg, transparent 50%, #d0ddd7 50%),
    linear-gradient(135deg, #d0ddd7 50%, transparent 50%);
  background-position:
    calc(100% - 1.05rem) calc(50% + 1px),
    calc(100% - 0.75rem) calc(50% + 1px);
  background-size: 0.35rem 0.35rem, 0.35rem 0.35rem;
  background-repeat: no-repeat;
  padding-right: 2.3rem;
}

.resource-business #section-payment-schedules select[name="payment_schedule_stage_name[]"] {
  margin-bottom: 0.45rem;
}

.resource-business #section-payment-schedules select[name="payment_schedule_stage_name[]"]:focus {
  outline: 2px solid #5fa3d3;
  border-color: #5fa3d3;
}

.resource-business #section-payment-schedules .payment-schedule-trigger-readonly {
  margin: 0;
  min-height: 40px;
  display: flex;
  align-items: center;
  padding: 0.55rem 0.7rem;
  border: 1px solid #3b6a58;
  border-radius: 8px;
  background: #1f342b;
  color: #d6e4de;
}

.resource-business #section-payment-schedules .payment-schedule-amount-readonly {
  margin: 0;
  min-height: 40px;
  display: flex;
  align-items: center;
  padding: 0.55rem 0.7rem;
  border: 1px dashed #3b6a58;
  border-radius: 8px;
  background: rgba(31, 52, 43, 0.45);
  color: #d6e4de;
}

.resource-business #section-payment-schedules .payment-schedule-amount-readonly[hidden] {
  display: none !important;
}

.resource-business #section-payment-schedules .payment-schedule-summary {
  margin-top: 0.35rem;
  display: grid;
  gap: 0.15rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid #3b6a58;
  border-radius: 8px;
  background: #1f342b;
  color: #d6e4de;
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.88rem;
}

.resource-business #section-payment-schedules .payment-schedule-summary-line {
  white-space: nowrap;
}

.resource-business #section-payment-schedules .payment-schedule-sms-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 42px;
  color: #d6e4de;
}

.resource-business #section-payment-schedules .payment-schedule-stage-actions {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
}

.resource-business #section-payment-schedules .payment-schedule-add-template-wrap {
  margin-top: 0.5rem;
}

.resource-business #section-payment-schedules .payment-schedule-template-save-button,
.resource-business #section-payment-schedules [data-add-stage],
.resource-business #section-payment-schedules #add-payment-schedule-template {
  min-height: 40px;
  padding: 0.6rem 1rem;
  border: 1px solid #2f5a4a;
  border-radius: 8px;
  background: linear-gradient(180deg, #2d4b3f 0%, #253e33 100%);
  color: #e4ece8;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 3px 10px rgba(12, 30, 23, 0.2);
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.resource-business #section-payment-schedules .payment-schedule-template-save-button:hover,
.resource-business #section-payment-schedules [data-add-stage]:hover,
.resource-business #section-payment-schedules #add-payment-schedule-template:hover {
  border-color: #4d816d;
  background: linear-gradient(180deg, #35604f 0%, #2b4d40 100%);
  color: #f2f5f3;
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(12, 30, 23, 0.26);
}

.resource-business #section-payment-schedules .payment-schedule-template-save-button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
  border-color: #365847;
  background: linear-gradient(180deg, #2a4137 0%, #25382f 100%);
}

.resource-business #section-payment-schedules .payment-schedule-template-save-button:disabled:hover {
  transform: none;
  box-shadow: none;
}

.resource-business #section-payment-schedules .payment-schedule-template-delete-button,
.resource-business #section-payment-schedules [data-stage-delete] {
  min-height: 40px;
  padding: 0.6rem 1rem;
  border: 1px solid #9a3535;
  border-radius: 8px;
  background: linear-gradient(180deg, #4a2222 0%, #3a1b1b 100%);
  color: #f4dada;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 3px 10px rgba(45, 14, 14, 0.22);
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.resource-business #section-payment-schedules [data-stage-delete] {
  margin-bottom: 0.35rem;
}

.resource-business #section-payment-schedules .payment-schedule-template-delete-button:hover,
.resource-business #section-payment-schedules [data-stage-delete]:hover {
  border-color: #c35a5a;
  background: linear-gradient(180deg, #5a2929 0%, #492121 100%);
  color: #fff0f0;
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(45, 14, 14, 0.3);
}

.resource-business #section-taxes .tax-rate-applies-to-grid label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.4rem;
  border: 1px solid #2f5a4a;
  border-radius: 6px;
  background: #1f342b;
  color: #d6e4de;
}

.resource-business #section-taxes .tax-rate-applies-to-grid input[type="checkbox"] {
  accent-color: #5fa3d3;
}

.resource-business #section-taxes select[name="tax_rate_active[]"] {
  border: 1px solid #3b6a58;
  border-radius: 8px;
  background-color: #1f342b;
  color: #f2f5f3;
  background-image:
    linear-gradient(45deg, transparent 50%, #d0ddd7 50%),
    linear-gradient(135deg, #d0ddd7 50%, transparent 50%);
  background-position:
    calc(100% - 1.05rem) calc(50% + 1px),
    calc(100% - 0.75rem) calc(50% + 1px);
  background-size: 0.35rem 0.35rem, 0.35rem 0.35rem;
  background-repeat: no-repeat;
  padding-right: 2.3rem;
}

.resource-business #section-taxes #add-tax-rate-row {
  min-height: 38px;
  padding: 0.55rem 0.95rem;
  border: 1px solid #2f5a4a;
  border-radius: 8px;
  background: linear-gradient(180deg, #2d4b3f 0%, #253e33 100%);
  color: #e4ece8;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 3px 10px rgba(12, 30, 23, 0.2);
}

.resource-business #section-taxes #add-tax-rate-row:hover {
  border-color: #4d816d;
  background: linear-gradient(180deg, #35604f 0%, #2b4d40 100%);
  color: #f2f5f3;
}

.resource-business .business-settings-stage-toolbar {
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.resource-business .business-settings-stage-toolbar-right {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-left: auto;
}

.resource-business .business-settings-template-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.resource-business .business-settings-stage-total {
  text-align: right;
}

.resource-business .business-settings-footer-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
}

.resource-business .business-settings-footer-actions a,
.resource-business .business-settings-footer-actions button {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  height: 40px;
  padding: 0.55rem 0.95rem;
  border: 1px solid #2f5a4a;
  border-radius: 8px;
  background: linear-gradient(180deg, #2d4b3f 0%, #253e33 100%);
  color: #e4ece8;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1;
  text-decoration: none;
  box-sizing: border-box;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(12, 30, 23, 0.2);
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.resource-business .business-settings-footer-actions .business-settings-footer-button {
  border: 1px solid #2f5a4a !important;
  border-radius: 8px !important;
  background: linear-gradient(180deg, #2d4b3f 0%, #253e33 100%) !important;
}

.resource-business .business-settings-footer-actions a:hover,
.resource-business .business-settings-footer-actions button:hover {
  border-color: #4d816d;
  background: linear-gradient(180deg, #35604f 0%, #2b4d40 100%);
  color: #f2f5f3;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(12, 30, 23, 0.26);
}

.resource-business .business-settings-footer-actions .business-settings-footer-button:hover {
  border-color: #4d816d !important;
  background: linear-gradient(180deg, #35604f 0%, #2b4d40 100%) !important;
}

@media (max-width: 720px) {
  .resource-business .business-logo-upload-form {
    grid-template-columns: 1fr;
  }

  .resource-employee-view .business-logo-upload-form {
    grid-template-columns: 1fr;
  }

  .resource-business .business-logo-upload-button {
    width: 100%;
  }

  .resource-business .business-settings-hero {
    grid-template-columns: 1fr;
  }

  .resource-business .business-settings-hero-actions {
    justify-content: flex-start;
  }
}

.resource-employee-view,
.resource-employee-update {
  color: #F2F5F3;
}

.resource-employee-view #breadcrumb,
.resource-employee-update #breadcrumb {
  border-bottom: 1px solid #2f5a4a;
  background: #1D3329;
}

.resource-employee-view #breadcrumb a,
.resource-employee-view #breadcrumb li,
.resource-employee-update #breadcrumb a,
.resource-employee-update #breadcrumb li {
  color: #D0DDD7;
}

.resource-employee-view #view-customer-actions {
  border: 1px solid #2f5a4a;
  border-radius: 0;
  background: #1D3329;
  box-shadow: none;
}

.resource-employee-view #view-customer-actions-header {
  border-bottom: 1px solid #2f5a4a;
  background: #244236;
  color: #F2F5F3;
}

.resource-employee-view #view-customer-actions-row {
  gap: 0.55rem;
}

.resource-employee-view #view-customer-actions-row a,
.resource-employee-view #view-customer-actions-row button {
  display: inline-block;
  padding: 0.55rem 0.95rem;
  border: 1px solid #2f5a4a;
  border-radius: 4px;
  background: #253E33;
  color: #B2C0B9;
  font-weight: 600;
  text-decoration: none;
  box-shadow: none;
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.resource-employee-view #view-customer-actions-row a:hover,
.resource-employee-view #view-customer-actions-row button:hover {
  border-color: #3a6553;
  background: #2d4b3f;
  color: #F2F5F3;
  text-decoration: none;
}

.resource-employee-view #view-customer-details {
  border: 1px solid #2f5a4a;
  border-radius: 0;
  background: #1D3329;
  box-shadow: none;
}

.resource-employee-view #view-customer-details > h2 {
  margin: 0;
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid #2f5a4a;
  background: #244236;
  color: #F2F5F3;
}

.resource-employee-view .view-customer-section-column {
  border-right: 0;
  background: transparent;
}

.resource-employee-view .view-customer-section-column > h3 {
  margin: 0 0 0.6rem;
  padding: 0.6rem 0.75rem;
  border: 1px solid #2f5a4a;
  border-radius: 8px;
  background: linear-gradient(180deg, #244236 0%, #1f382f 100%);
  color: #F2F5F3;
  text-align: left;
}

.resource-employee-view #view-customer-details-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.resource-employee-view .view-customer-detail-item {
  border: 1px solid #2f5a4a;
  border-radius: 8px;
  background: linear-gradient(180deg, #223a30 0%, #1d3329 100%);
  padding: 0.7rem 0.75rem;
  box-shadow: 0 8px 16px rgba(12, 30, 23, 0.16);
}

.resource-employee-view .view-customer-detail-item h4,
.resource-employee-view .view-customer-detail-item p {
  color: #F2F5F3;
}

.resource-employee-view .employee-status-chip {
  font-size: 0.9rem;
}

.resource-employee-view .employee-profile-photo-delete-form {
  margin-top: 0.6rem;
}

.resource-employee-view .employee-profile-photo-delete-button {
  min-height: 40px;
  padding: 0.55rem 0.95rem;
  border: 1px solid #9a3535;
  border-radius: 8px;
  background: linear-gradient(180deg, #4a2222 0%, #3a1b1b 100%);
  color: #f4dada;
  font-weight: 700;
  cursor: pointer;
}

.resource-employee-view .employee-profile-photo-delete-button:hover {
  border-color: #c35a5a;
  background: linear-gradient(180deg, #5a2929 0%, #492121 100%);
  color: #fff0f0;
}

.resource-employee-update #add-customer-form {
  border: 1px solid #00A86B;
  border-radius: 0;
  background: #1D3329;
  padding: 0.85rem;
}

.resource-employee-update .add-customer-form-row {
  border: 1px solid #2f5a4a;
  border-radius: 4px;
  background: #223a30;
  padding: 0.75rem;
}

.resource-employee-update .add-customer-form-field label {
  color: #D0DDD7;
}

.resource-employee-update .add-customer-form-field input,
.resource-employee-update .add-customer-form-field select,
.resource-employee-update .add-customer-form-field textarea {
  border: 1px solid #2f5a4a;
  background: #1f342b;
  color: #F2F5F3;
}

.resource-employee-update .add-customer-form-field select {
  border-color: #3b6a58;
  background-color: #1f342b;
  background-image:
    linear-gradient(45deg, transparent 50%, #D0DDD7 50%),
    linear-gradient(135deg, #D0DDD7 50%, transparent 50%);
  background-position:
    calc(100% - 1.05rem) calc(50% + 1px),
    calc(100% - 0.75rem) calc(50% + 1px);
  background-size: 0.35rem 0.35rem, 0.35rem 0.35rem;
  background-repeat: no-repeat;
  padding-right: 2.3rem;
  border-radius: 8px;
}

.resource-employee-update .add-customer-form-field input:focus,
.resource-employee-update .add-customer-form-field select:focus,
.resource-employee-update .add-customer-form-field textarea:focus {
  outline: 2px solid #5FA3D3;
  border-color: #5FA3D3;
}

.resource-employee-update #add-customer-form-actions button {
  min-height: 40px;
  padding: 0.6rem 1rem;
  border: 1px solid #2f5a4a;
  border-radius: 8px;
  background: linear-gradient(180deg, #2d4b3f 0%, #253E33 100%);
  color: #E4ECE8;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 3px 10px rgba(12, 30, 23, 0.2);
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.resource-employee-update #add-customer-form-actions button:hover {
  border-color: #4d816d;
  background: linear-gradient(180deg, #35604f 0%, #2b4d40 100%);
  color: #F2F5F3;
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(12, 30, 23, 0.26);
}

@media (max-width: 980px) {
  .resource-employee-view #view-customer-details-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .resource-business .business-settings-shell {
    grid-template-columns: 1fr;
  }

  .resource-business .business-settings-sidebar {
    position: static;
  }

  .resource-business #view-customer-details-list,
  .resource-business .business-profile-details-grid,
  .resource-business .business-tax-config-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1199px) {
  .resource-employees .customer-card {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    row-gap: 0.75rem;
  }

  .resource-employees .customer-card-column--status {
    grid-column: 1 / span 2;
    grid-row: 1;
  }

  .resource-employees .customer-card-column--name {
    grid-column: 3 / span 4;
    grid-row: 1;
    border-right: 0;
  }

  .resource-employees .customer-card-column--contact {
    grid-column: 1 / span 4;
    grid-row: 2;
  }

  .resource-employees .customer-card-column--position {
    grid-column: 5 / span 2;
    grid-row: 2;
    margin-left: 0;
    border-right: 0;
    align-items: center;
  }

  .resource-employees .customer-card-column--position .customer-card-label,
  .resource-employees .customer-card-column--position .customer-card-value {
    text-align: center;
  }
}

/* Estimate Signature Modal Styles */
#estimate-signature-modal {
  background-color: rgba(6, 14, 10, 0.66);
  backdrop-filter: blur(2px);
}

.estimate-signature-modal-content {
  width: min(750px, 96vw);
  max-width: 750px;
  border: 1px solid #2f5a4a;
  border-radius: 10px;
  background: linear-gradient(180deg, #223a30 0%, #1d3329 100%);
  box-shadow: 0 20px 48px rgba(5, 15, 11, 0.45);
}

.estimate-signature-modal-body {
  padding: 1.2rem 1.2rem 0.6rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: #1d3329;
  color: #F2F5F3;
}

#estimate-signature-modal .modal-header {
  padding: 0.95rem 1rem;
  border-bottom: 1px solid #2f5a4a;
  background: #244236;
}

#estimate-signature-modal .modal-header h2 {
  color: #F2F5F3;
}

#estimate-signature-modal .modal-close-btn {
  border: 1px solid #2f5a4a;
  border-radius: 6px;
  background: #253E33;
  color: #F2F5F3;
}

#estimate-signature-modal .modal-close-btn:hover {
  border-color: #3a6553;
  background: #2d4b3f;
}

.estimate-signature-modal-body > p {
  color: #F2F5F3;
  font-size: 0.95rem;
  margin: 0;
  line-height: 1.5;
}

#estimate-signature-canvas {
  border: 2px solid #2f5a4a;
  border-radius: 8px;
  background: #ffffff;
  cursor: crosshair;
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  touch-action: none;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

#estimate-signature-canvas:focus {
  outline: 2px solid #5fa3d3;
  outline-offset: 2px;
  border-color: #5fa3d3;
}

.estimate-signature-actions {
  display: flex;
  gap: 0.65rem;
  justify-content: flex-end;
  padding: 0.75rem 1.2rem 1.2rem;
  border-top: 1px solid #2f5a4a;
  background: #1f342b;
  border-radius: 0 0 10px 10px;
}

.estimate-signature-actions .modal-cancel-btn,
.estimate-signature-actions .modal-send-btn {
  flex: 0 0 auto;
  padding: 0.55rem 1.2rem;
  font-size: 0.9rem;
  border: 1px solid #2f5a4a;
  border-radius: 8px;
  background: #253E33;
  color: #D0DDD7;
  cursor: pointer;
  transition: all 0.2s ease;
}

.estimate-signature-actions .modal-cancel-btn:hover {
  border-color: #3a6553;
  background: #2d4b3f;
  color: #F2F5F3;
}

.estimate-signature-actions .modal-send-btn {
  border-color: #00A86B;
  background: #00A86B;
  color: #0B120F;
  font-weight: 600;
}

.estimate-signature-actions .modal-send-btn:hover {
  border-color: #009863;
  background: #009863;
  color: #0B120F;
}

.estimate-signature-actions .modal-send-btn:active {
  transform: scale(0.98);
}

/* Canvas mobile sizing */
@media (max-width: 640px) {
  .estimate-signature-modal-content {
    width: 98vw;
  }

  #estimate-signature-canvas {
    max-height: 200px;
  }

  .estimate-signature-actions {
    flex-wrap: wrap;
    padding: 0.6rem 1rem 1rem;
  }

  .estimate-signature-actions .modal-cancel-btn,
  .estimate-signature-actions .modal-send-btn {
    padding: 0.5rem 0.95rem;
    font-size: 0.85rem;
  }
}

/* ===================== Quick "+ Service Call" ===================== */
.header-service-call-btn {
  grid-area: servicecall;
  justify-self: end;
  align-self: center;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.95rem;
  background: #00a86b;
  color: #0b120f;
  border: none;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 168, 107, 0.35);
  transition: background 0.15s ease, transform 0.1s ease;
}
.header-service-call-btn:hover {
  background: #009863;
}
.header-service-call-btn:active {
  transform: translateY(1px);
}
.header-service-call-btn .header-service-call-plus {
  font-size: 1.15rem;
  line-height: 1;
  font-weight: 700;
}

.qsc-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 4vh 1rem 2rem;
  background: rgba(6, 14, 10, 0.66);
  backdrop-filter: blur(4px);
  overflow-y: auto;
}
.qsc-overlay[hidden] {
  display: none;
}

.qsc-modal {
  width: 100%;
  max-width: 520px;
  background: linear-gradient(180deg, #223a30 0%, #1d3329 100%);
  border: 1px solid #2f5a4a;
  border-radius: 10px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  color: #f2f5f3;
}

.qsc-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  background: #244236;
  border-bottom: 1px solid #2f5a4a;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}
.qsc-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: #f2f5f3;
}
.qsc-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  background: #253e33;
  border: 1px solid #2f5a4a;
  border-radius: 8px;
  color: #d0ddd7;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.qsc-close:hover {
  background: #2f5a4a;
  color: #f2f5f3;
}

.qsc-body {
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
  padding: 1.25rem;
}

.qsc-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.qsc-field[hidden] {
  display: none;
}
.qsc-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #d0ddd7;
}
.qsc-req {
  color: #ff8f8f;
}
.qsc-field-error {
  min-height: 1rem;
  margin: 0.1rem 0 0;
  color: #ff8f8f;
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.2;
  visibility: hidden;
}
.qsc-field-error.is-visible {
  visibility: visible;
}
.qsc-input.qsc-input-error {
  border-color: #d9534f;
  box-shadow: 0 0 0 3px rgba(217, 83, 79, 0.25);
}

.qsc-input {
  width: 100%;
  padding: 0.6rem 0.7rem;
  background: #253e33;
  border: 1px solid #2f5a4a;
  border-radius: 8px;
  color: #f2f5f3;
  font-family: inherit;
  font-size: 0.95rem;
  box-sizing: border-box;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.qsc-input::placeholder {
  color: #8aa79b;
}
.qsc-input:focus {
  outline: none;
  border-color: #5fa3d3;
  box-shadow: 0 0 0 3px rgba(95, 163, 211, 0.25);
}
.qsc-textarea {
  resize: vertical;
  min-height: 70px;
}
.qsc-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23d0ddd7' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2rem;
}

.qsc-search-control {
  position: relative;
}
.qsc-results {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 5;
  max-height: 240px;
  overflow-y: auto;
  background: #1d3329;
  border: 1px solid #2f5a4a;
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
}
.qsc-results[hidden] {
  display: none;
}
.qsc-result {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.6rem 0.75rem;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(47, 90, 74, 0.5);
  color: #f2f5f3;
  cursor: pointer;
  font-family: inherit;
}
.qsc-result:last-child {
  border-bottom: none;
}
.qsc-result:hover,
.qsc-result.is-active {
  background: #253e33;
}
.qsc-result-name {
  font-size: 0.92rem;
  font-weight: 600;
}
.qsc-result-phone {
  font-size: 0.82rem;
  color: #d0ddd7;
}
.qsc-result-empty {
  padding: 0.7rem 0.75rem;
  font-size: 0.88rem;
  color: #d0ddd7;
}
.qsc-result-empty button {
  background: none;
  border: none;
  color: #5fa3d3;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  font-size: inherit;
  font-family: inherit;
  text-decoration: underline;
}

.qsc-selected-customer {
  background: #253e33;
  border: 1px solid #2f5a4a;
  border-radius: 8px;
  padding: 0.7rem 0.8rem;
}
.qsc-selected-customer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.qsc-selected-customer-name {
  font-size: 0.95rem;
  font-weight: 700;
}
.qsc-selected-customer-phone {
  font-size: 0.82rem;
  color: #d0ddd7;
}
.qsc-link {
  background: none;
  border: none;
  color: #5fa3d3;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.85rem;
  font-family: inherit;
  text-decoration: underline;
  padding: 0;
}

.qsc-new-customer {
  border: 1px dashed #2f5a4a;
  border-radius: 8px;
  padding: 0.9rem;
}
.qsc-new-customer-heading {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.7rem;
  color: #f2f5f3;
}
.qsc-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
.qsc-grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.75rem;
}
.qsc-col-span-2 {
  grid-column: 1 / -1;
}
.qsc-note,
.qsc-hint {
  margin: 0.5rem 0 0;
  font-size: 0.78rem;
  color: #8aa79b;
}

.qsc-property-readonly {
  padding: 0.55rem 0.7rem;
  background: #253e33;
  border: 1px solid #2f5a4a;
  border-radius: 8px;
  font-size: 0.9rem;
  color: #f2f5f3;
}
.qsc-property-readonly[hidden] {
  display: none;
}

.qsc-plan-banner {
  background: rgba(0, 168, 107, 0.14);
  border: 1px solid #00a86b;
  border-radius: 8px;
  padding: 0.7rem 0.85rem;
}
.qsc-plan-banner[hidden] {
  display: none;
}
.qsc-plan-banner-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: #7ce0b4;
}
.qsc-plan-banner-benefits {
  margin-top: 0.25rem;
  font-size: 0.82rem;
  color: #d0ddd7;
}

.qsc-error {
  background: rgba(220, 80, 80, 0.14);
  border: 1px solid #c45b5b;
  border-radius: 8px;
  padding: 0.6rem 0.75rem;
  color: #ffb4b4;
  font-size: 0.85rem;
}
.qsc-error[hidden] {
  display: none;
}

.qsc-no-property {
  margin-top: 0.5rem;
  padding: 0.6rem 0.75rem;
  background: rgba(220, 170, 80, 0.14);
  border: 1px solid #c49a5b;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.qsc-no-property-text {
  margin: 0;
  color: #ffdca8;
  font-size: 0.85rem;
}
.qsc-no-property-link {
  align-self: flex-start;
  color: #00a86b;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: underline;
}

.qsc-submit {
  width: 100%;
  padding: 0.75rem 1rem;
  background: #00a86b;
  color: #0b120f;
  border: none;
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease;
}
.qsc-submit:hover:not(:disabled) {
  background: #009863;
}
.qsc-submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

@media (max-width: 540px) {
  .qsc-grid-2,
  .qsc-grid-3 {
    grid-template-columns: 1fr;
  }
}

.qsc-toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 1100;
  max-width: 360px;
  padding: 0.85rem 1.1rem;
  background: linear-gradient(180deg, #223a30 0%, #1d3329 100%);
  border: 1px solid #00a86b;
  border-radius: 10px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  color: #f2f5f3;
  font-size: 0.9rem;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.qsc-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.qsc-toast.is-error {
  border-color: #c45b5b;
}
