/* CONRAD farm theme
   Forest green (primary) · sandy accents · barn-red highlights.
   The forest/red/leaf-green values for buttons, links and badges were substituted
   directly in style.css and style-preset.css; this file layers on the surfaces. */

:root {
  --conrad-forest:      #2f6b3c;
  --conrad-forest-dark: #1e3a28;
  --conrad-sand:       #e6d5b0;
  --conrad-sand-light: #f6f1e3;
  --conrad-red:        #b3372b;

  /* page surfaces */
  --bs-body-bg: #f6f1e3;
  --bs-body-bg-rgb: 246, 241, 227;
  --pc-heading-color: #2f3320;
  --pc-active-background: #efe7d0;
  --pc-header-color: #5a5440;
  --pc-card-box-shadow: 0 1px 14px 0 rgba(90, 80, 40, .10);

  /* sidebar: dark forest green with sandy text, red active marker */
  --pc-sidebar-background: #1e3a28;
  --pc-sidebar-color: #d8d0b4;
  --pc-sidebar-color-rgb: 216, 208, 180;
  --pc-sidebar-active-color: #ecd9a0;
  --pc-sidebar-active-background: rgba(0, 0, 0, .18);
  --pc-sidebar-main-active-color: #ffffff;
  --pc-sidebar-caption-color: #e6d5b0;
  --pc-sidebar-shadow: 1px 0 20px 0 rgba(30, 58, 40, .45);
}

/* red highlight on the current page in the sidebar */
.pc-sidebar .pc-navbar > .pc-item.active > .pc-link,
.pc-sidebar .pc-navbar > .pc-item > .pc-link:hover {
  box-shadow: inset 3px 0 0 var(--conrad-red);
}

/* sandy touches on cards and tables */
.card-header { background-color: #fbf8ef; border-bottom-color: #eadfc2; }
.table-light,
.table > thead.table-light > tr > th {
  --bs-table-bg: #f3ecd8;
  --bs-table-color: #4a4630;
  background-color: #f3ecd8;
}
.table-hover > tbody > tr:hover > * { --bs-table-hover-bg: #f7f1de; }
.form-control:focus, .form-select:focus {
  border-color: var(--conrad-forest);
  box-shadow: 0 0 0 .2rem rgba(47, 107, 60, .20);
}
.breadcrumb-item a { color: var(--conrad-forest); }

/* Login / register / error pages: drone photo of the fields behind the card.
   The template paints a full-screen white panel (.auth-form); replace it with the photo plus a light forest tint. */
.auth-main .auth-wrapper.v1 .auth-form {
  background:
    linear-gradient(rgba(30, 58, 40, .35), rgba(30, 58, 40, .35)),
    url('../images/auth-bg.jpg') center / cover no-repeat;
}
.auth-main .auth-wrapper.v1 .auth-form .card {
  box-shadow: 0 12px 40px rgba(0, 0, 0, .35);
}

/* Page heading in the top bar, right after the search icon */
.pc-header .pc-mob-drp, .pc-header .pc-mob-drp > ul { min-width: 0; }
.pc-header .pc-mob-drp { flex: 1 1 auto; }
.pc-header .page-title-item { min-width: 0; }
.pc-header .page-title {
  font-size: 1.75rem; font-weight: 600; line-height: 1.2; margin: 0 0 0 1rem;
  color: var(--pc-heading-color); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
@media (max-width: 991px) { .pc-header .page-title { font-size: 1.4rem; margin-left: .5rem; } }
@media (max-width: 575px) {
  .pc-header .page-title { font-size: 1.15rem; }
  .pc-header .biz-switch { min-width: 0; max-width: 120px; }
}

/* Service status badge: filled pill so it stands out on cards and the equipment page */
.svc-badge { display: inline-flex; align-items: center; gap: .4rem; font-size: .875rem; font-weight: 600;
             padding: .45em .85em; border-radius: 999px; letter-spacing: .01em; }
.svc-badge svg { width: 16px; height: 16px; }
.svc-badge.bg-success { background-color: #2f6b3c !important; }   /* forest green: white text stays readable */

/* Equipment picture picker */
.template-pick { cursor: pointer; background: #fdfaf2; }
.template-pick img { background: #fdfaf2; }
.template-pick.selected { border-color: #2f6b3c !important; box-shadow: 0 0 0 2px #2f6b3c; }
.template-pick:focus-within { outline: 2px solid #2f6b3c; outline-offset: 1px; }
