:root {
  --pe-blue: #3a6aa5;
  --pe-indigo: #426ce5;
  --pe-purple: #6f42c1;
  --pe-pink: #e91e63;
  --pe-red: #dc3545;
  --pe-orange: #f37334;
  --pe-yellow: #f7c738;
  --pe-green: #18a538;
  --pe-teal: #56cfe1;
  --pe-cyan: #17a2b8;
  --pe-black: #000;
  --pe-white: #fff;
  --pe-gray: #6c757d;
  --pe-gray-dark: #24293c;
  --pe-gray-100: #f6f6f8;
  --pe-gray-200: #eeeef3;
  --pe-gray-300: #e9e9e9;
  --pe-gray-400: #ced4da;
  --pe-gray-500: #adb5bd;
  --pe-gray-600: #6c757d;
  --pe-gray-700: #767676;
  --pe-gray-800: #24293c;
  --pe-gray-900: #1a1e2e;
  --pe-primary: #3a6aa5;
  --pe-secondary: #426ce5;
  --pe-success: #18a538;
  --pe-info: #17a2b8;
  --pe-warning: #f7c738;
  --pe-danger: #dc3545;
  --pe-light: #eeeef3;
  --pe-dark: #343a40;
  --pe-primary-rgb: 58, 106, 165;
  --pe-secondary-rgb: 66, 108, 229;
  --pe-success-rgb: 24, 165, 56;
  --pe-info-rgb: 23, 162, 184;
  --pe-warning-rgb: 247, 199, 56;
  --pe-danger-rgb: 220, 53, 69;
  --pe-light-rgb: 238, 238, 243;
  --pe-dark-rgb: 52, 58, 64;
  --pe-primary-text-emphasis: #345f95;
  --pe-secondary-text-emphasis: #3b61ce;
  --pe-success-text-emphasis: #169532;
  --pe-info-text-emphasis: #1592a6;
  --pe-warning-text-emphasis: #deb332;
  --pe-danger-text-emphasis: #c6303e;
  --pe-light-text-emphasis: #767676;
  --pe-dark-text-emphasis: #767676;
  --pe-primary-bg-subtle: rgba(58, 106, 165, 0.1);
  --pe-secondary-bg-subtle: rgba(66, 108, 229, 0.1);
  --pe-success-bg-subtle: rgba(24, 165, 56, 0.1);
  --pe-info-bg-subtle: rgba(23, 162, 184, 0.1);
  --pe-warning-bg-subtle: rgba(247, 199, 56, 0.1);
  --pe-danger-bg-subtle: rgba(220, 53, 69, 0.1);
  --pe-light-bg-subtle: rgba(238, 238, 243, 0.5);
  --pe-dark-bg-subtle: rgba(52, 58, 64, 0.1);
  --pe-primary-border-subtle: #b0c3db;
  --pe-secondary-border-subtle: #b3c4f5;
  --pe-success-border-subtle: #a3dbaf;
  --pe-info-border-subtle: #a2dae3;
  --pe-warning-border-subtle: #fce9af;
  --pe-danger-border-subtle: #f1aeb5;
  --pe-light-border-subtle: #f6f6f8;
  --pe-dark-border-subtle: #adb5bd;
  --pe-white-rgb: 255, 255, 255;
  --pe-black-rgb: 0, 0, 0;
  --pe-font-sans-serif: "Public Sans", sans-serif;
  --pe-font-monospace:
    SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New",
    monospace;
  --pe-gradient: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.15),
    rgba(255, 255, 255, 0)
  );
  --pe-root-font-size: 1rem;
  --pe-body-font-family: var(--pe-font-sans-serif);
  --pe-body-font-size: 0.9063rem;
  --pe-body-font-weight: 400;
  --pe-body-line-height: 1.5;
  --pe-body-color: #1a1e2e;
  --pe-body-color-rgb: 26, 30, 46;
  --pe-body-bg: #f9f8fb;
  --pe-body-bg-rgb: 249, 248, 251;
  --pe-emphasis-color: #000;
  --pe-emphasis-color-rgb: 0, 0, 0;
  --pe-secondary-color: #767676;
  --pe-secondary-color-rgb: 118, 118, 118;
  --pe-secondary-bg: #fff;
  --pe-secondary-bg-rgb: 255, 255, 255;
  --pe-tertiary-color: rgba(26, 30, 46, 0.5);
  --pe-tertiary-color-rgb: 26, 30, 46;
  --pe-tertiary-bg: rgba(238, 238, 243, 0.5);
  --pe-tertiary-bg-rgb: 238, 238, 243;
  --pe-heading-color: #1a1e2e;
  --pe-link-color: #3a6aa5;
  --pe-link-color-rgb: 58, 106, 165;
  --pe-link-decoration: none;
  --pe-link-hover-color: #2e5584;
  --pe-link-hover-color-rgb: 46, 85, 132;
  --pe-code-color: #e91e63;
  --pe-highlight-color: #1a1e2e;
  --pe-highlight-bg: #fdf4d7;
  --pe-border-width: 1px;
  --pe-border-style: solid;
  --pe-border-color: #eeeef3;
  --pe-border-color-translucent: #eeeef3;
  --pe-border-radius: 0.3125rem;
  --pe-border-radius-sm: 0.4375rem;
  --pe-border-radius-lg: 0.75rem;
  --pe-border-radius-xl: 1rem;
  --pe-border-radius-xxl: 2rem;
  --pe-border-radius-2xl: var(--pe-border-radius-xxl);
  --pe-border-radius-pill: 50rem;
  --pe-box-shadow: 0 0 10px rgba(0, 0, 0, 0.065);
  --pe-box-shadow-sm:
    rgba(129, 129, 129, 0.03) 0px 5px 10px, rgba(76, 76, 76, 0.03) 0px 1px 2px;
  --pe-box-shadow-lg: 0 5px 10px rgba(30, 32, 37, 0.12);
  --pe-box-shadow-inset: inset 0 1px 2px rgba(0, 0, 0, 0.075);
  --pe-focus-ring-width: 0;
  --pe-focus-ring-opacity: 0;
  --pe-focus-ring-color: rgba(58, 106, 165, 0);
  --pe-form-valid-color: #18a538;
  --pe-form-valid-border-color: #18a538;
  --pe-form-invalid-color: #dc3545;
  --pe-form-invalid-border-color: #dc3545;
  --primaryColor: #01459c;
  /* --primaryColor: #e05700; */
  --primaryButtonColor: #e05700;
  --primaryHover: #f3640b;
  --secondaryColor: #05c000;
  --secondaryHover: #2f8c2d;
  --successColor: #3fa83c;
  --disabledBg: #e9ecef;
  --disabledBorder: #dcdfe4;
  --disabledColor: #7f8894;
}

body {
  background-color: #ffffff;
}

.text-primary {
  color: var(--primaryColor) !important;
}

.link-primary {
  color: #01459c !important;
  font-size: 15px;
  font-weight: 500;
}

.theme-card {
  border: 1px solid #cfe2ff;
}

.btn.btn-primary {
  background-color: var(--primaryButtonColor) !important;
  border-color: var(--primaryButtonColor) !important;
  white-space: nowrap;
}

.btn.btn-primary:hover {
  background-color: var(--primaryHover) !important;
  transition: 0.5s;
}

.btn.btn-secondary {
  background-color: var(--secondaryColor) !important;
  border-color: var(--secondaryColor) !important;
  white-space: nowrap;
}

.btn.btn-secondary:hover {
  background-color: var(--secondaryHover) !important;
  border-color: var(--secondaryHover) !important;
  transition: 0.5s;
}

/* ==========================================================================
   Disabled buttons — one grey, plainly inert look everywhere.
   Bootstrap only fades a disabled button (opacity), and the theme repaints
   .btn.btn-primary with !important, so a disabled primary still looked like a
   live orange button. These rules repaint it instead of dimming it, and the
   :hover twins keep the live colour from coming back on hover-over.
   ========================================================================== */
.btn:disabled,
.btn.disabled,
.btn[disabled],
fieldset:disabled .btn,
.btn:disabled:hover,
.btn.disabled:hover,
.btn[disabled]:hover,
.btn:disabled:focus,
.btn.disabled:focus,
.btn:disabled:active,
.btn.disabled:active {
  background-color: var(--disabledBg) !important;
  background-image: none !important;
  border-color: var(--disabledBorder) !important;
  color: var(--disabledColor) !important;
  opacity: 1 !important;
  box-shadow: none !important;
  text-shadow: none;
  filter: none;
  transform: none;
}

/* Outline / link / ghost buttons stay transparent — a solid grey fill would
   read as a different control rather than the same one, disabled. */
[class*="btn-outline-"]:disabled,
[class*="btn-outline-"].disabled,
[class*="btn-outline-"]:disabled:hover,
[class*="btn-outline-"].disabled:hover,
.btn-link:disabled,
.btn-link.disabled,
.btn-link:disabled:hover,
.btn-link.disabled:hover {
  background-color: transparent !important;
  color: var(--disabledColor) !important;
  border-color: var(--disabledBorder) !important;
}

.btn-link:disabled,
.btn-link.disabled {
  border-color: transparent !important;
  text-decoration: none !important;
}

/* Real buttons keep pointer events so the not-allowed cursor and any title
   hint still work — the browser blocks the click anyway. Anchors styled as
   buttons must stay inert, since .disabled does not stop a link navigating. */
button:disabled,
button.btn:disabled,
button.btn.disabled,
input[type="submit"]:disabled,
input[type="button"]:disabled {
  cursor: not-allowed !important;
  pointer-events: auto !important;
}

a.btn.disabled,
a.btn[disabled],
a.disabled[data-perm-mode] {
  pointer-events: none !important;
}

/* Bespoke buttons that never used the .btn classes (chat send, dashed
   "New property", reward give, quiz nav, round icon buttons, …). Excludes the
   modal close X and editor toolbars, whose glyphs are background images.
   A button that must keep its own disabled look — e.g. a light control on a
   dark overlay — opts out with .keep-own-disabled. */
button:disabled:not(.btn):not(.btn-close):not(.keep-own-disabled):not([class*="ql-"]):not([class*="note-"]) {
  background-color: var(--disabledBg) !important;
  background-image: none !important;
  border-color: var(--disabledBorder) !important;
  color: var(--disabledColor) !important;
  opacity: 1 !important;
  box-shadow: none !important;
}

/* Icon-only round buttons: keep the shape, drop the accent colour. */
.view-icon-btn:disabled,
.view-icon-btn.disabled,
.icon-btn:disabled,
.icon-btn.disabled,
.icon-btn2:disabled,
.icon-btn2.disabled {
  background-color: var(--disabledBg) !important;
  color: var(--disabledColor) !important;
  border-color: var(--disabledBorder) !important;
}

/* A label acting as a button (file pickers) can't be :disabled — pages mark
   it .disabled instead. */
label.attach-btn.disabled,
label.btn.disabled,
.upload-box.disabled {
  color: var(--disabledColor) !important;
  border-color: var(--disabledBorder) !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
}

.bg-primary {
  background-color: var(--primaryColor) !important;
}

.border-primary {
  border-color: var(--primaryColor) !important;
}

.text-sucess {
  color: var(--successColor) !important;
}

.select-outline {
  border: 0 !important;
  border-bottom: 1px solid var(--primaryColor) !important;
  border-radius: unset;
}

.select-outline-0 {
  border: 0 !important;
  border-radius: unset;
}

#loader-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.loader {
  border: 8px solid #f3f3f3;
  border-top: 8px solid var(--pe-primary);
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: spin 1s linear infinite;
}

.modal-backdrop.show {
  opacity: 0.8 !important;
}

.fs-18 {
  font-size: 18px !important;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/*Authentication*/
.login.login-with-news-feed {
  min-height: 100vh;
}

.login.login-with-news-feed .news-feed {
  position: fixed;
  left: 0;
  right: 500px;
  top: 0;
  bottom: 0;
  overflow: hidden;
  transform: translateZ(0);
}

.login.login-with-news-feed .news-feed .news-image {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  top: 0;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: top;
  background-color: rgb(0, 0, 0, 0.53);
  background-blend-mode: multiply;
}

.login.login-with-news-feed .news-feed .news-caption {
  color: rgba(255, 255, 255, 0.85);
  position: absolute;
  bottom: 0;
  inset-inline-start: 0;
  inset-inline-end: 0;
  padding: 126px 60px 40px;
  font-size: 18px;
  letter-spacing: 0.25px;
  z-index: 20;
  font-weight: 300;
  background: linear-gradient(
    to bottom,
    rgba(13, 18, 48, 0.02) 0,
    #053066 100%
  );
}

.login.login-with-news-feed .news-feed .news-caption .caption-title {
  font-weight: 300;
  color: #fff;
  font-size: 30px;
  text-align: center;
}

.login.login-with-news-feed .news-feed .news-caption .caption-logo {
  font-weight: 900;
  font-style: italic;
  color: #fff;
  font-size: 60px;
  text-align: center;
  text-shadow: 0 3px 3px #0070ff;
}

.login.login-with-news-feed .news-feed .news-caption .caption-tagline {
  font-size: 35px;
  font-style: italic;
  font-weight: 500;
  text-shadow: 0 2px 1px #0070ff;
}

.login.login-with-news-feed .login-container {
  width: 500px;
  background: #ffffff;
  padding: 60px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-left: auto;
}

/*Authentication*/

.app-wrapper {
  background-color: #fff;
  min-height: calc(100vh - 75px);
  padding: 15px 10px !important;
  margin-top: 55px;
  overflow-x: hidden;
}

.app-header {
  padding: 14px 10px !important;
}

.form-label {
  font-weight: 500;
  margin-bottom: 2px !important;
}

.table > :not(:first-child) {
  border-top: 0;
  border-color: #eeeef3 !important;
}

.table td,
.table th {
  padding: 0.4rem 0.6rem !important;
  white-space: nowrap;
}

.country-table-scroll {
  max-height: 360px;
  overflow-y: auto;
}

.country-table-scroll table {
  width: 100%;
  border-collapse: separate;
}

.country-table-scroll thead th {
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 2;
}

.view-icon-btn {
  width: 26px;
  height: 26px;
  font-size: 18px !important;
  line-height: 18px !important;
  padding: 0 !important;
  border-radius: 50% !important;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #b2ceff !important;
  color: #18469e;
}

.select2-container .select2-selection--multiple {
  border-radius: 6px !important;
  border: 1px solid #255585 !important;
  font-size: 13px !important;
}

.select2-container--default
  .select2-selection--multiple
  .select2-selection__choice {
  background-color: #e8eff7 !important;
  border: none !important;
}

.select2-container .select2-search--inline .select2-search__field {
  padding: 3px 0px !important;
}

.pe-app-sidebar .pe-app-sidebar-menu .pe-nav-link {
  color: #ffffffe8;
  font-size: 14.5px !important;
}

.pe-app-sidebar .pe-app-sidebar-menu .pe-nav-content {
  font-size: 14.5px;
}

.pe-app-sidebar .pe-app-sidebar-menu {
  scrollbar-width: none !important;
}

.pe-menu-title {
  color: rgba(255, 255, 255, 0.55) !important;
  font-size: 12px !important;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  pointer-events: none;
  list-style: none;
  line-height: 1;
}

#sidebarMenu > li.pe-menu-title:first-child {
  padding-top: 4px !important;
}

.pe-app-sidebar .pe-app-sidebar-menu .pe-nav-link:hover,
.pe-app-sidebar .pe-app-sidebar-menu .pe-nav-link.active,
.pe-nav-link.active {
  color: var(--primaryColor) !important;
  background-color: #e5efff !important;
}

.form-control,
.form-select {
  border: 1px solid rgb(179 179 179) !important;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primaryColor) !important;
}

.form-control:disabled {
  background-color: #dedede !important;
}

.form-check-input {
  border-color: rgb(137 134 134);
  width: 18px;
  height: 18px;
  cursor: pointer !important;
}

.logo-main {
  width: 172px;
  height: 172px;
}

.logo-main > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pe-app-sidebar {
  background-color: #0d1831;
}

.revenue-summary {
  display: flex;
  gap: 12px;
  padding: 12px 16px 14px;
  margin: 0 70px;
}

.revenue-card {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #eef2ff;
  border-radius: 10px;
  padding: 10px 14px;
  min-width: 0;
}

.revenue-card .label {
  font-size: 0.72rem;
  color: #6b7280;
  margin-top: 2px;
}

.revenue-card .value {
  font-size: 1rem;
  font-weight: 700;
  color: #1a1a2e;
  line-height: 1.2;
}

.revenue-card .rc-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-left: 10px;
  box-shadow: 0 1px 4px rgba(26, 86, 219, 0.1);
}

.legend-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 5px;
}

.property-card {
  border: 1px solid #cfe2ff;
  border-radius: 10px;
  padding: 10px;
  display: flex;
  gap: 10px;
  transition: 0.2s;
  background: #fff;
  overflow: hidden;
}

.property-card:hover {
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.property-card-body {
  min-width: 0;
  flex: 1;
  overflow: hidden;
}

.property-img {
  width: 125px;
  height: 100px;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  background: #eef1f4;
}

.property-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
}

/* Placeholder graphic shown behind the image; revealed when there is no
   photo (or the photo fails to load). */
.property-img-ph {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #adbccb;
  font-size: 34px;
  background: repeating-linear-gradient(
    45deg,
    #eef1f4,
    #eef1f4 10px,
    #e7ebef 10px,
    #e7ebef 20px
  );
}

.property-title {
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  flex: 1;
}

.line-clamp-1 {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.property-desc {
  font-size: 12px;
  color: #5e5e5e;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 4px;
}

.property-location {
  font-size: 13px;
  color: #5e5e5e;
  margin-top: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.new-property-btn {
  border: 2px dashed var(--primaryColor);
  border-radius: 5px;
  padding: 8px 27px;
  font-weight: 600;
  font-size: 16px;
  background-color: transparent;
  color: var(--primaryColor);
  transition: 0.3s;
}

.new-property-btn:hover {
  background-color: var(--primaryColor);
  color: #fff;
}

.custom-nav {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--primaryColor);
}

.custom-nav > .nav-link {
  color: var(--primaryColor);
  padding: 5px 20px;
  border: none !important;
}

.custom-nav > .nav-link:hover,
.custom-nav > .nav-link.active {
  color: #fff;
  background-color: var(--primaryColor);
}

#notesTab {
  position: relative;
  height: 70vh;
  display: flex;
  flex-direction: column;
}

#notesTab .d-flex.flex-column {
  overflow-y: auto;
  flex: 1;
  padding-right: 5px;
}

.sticky-input {
  position: sticky;
  bottom: 0;
}

.note-input-wrapper {
  position: relative;
}

.note-input-wrapper input {
  height: 45px;
}

.avatar-upload {
  position: relative;
  display: inline-block;
}

.user-avatar {
  width: 140px;
  height: 140px;
  border: 3px solid #e0e0e0;
}

.upload-icon {
  position: absolute;
  bottom: 4px;
  right: 9px;
  background: var(--secondaryColor);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 14px;
}

.form-check-input:checked {
  background-color: var(--secondaryColor);
  border-color: var(--secondaryColor);
}

.job-image {
  width: 70px;
  height: 46px;
  border-radius: 3px;
  overflow: hidden;
}

.job-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.badge {
  font-size: 12px !important;
  min-width: 80px;
  text-align: center;
}

.pe-chat-unread-badge {
  font-size: 12px !important;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 20px;
  width: 20px;
  border-radius: 50%;
  color: #fff !important;
}

.draft-status {
  background-color: #415a77;
  color: #fff;
}

/* ── Reward Section ─────────────────────────────── */
.rwd-wrap {
  border-radius: 12px;
  overflow: hidden;
  border: 1.5px solid #c8e0f8;
  background: #fff;
}

#jdHelperEmployees::-webkit-scrollbar {
  display: none;
}

.rwd-section-title {
  font-size: 13px;
  font-weight: 700;
  color: #374151;
  padding: 11px 16px;
  border-bottom: 1px solid #e4edf9;
  letter-spacing: 0.2px;
}

.rwd-emp-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  background: #f4f8ff;
  border-bottom: 1px solid #e4edf9;
}

.rwd-emp-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1.5px solid #c8d8f0;
}

.rwd-emp-info {
  flex: 1;
  min-width: 0;
}

.rwd-emp-name {
  font-size: 13px;
  font-weight: 600;
  color: #1a1e2e;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rwd-emp-sub {
  font-size: 11px;
  color: #6b7280;
  margin: 0;
}

.rwd-total-badge {
  font-size: 12px;
  font-weight: 700;
  color: var(--primaryColor);
  background: #ddeafc;
  padding: 3px 10px;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
}

.rwd-cat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 16px;
  border-bottom: 1px solid #f0f4fb;
  transition: background 0.12s;
}

.rwd-cat-row:last-of-type {
  border-bottom: none;
}

.rwd-cat-row:hover {
  background: #f8fbff;
}

.rwd-cat-name {
  font-size: 13px;
  font-weight: 500;
  color: #374151;
  margin: 0;
  flex: 1;
  min-width: 0;
}

.rwd-cat-ctrl {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.rwd-pts-input {
  width: 52px;
  height: 32px;
  border: 1.5px solid #dde6f5;
  border-radius: 7px;
  background: #f4f7fc;
  font-size: 14px;
  font-weight: 700;
  color: var(--primaryColor);
  text-align: center;
  outline: none;
  -moz-appearance: textfield;
  transition:
    border-color 0.18s,
    background 0.18s;
}

.rwd-pts-input:focus {
  border-color: var(--primaryColor);
  background: #fff;
}

.rwd-pts-input::-webkit-outer-spin-button,
.rwd-pts-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
}

.rwd-cat-max {
  font-size: 11px;
  color: #9ca3af;
  white-space: nowrap;
}

.rwd-save-row {
  padding: 12px 16px;
  border-top: 1px solid #e4edf9;
  background: #fafcff;
}

.rwd-give-btn {
  height: 34px;
  padding: 0 14px;
  border-radius: 8px;
  border: none;
  background: var(--primaryColor);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition:
    background 0.2s,
    transform 0.1s;
  white-space: nowrap;
}

.rwd-give-btn:hover {
  background: var(--primaryHover);
}

.rwd-give-btn:active {
  transform: scale(0.97);
}

.product-card {
  background: #fff;
  border: 1.5px solid #c8e0f8;
  border-radius: 10px;
  padding: 20px;
}

#photoInput {
  display: none;
}

.image-preview-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.preview-item {
  position: relative;
  width: 96px;
  height: 96px;
  border: 1.5px solid #e0e0e0;
  border-radius: 7px;
  overflow: visible;
  background: #fafafa;
  margin-top: 20px;
}

.preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}

.delete-icon {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 22px;
  height: 22px;
  background: #e53e3e;
  color: #fff;
  border: 2px solid #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
  transition:
    background 0.15s,
    transform 0.15s;
  z-index: 2;
}

.delete-icon:hover {
  background: #c53030;
  transform: scale(1.12);
}

.resize-none {
  resize: none;
}

.remove-icon {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  color: #fff;
  background-color: var(--pe-danger);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.scoreboard-entries-list {
  border-bottom-left-radius: 6px;
  border-bottom-right-radius: 6px;
}

.custom-card {
  border: 1px solid rgb(179 179 179) !important;
  border-radius: 0.3125rem;
  padding: 5.2px 10px;
}

.accordion-button::after {
  display: none;
}

.custom-accordion {
  border-radius: 12px;
  overflow: hidden;
  border: 1.5px solid #e2e8f0;
  background: #fff;
}

.custom-accordion .accordion-item {
  border: none;
  border-bottom: 1px solid #e9ecef;
  background: transparent;
}

.custom-accordion .accordion-item:last-child {
  border-bottom: none;
}

.custom-accordion .accordion-item.is-open {
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.15);
  border-radius: 10px;
  border-bottom: 1px solid transparent;
  z-index: 1;
  position: relative;
}

.custom-accordion .accordion-header {
  margin: 0;
}

.custom-accordion .acc-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 9px 18px;
  cursor: pointer;
  background: #fff;
  border-radius: 10px;
  transition: background 0.2s ease;
  user-select: none;
}

.custom-accordion .acc-header-row:hover {
  background: #f8f9ff;
}

.custom-accordion .accordion-item.is-open .acc-header-row {
  background: #f0f0ff;
}

.custom-accordion .acc-title {
  font-size: 15px;
  font-weight: 600;
  color: #1e293b;
  margin: 0;
}

.custom-accordion .acc-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.custom-accordion .btn-add-new {
  background: var(--primaryColor);
  color: #fff;
  border: none;
  border-radius: 20px;
  padding: 5px 16px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}

.custom-accordion .btn-add-new:hover {
  background: var(--primaryColor);
}

.custom-accordion .chevron-icon {
  font-size: 20px;
  color: #64748b;
  transition: transform 0.3s ease;
}

.custom-accordion .accordion-item.is-open .chevron-icon {
  transform: rotate(180deg);
  color: var(--primaryColor);
}

.custom-accordion .acc-body {
  padding: 15px;
  display: none;
}

.custom-accordion .accordion-item.is-open .acc-body {
  display: block;
}

.form-check {
  position: relative;
}

.custom-radio {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid #c9d0da;
  border-radius: 50%;
  position: relative;
  cursor: pointer;
  transition: all 0.2s ease;
  background-color: #fff;
  outline: none;
}

.custom-radio:hover {
  border-color: var(--secondaryColor);
  outline: none;
  box-shadow: none !important;
}

.custom-radio:checked {
  border-color: var(--secondaryColor);
  background-color: #fff;
  outline: none;
  box-shadow: none !important;
}

.custom-radio:checked::after {
  content: "";
  position: absolute;
  top: 6px;
  left: 11px;
  width: 19px;
  height: 20px;
  transform: translate(-50%, -50%);
  background-image: url("/assets/images/check.svg");
  background-size: contain;
  background-repeat: no-repeat;
}

.custom-radio-label {
  margin-left: 5px;
  font-size: 15px;
  margin-top: 3px;
}

.checklist-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.white-space-nowrap {
  white-space: nowrap;
}

fieldset {
  border: solid 1px #ddd;
  padding: 1.25em !important;
  margin: 1.125em 0 !important;
}

fieldset.custom-fieldset {
  border-color: #828282 !important;
  border-radius: 8px;
  border-width: 2px;
  background: #ffffff;
}

fieldset legend {
  font-weight: 500 !important;
  background: #fff;
  padding: 0 0.1875em;
  margin: 0 !important;
  margin-left: -0.1875em !important;
  width: auto !important;
  display: inline-block !important;
  float: none !important;
  font-size: 16px !important;
}

fieldset legend.custom-legend {
  color: #fff !important;
  background: var(--primaryColor) !important;
  padding: 2px 10px;
  border-radius: 6px;
}

.article-read-image {
  width: 50%;
  height: 400px;
  flex-shrink: 0;
  border-radius: 10px;
  overflow: hidden;
}

.article-read-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.color-box {
  width: 60px;
  height: 45px;
  border: none;
  cursor: pointer;
  background: none;
}

.color-box::-webkit-color-swatch {
  border: none;
}

.color-box::-webkit-color-swatch-wrapper {
  padding: 0;
}

.accordion-button:not(.collapsed) {
  background-color: var(--primaryColor) !important;
  color: #fff !important;
  border-color: var(--primaryColor) !important;
}

.lead-card {
  background-color: #e8f9fe;
  border-radius: 5px;
  padding: 15px;
}

.lead-count {
  color: #2fb1e5;
  margin-bottom: 0;
  font-size: 25px;
  font-weight: 600;
  line-height: 1.2;
}

.lead-image {
  width: 40px;
  height: 40px;
}

.lead-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.lead-progress {
  background-color: #2fb1e5;
  border-radius: 1rem;
}

.weeklyrevenue-card {
  background-color: #e4f9f2;
  border-radius: 5px;
  padding: 15px;
}

.revenue-count {
  color: #3d993a;
  margin-bottom: 0;
  font-size: 25px;
  font-weight: 600;
  line-height: 1.2;
}

.targetachieved-card {
  background-color: #fbf2ff;
  border-radius: 5px;
  padding: 15px;
}

.target-count {
  color: #c36de0;
  margin-bottom: 0;
  font-size: 25px;
  font-weight: 600;
  line-height: 1.2;
}

.target-progress {
  background-color: #c36de0;
  border-radius: 1rem;
}

.clientcalls-card {
  background-color: #fffed5;
  border-radius: 5px;
  padding: 15px;
}

.clientcalls-count {
  color: #e2ae04;
  margin-bottom: 0;
  font-size: 25px;
  font-weight: 600;
  line-height: 1.2;
}

.intensity-dominance-card {
  border-radius: 5px;
  overflow: hidden !important;
}

.intensity-header {
  margin-bottom: 0;
  color: #fff;
  background-color: #4e73df;
  padding: 10px;
  border: 1.3px solid #4e73df;
  font-size: 17px;
  overflow: hidden;
}

.intensity-dominance-body {
  border-bottom-left-radius: 5px;
  border-bottom-right-radius: 5px;
  border: 1.3px solid #b2ceff;
  border-top: none;
  padding: 15px;
  gap: 10px;
  overflow: auto;
  background: #f2f5ff;
  scrollbar-width: none;
  height: calc(100vh - 195px);
}

.intensity-dominance-body::-webkit-scrollbar {
  display: none;
}

.team-member-card {
  background-color: #fff;
  border: 1px solid #eaeaea;
  border-radius: 5px;
  padding: 8px;
  margin-bottom: 10px;
}

.member-name {
  font-size: 17px;
  font-weight: 600;
  line-height: 1;
  margin-bottom: 5px;
  color: #1a1e2e;
}

.score-text {
  font-size: 18px;
  font-weight: 600;
  color: var(--primaryColor);
  line-height: 1.2;
  margin-bottom: 0;
}

.member-desc {
  font-size: 13px;
  color: #5e5e5e;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
  height: 33px;
  margin-bottom: 5px;
}

.conversation-efficiency-card {
  border-radius: 5px;
  overflow: hidden !important;
}

.conversation-header {
  margin-bottom: 0;
  color: #fff;
  background-color: #1cc88a;
  padding: 10px;
  border: 1.3px solid #1cc88a;
  font-size: 17px;
  overflow: hidden;
}

.conversation-efficiency-body {
  border-bottom-left-radius: 5px;
  border-bottom-right-radius: 5px;
  border: 1.3px solid #b2ceff;
  border-top: none;
  padding: 15px;
  gap: 10px;
  overflow: auto;
  background: #eefff98a;
  scrollbar-width: none;
  height: calc(100vh - 195px);
}

.followup-card {
  border-radius: 5px;
  overflow: hidden !important;
}

.followup-header {
  margin-bottom: 0;
  color: #fff;
  background-color: #f6c23e;
  padding: 10px;
  border: 1.3px solid #f6c23e;
  font-size: 17px;
  overflow: hidden;
}

.followup-body {
  border-bottom-left-radius: 5px;
  border-bottom-right-radius: 5px;
  border: 1.3px solid #b2ceff;
  border-top: none;
  padding: 15px;
  gap: 10px;
  overflow: auto;
  background: #fffbf0;
  scrollbar-width: none;
  height: calc(100vh - 195px);
}

.revenue-produced-card {
  border-radius: 5px;
  overflow: hidden !important;
}

.revenue-header {
  margin-bottom: 0;
  color: #fff;
  background-color: #8e44ad;
  padding: 10px;
  border: 1.3px solid #8e44ad;
  font-size: 17px;
  overflow: hidden;
}

.revenue-produced-body {
  border-bottom-left-radius: 5px;
  border-bottom-right-radius: 5px;
  border: 1.3px solid #b2ceff;
  border-top: none;
  padding: 15px;
  scrollbar-width: none;
  gap: 10px;
  overflow: auto;
  background: #fbf0ff;
  height: calc(100vh - 195px);
}

.card-footer {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.added-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 0;
}

.top-performace-bg {
  background-color: #e5ffe4cc;
}

.top-performer-title {
  color: var(--secondaryColor) !important;
  font-size: 20px;
  font-weight: 600;
  text-align: center;
}

.average-performace-bg {
  background-color: #fff9cdcc;
}

.average-performer-title {
  color: #ffae00 !important;
  font-size: 20px;
  font-weight: 600;
  text-align: center;
}

.cut-zone-bg {
  background-color: #ffeae9;
}

.cut-zone-title {
  color: #d83930 !important;
  font-size: 20px;
  font-weight: 600;
  text-align: center;
}

.app-header {
  border-bottom: none;
  box-shadow: none;
  height: unset;
}

#hamburgerBtn {
  display: none;
}

.avatar-item {
  background-color: unset;
  border: 1px solid #e1e1e1;
}

.property-address {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  height: 42px;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

#jobsPage .table td:nth-child(2) {
  max-width: 0;
}

.job-detail-wrapper {
  overflow: hidden;
}

.job-details {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 0;
}

.pac-container {
  z-index: 999999 !important;
}

.send-btn {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: #22c55e;
  color: #fff;
  width: 36px;
  font-size: 20px;
  height: 36px;
  border-radius: 50%;
  transition: 0.6s;
}

.send-btn:hover {
  background: #21b356;
}

/* ==================== RESPONSIVE ==================== */

@media (max-width: 1462px) {
  .revenue-summary {
    margin: 0;
  }

  .pe-app-sidebar .pe-app-sidebar-menu .pe-nav-link {
    font-size: 14px !important;
    padding: 7px !important;
  }
}

/* Tablet / small desktop */
@media (max-width: 992px) {
  .create-user-container {
    flex-wrap: wrap;
  }

  .app-header #pageTitle,
  .app-header .pe-nav-icon {
    font-size: 18px;
  }

  .app-header {
    padding: 12px 10px !important;
    border-bottom: 1px solid var(--pe-border-color) !important;
    box-shadow: 0 1px 5px 0 #415a7740;
  }

  .app-wrapper {
    margin-top: 62px;
  }

  #hamburgerBtn {
    display: inline-flex !important;
  }

  .menu-btn {
    display: none !important;
  }

  #sidebar {
    position: fixed !important;
    left: -280px;
    top: 0;
    height: 100vh;
    width: 260px;
    z-index: 1050;
    background: #0d1831;
    transition: left 0.3s ease;
    box-shadow: 2px 0 12px rgba(0, 0, 0, 0.2);
  }

  #sidebar.open {
    left: 0;
  }

  .sidebar-backdrop {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1049;
  }

  /* Revenue cards: 2-per-row */
  .revenue-summary {
    flex-wrap: wrap;
  }

  .revenue-card {
    flex: 1 1 calc(50% - 6px);
    min-width: 160px;
  }

  /* Article image */
  .article-read-image {
    width: 100%;
    height: 280px;
  }
}

/* Phablet / large mobile */
@media (max-width: 768px) {
  .app-wrapper {
    padding: 12px 8px !important;
  }

  /* Filter toolbars: make inner group wrap */
  .d-flex.justify-content-between.flex-wrap > .d-flex.align-items-center,
  .d-flex.justify-content-between.flex-wrap > .d-flex.align-items-end {
    flex-wrap: wrap;
    width: 100%;
  }

  /* Date-picker form-icons share a row */
  .form-icon.right {
    flex: 1;
    min-width: 130px;
  }

  /* Override fixed-width inline styles on filter search boxes */
  .form-icon[style*="width"] {
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Override fixed-width inline styles on filter selects */
  select.form-select[style*="width"] {
    width: 100% !important;
  }

  /* Tables: reduce font */
  .table td,
  .table th {
    font-size: 13px;
  }

  /* Revenue summary */
  .revenue-summary {
    padding: 8px;
  }

  /* Product/job cards */
  .product-card {
    padding: 14px;
  }

  /* Scoreboard column heights: reduced for stacked layout */
  .intensity-dominance-body,
  .conversation-efficiency-body,
  .followup-body,
  .revenue-produced-body {
    height: 350px;
  }

  /* Article image */
  .article-read-image {
    width: 100%;
    height: 220px;
  }

  /* Property card: stack image above text */
  .property-card {
    flex-direction: column;
  }

  .property-img {
    width: 100%;
    height: 180px;
  }
}

/* Mobile */
@media (max-width: 576px) {
  .app-wrapper {
    margin-top: 56px;
    padding: 10px 6px !important;
  }

  .app-header {
    padding: 8px !important;
  }

  /* Revenue cards: 1-per-row */
  .revenue-card {
    flex: 1 1 100%;
  }

  .revenue-summary {
    gap: 8px;
    padding: 6px 8px;
  }

  /* Tables */
  .table td,
  .table th {
    padding: 0.3rem 0.4rem !important;
    font-size: 12px;
  }

  /* Badges */
  .badge {
    font-size: 11px !important;
    width: auto;
    min-width: 60px;
  }

  /* Forms */
  .form-control,
  .form-select {
    font-size: 14px;
  }

  /* Property image */
  .property-img {
    height: 150px;
  }

  /* Article image */
  .article-read-image {
    height: 180px;
  }

  /* Checklist rows */
  .checklist-row {
    gap: 6px;
  }

  /* Product card */
  .product-card {
    padding: 12px;
  }

  /* Modals */
  .modal-body {
    padding: 0.75rem;
  }

  .modal-header {
    padding: 0.75rem;
  }

  .modal-footer {
    padding: 0.5rem 0.75rem;
  }
}

.course-edit-wrap {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 24px;
  align-items: start;
}

.cover-upload {
  border: 2px dashed #d1d5db;
  border-radius: 10px;
  height: 220px;
  position: relative;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: background 0.2s;
}

.cover-upload:hover {
  background: #f9fafb;
}

.upload-placeholder {
  text-align: center;
  color: #6b7280;
}

.upload-cover {
  font-size: 38px;
  display: block;
  margin-bottom: 6px;
}

.preview-box {
  position: absolute;
  inset: 0;
}

.preview-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.remove-cover {
  position: absolute;
  top: 8px;
  right: 8px;
  background: red;
  color: #fff;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  font-size: 15px;
}

.chapter-row {
  background: #fff;
  border: 1px solid #e9e9e9;
  border-radius: 8px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: box-shadow 0.15s;
}

.chapter-row:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.drag-handle {
  cursor: grab;
  color: #cbd5e1;
  font-size: 17px;
  line-height: 1;
  flex-shrink: 0;
  padding: 2px;
}

.drag-handle:active {
  cursor: grabbing;
}

.chapter-thumb {
  width: 48px;
  height: 36px;
  object-fit: cover;
  border-radius: 5px;
  flex-shrink: 0;
}

.chapter-num-badge {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--pe-primary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.article-pick-item {
  border: 1px solid #e9e9e9;
  border-radius: 8px;
  padding: 10px 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition:
    border-color 0.15s,
    background 0.15s;
}

.article-pick-item:hover {
  border-color: var(--pe-primary);
}

.article-pick-item.selected {
  border-color: var(--pe-primary);
  background: rgba(58, 106, 165, 0.06);
}

.article-pick-item .pick-thumb {
  width: 54px;
  height: 40px;
  object-fit: cover;
  border-radius: 5px;
  flex-shrink: 0;
}

@media (max-width: 991px) {
  .course-edit-wrap {
    grid-template-columns: 1fr;
  }
}

/* ── Section cards (new-course) ──────────────────────────── */
.sec-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 11px 13px;
  transition:
    box-shadow 0.15s,
    border-color 0.15s;
  cursor: default;
}

.sec-card:hover {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
  border-color: #d1d5db;
}

.sec-card.chapter {
  border-left: 3px solid var(--pe-primary, #3a6aa5);
}

.sec-card.quiz {
  border-left: 3px solid #f59e0b;
}

.sec-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  flex-shrink: 0;
}

.sec-icon.chapter {
  background: #eff6ff;
  color: var(--pe-primary, #3a6aa5);
}

.sec-icon.quiz {
  background: #fffbeb;
  color: #d97706;
}

.sec-body {
  flex: 1;
  min-width: 0;
}

.sec-type-lbl {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  line-height: 1;
  margin-bottom: 3px;
}

.sec-type-lbl.chapter {
  color: var(--pe-primary, #3a6aa5);
}

.sec-type-lbl.quiz {
  color: #d97706;
}

.sec-title {
  font-size: 13px;
  font-weight: 500;
  color: #111827;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

.sec-actions {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}

.sec-actions a,
.sec-actions button {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  border: none;
  background: none;
  font-size: 15px;
  color: #9ca3af;
  text-decoration: none;
  transition:
    background 0.12s,
    color 0.12s;
}

.sec-actions a:hover {
  background: #f3f4f6;
  color: #374151;
}

.sec-actions button:hover {
  background: #fef2f2;
  color: #ef4444;
}

#emptySections {
  padding: 40px 0;
}

/* ── Quiz page ───────────────────────────────────────────── */
.question-block {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
}

.q-header {
  background: #f8f9fa;
  border-bottom: 1px solid #e9ecef;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.q-del {
  margin-left: auto;
  border: none;
  background: none;
  color: #adb5bd;
  font-size: 17px;
  padding: 4px 6px;
  border-radius: 6px;
  line-height: 1;
  transition:
    color 0.12s,
    background 0.12s;
  cursor: pointer;
}

.q-del:hover {
  color: #dc3545;
  background: rgba(220, 53, 69, 0.08);
}

.quiz-marks-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.quiz-marks-label {
  font-size: 15px;
  font-weight: 500;
  color: #6c757d;
  white-space: nowrap;
}

.quiz-mark-input {
  width: 160px;
}

.answer-row {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 6px 0;
}

.answer-row + .answer-row {
  border-top: 1px solid #f3f4f6;
}

.ans-letter {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #e9ecef;
  color: #6c757d;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.correct-btn {
  flex-shrink: 0;
  border: 1.5px solid #d1d5db;
  border-radius: 20px;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 500;
  color: #6b7280;
  background: #fff;
  transition: all 0.15s;
  white-space: nowrap;
  line-height: 1.4;
}

.correct-btn.active {
  border-color: #16a34a;
  background: #f0fdf4;
  color: #16a34a;
}

.correct-btn.active i::before {
  content: "\eb7b";
}

.ans-del,
.remove-criteria {
  flex-shrink: 0;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  border: none;
  background: none;
  color: #fff;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: normal;
  transition: color 0.12s;
  background-color: #ef4444;
}

/* ── Learning Center ─────────────────────────────────────── */
.course-card {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e9e9e9;
  background: #fff;
  transition: box-shadow 0.2s;
  cursor: pointer;
}

.course-card:hover {
  box-shadow: 0 6px 24px rgba(58, 106, 165, 0.15);
}

.course-thumb {
  width: 100%;
  height: 155px;
  object-fit: cover;
}

.course-status-badge {
  position: absolute;
  top: 10px;
  left: 10px;
}

/* Action (⋮) menu overlaid on the course thumbnail, top-right */
.course-action-menu {
  position: absolute;
  top: 12px;
  right: 8px;
  z-index: 3;
}

.course-action-menu > .btn {
  transition:
    color 0.15s ease,
    background-color 0.15s ease;
}

/* Highlight the action button when the whole card is hovered (matches its own
   hover state: primary background, white icon). */
.course-card:hover .course-action-menu > .btn {
  color: #fff;
  background-color: var(--pe-primary);
  border-color: transparent;
}

.chapter-count-badge {
  font-size: 12px;
}

.Inactive-status {
  background: #6c757d;
}

/* ── Course Details ──────────────────────────────────────── */
.lesson-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  min-height: calc(100vh - 120px);
  gap: 0;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e9e9e9;
  overflow: hidden;
}

.lesson-sidebar {
  border-right: 1px solid #e9e9e9;
  display: flex;
  flex-direction: column;
}

.sidebar-header {
  padding: 18px 16px 14px;
  border-bottom: 1px solid #e9e9e9;
}

.sidebar-progress {
  height: 5px;
  border-radius: 3px;
  background: #e9e9e9;
  margin-top: 10px;
}

.sidebar-progress-fill {
  height: 100%;
  border-radius: 3px;
  background: var(--pe-primary);
  transition: width 0.4s;
}

.chapter-nav-list {
  overflow-y: auto;
  flex: 1;
  padding: 14px 8px;
}

.chapter-nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 40px;
  padding: 6px 10px;
  border-radius: 9px;
  cursor: pointer;
  transition:
    background 0.15s,
    border-color 0.15s,
    color 0.15s;
  border: 1px solid transparent;
}

.chapter-nav-item:hover {
  background: #f8fafc;
}

.chapter-nav-item.active {
  background: #eef4ff;
  border-color: #9dbbff;
}

.chapter-nav-item .ch-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid #d1d5db;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #4b5563;
  flex-shrink: 0;
  background: #fff;
  transition: all 0.2s;
}

.chapter-nav-item.active .ch-icon {
  border-color: var(--pe-primary);
  color: var(--pe-primary);
}

.chapter-nav-item.done .ch-icon {
  background: #18a538;
  border-color: #18a538;
  color: #fff;
}

.chapter-nav-item .ch-title {
  min-width: 0;
  flex: 1;
  color: #111827;
  font-size: 14px;
  line-height: 1.35;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chapter-nav-item.active .ch-title {
  font-weight: 600;
  color: var(--pe-primary);
}

.chapter-nav-item .ch-type-icon {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  flex-shrink: 0;
  font-size: 17px;
}

.chapter-nav-item .ch-type-icon.chapter {
  color: #111c3d;
}

.chapter-nav-item .ch-type-icon.quiz {
  color: #ffb000;
}

.lesson-content {
  display: flex;
  flex-direction: column;
}

.lesson-topbar {
  padding: 10px 15px;
  border-bottom: 1px solid #e9e9e9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fafafa;
}

.lesson-body {
  padding: 18px 15px;
  flex: 1;
  overflow-y: auto;
}

.lesson-media img,
.lesson-media iframe {
  width: 100%;
  border-radius: 10px;
  max-height: 340px;
  object-fit: cover;
}

.lesson-footer {
  padding: 14px 24px;
  border-top: 1px solid #e9e9e9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fafafa;
}

@media (max-width: 768px) {
  .lesson-layout {
    grid-template-columns: 1fr;
  }

  .lesson-sidebar {
    display: none;
  }
}

/* Tablet: keep the split layout but shrink the form panel + caption so they fit */
@media only screen and (max-width: 991px) {
  .login.login-with-news-feed .news-feed {
    right: 380px;
  }

  .login.login-with-news-feed .login-container {
    width: 380px;
    padding: 40px 30px;
  }

  .login.login-with-news-feed .news-feed .news-caption {
    padding: 80px 30px 40px;
  }

  .login.login-with-news-feed .news-feed .news-caption .caption-title {
    font-size: 22px;
  }

  .login.login-with-news-feed .news-feed .news-caption .caption-logo {
    font-size: 42px;
  }

  .login.login-with-news-feed .news-feed .news-caption .caption-tagline {
    font-size: 24px;
  }
}

/* Phone / small tablet: drop the decorative panel, center the form full-width */
@media only screen and (max-width: 767px) {
  .login.login-with-news-feed .news-feed {
    display: none;
  }

  .login.login-with-news-feed .login-container {
    width: 100%;
    max-width: 460px;
    margin: 0 auto;
    padding: 32px 20px;
  }

  .login.login-with-news-feed .login-container .logo-header img {
    width: 170px !important;
  }

  .login.login-with-news-feed .login-container h4 {
    margin-bottom: 2rem !important;
  }
}

/* ── Course viewer quiz ── */
.quiz-player {
  display: flex;
  justify-content: center;
}

.quiz-card {
  width: min(100%, 660px);
  padding: 26px;
  border: 1px solid #e6ebf2;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 26px rgba(15, 23, 42, 0.08);
}

.quiz-question-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  margin-bottom: 16px;
  border-radius: 999px;
  background: #eef1fb;
  color: #596276;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.quiz-question-pill i {
  color: #ffc107;
  font-size: 13px;
}

.quiz-question-title {
  margin-bottom: 20px;
  color: #344054;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
}

.quiz-option {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 64px;
  padding: 14px 16px;
  border: 1.5px solid #eef1f5;
  border-radius: 12px;
  background: #fff;
  color: #344054;
  cursor: pointer;
  margin-bottom: 10px;
  text-align: left;
  transition: all 0.15s;
}

.quiz-option:hover:not(.correct):not(.wrong):not(.missed):not(.muted) {
  border-color: var(--pe-primary);
  background: rgba(58, 106, 165, 0.04);
}

.quiz-option:disabled {
  cursor: default;
  opacity: 1;
}

.quiz-option.selected {
  border-color: var(--pe-primary);
  background: rgba(58, 106, 165, 0.08);
}

.quiz-option.correct {
  border-color: #49c768;
  background: #eefbf2;
  color: #2f6d4f;
  cursor: default;
}

.quiz-option.wrong {
  border-color: #ff6b6b;
  background: #fff5f5;
  color: #b42318;
  cursor: default;
}

.quiz-option.missed {
  border-color: #49c768;
  background: #eefbf2;
  color: #2f6d4f;
  cursor: default;
}

.quiz-option.muted {
  background: #fff;
  color: #555e6c;
  cursor: default;
}

.quiz-opt-letter {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #f6f8fb;
  color: #555e6c;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition:
    background 0.15s,
    color 0.15s;
}

.quiz-option.selected .quiz-opt-letter {
  background: var(--pe-primary);
  color: #fff;
}

.quiz-option.correct .quiz-opt-letter {
  background: #46a667;
  color: #fff;
}

.quiz-option.wrong .quiz-opt-letter {
  background: #e3443f;
  color: #fff;
}

.quiz-option.missed .quiz-opt-letter {
  background: #46a667;
  color: #fff;
}

.quiz-option.muted .quiz-opt-letter {
  background: #f0f2f5;
  color: #7b8594;
}

.quiz-opt-text {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  font-weight: 500;
}

.quiz-status-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 15px;
  flex-shrink: 0;
}

.quiz-status-icon.correct {
  background: #46a667;
}

.quiz-status-icon.wrong {
  background: #e3443f;
}

.quiz-feedback {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  margin-top: 14px;
  border: 1.5px solid;
  border-radius: 12px;
}

.quiz-feedback.success {
  border-color: #49c768;
  background: #eefbf2;
  color: #236a3b;
}

.quiz-feedback.danger {
  border-color: #ff8a8a;
  background: #fff5f5;
  color: #b42318;
}

.quiz-feedback strong,
.quiz-feedback small {
  display: block;
}

.quiz-feedback strong {
  font-size: 13px;
  margin-bottom: 3px;
}

.quiz-feedback small {
  font-size: 12px;
}

.quiz-feedback-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}

.quiz-feedback.success .quiz-feedback-icon {
  background: #46a667;
}

.quiz-feedback.danger .quiz-feedback-icon {
  background: #e3443f;
}

.quiz-feedback-icon i {
  color: #fff;
}

.quiz-card-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid #edf0f5;
}

.quiz-nav-btn {
  min-width: 112px;
  border-radius: 7px;
  font-weight: 600;
}

.quiz-score-card {
  padding: 20px;
  border-radius: 12px;
  background: #f8f9fa;
  border: 1.5px solid #e9ecef;
}

.quiz-score-bar {
  height: 8px;
  border-radius: 4px;
  background: #e9ecef;
  overflow: hidden;
}

.quiz-score-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.4s;
}

.quiz-score-fill.pass {
  background: #18a538;
}

.quiz-score-fill.fail {
  background: #dc3545;
}

.quiz-result-card {
  width: min(100%, 760px);
  margin: 0 auto;
  padding: 22px;
  border: 1px solid #e6ebf2;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 26px rgba(15, 23, 42, 0.08);
}

.quiz-result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.quiz-result-eyebrow {
  display: block;
  margin-bottom: 4px;
  color: #667085;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.quiz-result-percent {
  min-width: 70px;
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 18px;
  font-weight: 800;
  text-align: center;
}

.quiz-result-percent.pass {
  background: #eefbf2;
  color: #237a3b;
}

.quiz-result-percent.fail {
  background: #fff5f5;
  color: #b42318;
}

.quiz-result-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
}

.quiz-result-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border: 1px solid #edf0f5;
  border-radius: 10px;
  background: #fbfcfe;
}

.quiz-result-row.correct {
  border-color: #d6f5df;
  background: #f6fef8;
}

.quiz-result-row.wrong {
  border-color: #ffe1e1;
  background: #fffafa;
}

.quiz-result-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 15px;
  flex-shrink: 0;
}

.quiz-result-row.correct .quiz-result-icon {
  background: #46a667;
}

.quiz-result-row.wrong .quiz-result-icon {
  background: #e3443f;
}

.quiz-result-copy {
  min-width: 0;
}

.quiz-result-copy strong {
  display: block;
  color: #344054;
  font-size: 13px;
  line-height: 1.35;
}

.quiz-result-copy small {
  display: inline-block;
  margin: 3px 14px 0 0;
  color: #667085;
  font-size: 12px;
}

/* ── Service Assessment ── */
.svc-nav-item {
  cursor: pointer;
  border-left: 3px solid transparent;
  transition:
    background 0.15s,
    border-color 0.15s;
}

.svc-nav-item:hover {
  background: #f8f9fa;
}

.svc-nav-item.active {
  background: rgba(58, 106, 165, 0.07);
  border-left-color: var(--pe-primary);
}

.svc-nav-item.active .svc-nav-name {
  color: var(--pe-primary);
  font-weight: 600;
}

.svc-nav-item.active .svc-icon {
  color: var(--pe-primary) !important;
}

.svc-icon-circle {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #f0f2f5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
  transition: background 0.15s;
}

.svc-nav-item.active .svc-icon-circle {
  background: rgba(58, 106, 165, 0.12);
}

.status-tab {
  font-size: 12px;
  font-weight: 500;
  padding: 6px 16px;
  border-radius: 20px;
  border: 1.5px solid #dee2e6;
  background: #f8f9fa;
  color: #6c757d;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s;
  line-height: 1.4;
}

.status-tab:hover {
  background: #e9ecef;
  border-color: #ced4da;
}

.status-tab.active[data-status="danger"] {
  background: rgba(218, 36, 39, 0.09);
  color: #da2427;
  border-color: #da2427;
}

.status-tab.active[data-status="poor"] {
  background: rgba(252, 140, 4, 0.12);
  color: #c97000;
  border-color: #fc8c04;
}

.status-tab.active[data-status="fair"] {
  background: rgba(245, 187, 10, 0.18);
  color: #8a6900;
  border-color: #f5bb0a;
}

.status-tab.active[data-status="good"] {
  background: rgba(63, 169, 60, 0.09);
  color: #3fa93c;
  border-color: #3fa93c;
}

.status-tab.active[data-status="excellent"] {
  background: rgba(240, 180, 24, 0.15);
  color: #8a6800;
  border-color: #f0b418;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

.status-accent-bar {
  height: 3px;
  border-radius: 3px;
  margin-bottom: 20px;
  transition: background 0.2s;
}

.status-accent-bar.danger {
  background: linear-gradient(90deg, #da2427, #f05055);
}

.status-accent-bar.poor {
  background: linear-gradient(90deg, #fc8c04, #fdaa40);
}

.status-accent-bar.fair {
  background: linear-gradient(90deg, #f5bb0a, #f8ce4a);
}

.status-accent-bar.good {
  background: linear-gradient(90deg, #3fa93c, #5cc459);
}

.status-accent-bar.excellent {
  background: linear-gradient(90deg, #f0b418, #f7cc55);
}

.criteria-item {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
  align-items: center;
}

.criteria-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #e9ecef;
  color: #6c757d;
  font-size: 11px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.svc-empty-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: #f0f2f5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: #adb5bd;
  margin: 0 auto 16px;
}

/* ================================================
   Job Details Page
   ================================================ */
.jd-section-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--pe-gray-600);
  margin-bottom: 12px;
}

.jd-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--pe-primary-border-subtle);
  flex-shrink: 0;
}

.jd-prop-img {
  width: 100%;
  height: 212px;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid var(--pe-gray-400);
}

.jd-schedule-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--pe-primary-bg-subtle);
  border: 1px solid var(--pe-primary-border-subtle);
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 14px;
  color: var(--primaryColor);
  font-weight: 500;
}

.jd-employee-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
}

.jd-employee-card + .jd-employee-card {
  border-top: 1px solid var(--pe-border-color);
}

.jd-emp-name {
  font-size: 17px;
  font-weight: 600;
  margin: 0;
  color: var(--pe-gray-800);
}

.jd-emp-email {
  font-size: 14px;
  color: var(--pe-gray-600);
  margin: 0;
}

.jd-emp-role-badge {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 20px;
  font-weight: 600;
}

.jd-service-row {
  background: var(--pe-gray-100);
  border: 1px solid var(--pe-gray-200);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 10px;
}

.jd-service-name {
  font-size: 18px;
  font-weight: 600;
  color: var(--pe-gray-900);
  margin-bottom: 0;
}

.jd-service-cost {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 0;
  color: var(--primaryColor);
  white-space: nowrap;
}

.jd-checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 15px;
  color: var(--pe-gray-600);
  padding: 3px 0;
}

.jd-checklist-item i {
  color: var(--primaryColor);
}

.jd-total-bar {
  background: linear-gradient(
    135deg,
    var(--primaryColor) 0%,
    var(--primaryHover) 100%
  );
  border-radius: 10px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
}

.jd-total-label {
  font-size: 18px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
}

.jd-total-amount {
  font-size: 22px;
  font-weight: 800;
  color: var(--pe-white);
  margin: 0;
}

.jd-info-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
}

.jd-info-row + .jd-info-row {
  border-top: 1px solid var(--pe-border-color);
}

.jd-info-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--pe-primary-bg-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--primaryColor);
  flex-shrink: 0;
}

.jd-info-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--pe-gray-500);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin: 0;
}

.jd-info-value {
  font-size: 14px;
  font-weight: 500;
  color: var(--pe-gray-800);
  margin: 0;
}

.jd-customer-block {
  display: flex;
  align-items: center;
  gap: 14px;
}

.jd-customer-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--pe-primary-border-subtle);
  flex-shrink: 0;
}

.jd-customer-name {
  font-size: 22px;
  font-weight: 700;
  color: var(--pe-gray-900);
  margin: 0 0 2px;
}

.jd-customer-email {
  color: var(--pe-gray-600);
  margin: 0;
}

/* ── Sales Dashboard ─────────────────────────────────────────────────────── */
#salesdashboardPage .card-header {
  flex-wrap: wrap;
  gap: 6px;
}

/* Date filters sized to their content so the header doesn't show a wide
   empty gap. Range fields hold "MM/DD/YYYY — MM/DD/YYYY"; month fields hold
   e.g. "September 2026". They go full-width only on phones (below). */
#salesdashboardPage .card-header .dp-range {
  min-width: 0;
  width: 176px;
  max-width: 100%;
  flex: 0 0 auto;
}

#salesdashboardPage .card-header .dp-month {
  min-width: 0;
  width: 120px;
  max-width: 100%;
  flex: 0 0 auto;
}

@media (max-width: 575.98px) {
  #salesdashboardPage .card-header .dp-range,
  #salesdashboardPage .card-header .dp-month {
    width: 100%;
    flex: 1 1 auto;
  }
}

.lb-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #f3f4f6;
}

.lb-item:last-child {
  border-bottom: none;
}

.lb-rank {
  font-size: 12px;
  font-weight: 700;
  color: #9ca3af;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: #f3f4f6;
}

.lb-rank.top1 {
  background: #fef3c7;
  color: #d97706;
  border: 1.5px solid #fcd34d;
}

.lb-rank.top2 {
  background: #f3f4f6;
  color: #4b5563;
  border: 1.5px solid #9ca3af;
}

.lb-rank.top3 {
  background: #fdf2e9;
  color: #b45309;
  border: 1.5px solid #d97706;
}

.lb-info {
  flex: 1;
  min-width: 0;
}

.lb-name {
  font-weight: 600;
  margin: 0;
}

.lb-bar-wrap {
  flex: 1.4;
}

.lb-bar-bg {
  background: #f3f4f6;
  border-radius: 99px;
  height: 6px;
  overflow: hidden;
}

.lb-bar-fill {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--primaryColor), var(--primaryHover));
  transition: width 0.4s ease;
}

.lb-amount {
  font-size: 15px;
  font-weight: 700;
  color: var(--primaryColor);
  width: 72px;
  text-align: right;
  flex-shrink: 0;
}

.at-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #f3f4f6;
}

.at-item:last-child {
  border-bottom: none;
}

.at-info {
  flex: 1;
  min-width: 0;
}

.at-name {
  font-weight: 600;
  margin: 0 0 4px;
}

.at-bar-bg {
  background: #f3f4f6;
  border-radius: 99px;
  height: 5px;
  overflow: hidden;
  margin-top: 4px;
}

.at-bar-fill {
  height: 100%;
  border-radius: 99px;
  transition: width 0.4s ease;
}

.at-pct {
  font-size: 14px;
  font-weight: 700;
  min-width: 38px;
  text-align: right;
  flex-shrink: 0;
}

/* Write-gated actions are hidden up-front to prevent a flash; app.applyWritePermissions()
   strips the attribute on allowed elements (revealing them) and removes/disables the rest. */
[data-perm-write] {
  display: none !important;
}

/* Read-only lock applied by app.applyWritePermissions() to [data-perm-readonly]
   containers when the user lacks write. We make the *contents* inert (not the
   container itself) so the panel can still be scrolled. */
.perm-readonly * {
  pointer-events: none !important;
}

.perm-readonly input:not([type="checkbox"]):not([type="radio"]),
.perm-readonly select,
.perm-readonly textarea {
  background-color: #f5f6f8 !important;
}

.form-check-input[type="checkbox"]:indeterminate {
  background-color: var(--secondaryColor) !important;
  border-color: var(--secondaryColor) !important;
}

/* Read-only screens may still allow opening a detail/view panel: opt elements
   back in by adding the perm-readonly-allow class (or the task open-details btn). */
.perm-readonly .perm-readonly-allow,
.perm-readonly .perm-readonly-allow *,
.perm-readonly .task-details-btn,
.perm-readonly .task-details-btn * {
  pointer-events: auto !important;
}

/* Hide image remove (×) affordances inside a read-only panel */
.perm-readonly .pd-remove-cover,
.perm-readonly .pd-del-icon,
.perm-readonly .task-file-delete {
  display: none !important;
}

/* "View-only access" notice shown on locked panels */
.perm-readonly-note {
  display: flex;
  align-items: center;
  gap: 4px;
  background: #fff8e6;
  border: 1px solid #ffe2a6;
  color: #8a6d2f;
  border-radius: 8px;
  padding: 9px 14px;
  margin-bottom: 16px;
  font-size: 13px;
  font-weight: 500;
}

/* ── AirDatepicker: show today's date with a circular background ──────────────
   Applies to every date picker in the app. By default today is only a colour
   change, and on open it also gets the square focus/hover background — we clear
   that square and draw a circular tint behind today's number instead. Selected
   cells keep their own solid highlight. */
.air-datepicker-cell.-current-:not(.-selected-),
.air-datepicker-cell.-current-.-focus-:not(.-selected-) {
  background: transparent !important;
  color: #fff !important;
  font-weight: 600;
}

.air-datepicker-cell.-current-:not(.-selected-)::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 32px;
  height: 32px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--primaryColor);
  opacity: 1;
  z-index: -1;
}

/* When a date is already selected in the grid, don't also highlight today —
   only the selected date should show the circle. */
.air-datepicker-body--cells:has(.air-datepicker-cell.-selected-)
  .air-datepicker-cell.-current-:not(.-selected-) {
  color: var(--adp-color-current-date, var(--primaryColor)) !important;
  font-weight: normal;
}

.air-datepicker-body--cells:has(.air-datepicker-cell.-selected-)
  .air-datepicker-cell.-current-:not(.-selected-)::before {
  display: none;
}

/* Selected date — show as a circle (instead of the default square) */
.air-datepicker-cell.-selected-,
.air-datepicker-cell.-selected-.-current-,
.air-datepicker-cell.-selected-.-focus- {
  background: transparent !important;
  color: #fff !important;
  font-weight: 600;
}

.air-datepicker-cell.-selected-::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 32px;
  height: 32px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--adp-cell-background-color-selected, #4051a9);
  z-index: -1;
}

tr.clickable-row {
  cursor: pointer;
}

tr.clickable-row:hover td {
  background-color: var(--bs-table-hover-bg, rgba(0, 0, 0, 0.04));
}

tr.task-row td:first-child {
  cursor: pointer;
}

tr.task-row td:first-child .task-input,
tr.task-row td:first-child .task-drag-handle {
  cursor: auto;
}

/* ── Summernote editor overrides ────────────────────── */
/* Force light theme inside Summernote's modal dialogs (e.g. Insert Image).
   The app's dark mode sets color-scheme:dark on <html>, which causes the
   browser to natively render form controls dark. We must set color-scheme:light
   on the modal itself to restore normal light rendering. */
.note-modal-content {
  color-scheme: light;
  background: #fff !important;
  background-color: #fff !important;
  color: #212529 !important;
}

.note-modal-header {
  background-color: #f8f9fa !important;
  border-bottom: 1px solid #dee2e6 !important;
}

.note-modal-title,
.note-modal label {
  color: #212529 !important;
}

.note-modal .note-form-control,
.note-modal .note-input,
.note-modal input,
.note-modal select,
.note-modal textarea {
  color-scheme: light;
  background: #fff !important;
  background-color: #fff !important;
  color: #212529 !important;
  border: 1px solid #ced4da !important;
}

.note-modal-footer {
  background-color: #f8f9fa !important;
  border-top: 1px solid #dee2e6 !important;
}

.note-modal .close,
.note-modal .btn-close {
  color: #212529 !important;
  opacity: 0.6;
}

.note-modal .note-btn-primary {
  background-color: var(--primaryColor) !important;
  border-color: var(--primaryColor) !important;
  color: #fff !important;
}

.permissions-link {
  color: var(--primaryColor);
  cursor: pointer;
  text-decoration: underline;
}

/* ─────────────────────────────────────────────────────────────
   Global tooltip for truncated (…) text.
   Auto-attached by app.truncateTooltip in global.js to any element
   whose text is visually clipped with an ellipsis.
   ───────────────────────────────────────────────────────────── */
.app-ellipsis-tooltip {
  position: fixed;
  z-index: 20000;
  max-width: 320px;
  padding: 6px 10px;
  border-radius: 6px;
  background: #1f2937;
  color: #fff;
  font-size: 12px;
  line-height: 1.4;
  white-space: normal;
  word-break: break-word;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  pointer-events: none;
  opacity: 0;
  transform: translateY(2px);
  transition:
    opacity 0.12s ease,
    transform 0.12s ease;
}

.app-ellipsis-tooltip.show {
  opacity: 1;
  transform: translateY(0);
}

/* Any truncated element gets a subtle hint that more content exists */
.text-truncate {
  cursor: default;
}

/* Clickable table rows (e.g. /jobs) */
.cursor-pointer {
  cursor: pointer;
}

.table tbody tr.cursor-pointer:hover {
  background-color: rgba(0, 0, 0, 0.03);
}

/* ─────────────────────────────────────────────────────────────
   Skeleton loaders (app.showSkeleton) — shimmering placeholders
   shown in a panel/table while its data loads, so it never goes
   blank on tab switch.
   ───────────────────────────────────────────────────────────── */
.skeleton {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  background-color: #e9ecef;
  border-radius: 6px;
}

.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.65),
    transparent
  );
  animation: skeleton-shimmer 1.3s ease-in-out infinite;
}

@keyframes skeleton-shimmer {
  100% {
    transform: translateX(100%);
  }
}

.skeleton-text {
  height: 12px;
  margin: 7px 0;
}

.skeleton-thumb-sm {
  width: 72px;
  height: 64px;
  flex-shrink: 0;
  border-radius: 8px;
}

.skeleton-thumb {
  height: 150px;
  border-radius: 8px;
  margin-bottom: 10px;
}

.skeleton-card {
  border: 1px solid #eef0f3;
  border-radius: 10px;
  padding: 12px;
  height: 100%;
}

/* Horizontal card: thumbnail on the left, text lines on the right —
   mirrors the real property / recent-service cards. */
.skeleton-card-h {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.skeleton-card-body {
  flex: 1 1 auto;
  min-width: 0;
}

.skeleton-row td {
  padding: 14px 12px;
  vertical-align: middle;
}

@media (prefers-reduced-motion: reduce) {
  .skeleton::after {
    animation: none;
  }
}

/* ─────────────────────────────────────────────────────────────
   Responsive hardening — keep tables scrollable and form grids
   from overflowing the viewport on tablet / phone widths.
   app-wrapper has overflow-x:hidden, so any table that isn't in a
   scroll container gets clipped; .table-responsive scrolls instead.
   ───────────────────────────────────────────────────────────── */
.table-responsive {
  -webkit-overflow-scrolling: touch;
  width: 100%;
}

/* Safety net: a bare .table sitting directly inside a card scrolls
   on its own instead of being clipped/pushing the page wider. */
.product-card > .table,
.card > .card-body > .table,
.product-card > .table-responsive {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Long content inside cells (emails, addresses) should be allowed to
   shrink the layout rather than force horizontal page scroll. */
.product-card,
.card {
  min-width: 0;
}

@media (max-width: 991px) {
  /* Bootstrap rows inside cards must never spill past the card edge. */
  .product-card .row,
  .card .row {
    margin-left: 0;
    margin-right: 0;
  }

  /* Select2 / tagify / inputs stay within their column. */
  .form-control,
  .form-select,
  .select2-container,
  .tagify {
    max-width: 100%;
  }
  .select2-container {
    width: 100% !important;
  }
}

@media (max-width: 575.98px) {
  /* Header field row on create/edit job stacks cleanly on phones. */
  #createJobPage .time-combined {
    min-width: 0;
  }

  /* Action button groups wrap instead of overflowing. */
  .d-flex.justify-content-end {
    flex-wrap: wrap;
    gap: 8px;
  }
}

/* ─────────────────────────────────────────────────────────────
   Whole-app responsive hardening (v2) — neutralise the fixed
   inline widths and non-wrapping toolbars used across list /
   detail / modal screens so nothing overflows the viewport.
   CSS/markup only — no behavioural change.
   ───────────────────────────────────────────────────────────── */

/* Slide-in detail panels (offcanvas) carry fixed px / % widths
   (520/700/720/440px, 45%). Cap them to the viewport on every
   screen so they never run off-screen on tablets / phones. */
.offcanvas.offcanvas-end,
.offcanvas.offcanvas-start {
  max-width: 100vw;
}

@media (max-width: 767.98px) {
  .offcanvas.offcanvas-end,
  .offcanvas.offcanvas-start {
    width: 92vw !important;
  }
}

/* Crop / image-preview stages use fixed px canvases that overflow
   small screens — let them shrink and stay centred. */
#profile-photo-display,
#prop-photo-display,
.clon-html-replace [id$="photo-display"],
.prop-crop-body > div[style*="width"] {
  max-width: 100% !important;
}

@media (max-width: 991.98px) {
  /* Any inline-sized filter search box / select / date range field
     goes full-width so filter toolbars stack instead of overflow. */
  .form-icon[style*="width"],
  .form-icon.right[style*="width"] {
    width: 100% !important;
    max-width: 100% !important;
  }
  select.form-select[style*="width"],
  input.form-control[style*="width"] {
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Filter / header toolbars: allow their inner groups to wrap
     rather than force a horizontal scroll. */
  .app-wrapper .d-flex.justify-content-between {
    flex-wrap: wrap;
    gap: 10px;
  }
  .app-wrapper .d-flex.justify-content-between > .d-flex {
    flex-wrap: wrap;
  }
}

@media (max-width: 575.98px) {
  /* On phones a filter search box + its controls each take a full row. */
  .form-icon,
  .form-icon.right {
    width: 100% !important;
    min-width: 0 !important;
  }

  /* Modal / offcanvas bodies get a touch more breathing room removed. */
  .offcanvas-body {
    padding: 1rem;
  }

  /* Cards never force the page wider than the screen. */
  .card,
  .product-card {
    overflow-wrap: anywhere;
  }

  /* Nav pills (lead capture etc.) wrap instead of overflowing. */
  .nav-pills {
    flex-wrap: wrap;
    gap: 6px;
  }
}
.icon-btn2 {
  padding: 8px;
  font-size: 13px;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   Profile header — shared identity card at the top of the customer /
   employee detail screens. One grid so both screens line up identically no
   matter how many meta items a role happens to have.
   ========================================================================== */
.profile-head-card {
  border: 1px solid var(--pe-gray-200);
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(var(--pe-primary-rgb), 0.06);
  overflow: hidden;
}

.profile-head-card > .card-body {
  padding: 20px 22px;
}

.profile-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  column-gap: 22px;
  row-gap: 16px;
}

/* Avatar with a status ring */
.profile-avatar {
  position: relative;
  width: 92px;
  height: 92px;
  flex-shrink: 0;
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: var(--pe-gray-100);
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px var(--pe-gray-200);
}

.profile-avatar.is-active img {
  box-shadow: 0 0 0 2px rgba(var(--pe-success-rgb), 0.45);
}

.profile-avatar.is-inactive img {
  box-shadow: 0 0 0 2px rgba(var(--pe-danger-rgb), 0.35);
}

.profile-avatar::after {
  content: "";
  position: absolute;
  right: 5px;
  bottom: 5px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 2.5px solid #fff;
  background: var(--pe-gray-400);
  display: none;
}

.profile-avatar.is-active::after,
.profile-avatar.is-inactive::after {
  display: block;
}

.profile-avatar.is-active::after {
  background: var(--pe-success);
}

.profile-avatar.is-inactive::after {
  background: var(--pe-danger);
}

/* Identity column */
.profile-head-main {
  min-width: 0;
  padding-top: 2px;
}

.profile-head-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 2px;
}

.profile-head-title h4 {
  margin: 0;
  font-size: 21px;
  font-weight: 700;
  color: var(--pe-gray-900);
  letter-spacing: -0.2px;
  overflow-wrap: anywhere;
}

.profile-role-chip {
  display: inline-flex;
  align-items: center;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.2px;
  padding: 3px 11px;
  border-radius: 20px;
  color: var(--pe-primary);
  background: rgba(var(--pe-primary-rgb), 0.09);
  border: 1px solid rgba(var(--pe-primary-rgb), 0.22);
  white-space: nowrap;
}

.profile-head-email {
  display: block;
  font-size: 14.5px;
  color: var(--pe-gray-600);
  text-decoration: none;
  margin-bottom: 12px;
  overflow-wrap: anywhere;
}

a.profile-head-email:hover {
  color: var(--pe-primary);
  text-decoration: underline;
}

/* Meta strip — phone / role / joined / last login as even chips */
.profile-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.profile-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  line-height: 1.3;
  color: var(--pe-gray-800);
  background: var(--pe-gray-100);
  border: 1px solid var(--pe-gray-200);
  border-radius: 8px;
  padding: 6px 11px;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.profile-meta-item > i {
  font-size: 15px;
  line-height: 1;
  color: var(--pe-primary);
  flex-shrink: 0;
}

.profile-meta-item .profile-meta-label {
  color: var(--pe-gray-600);
}

.profile-meta-item a {
  color: inherit;
  text-decoration: none;
}

.profile-meta-item a:hover {
  color: var(--pe-primary);
}

/* Right-hand column: status, points, actions */
.profile-head-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  flex-shrink: 0;
}

.profile-status-badge {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3px;
  text-transform: capitalize;
  padding: 6px 16px;
  border-radius: 20px;
}

.profile-points-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--pe-primary);
  background: rgba(var(--pe-primary-rgb), 0.09);
  border-radius: 20px;
  padding: 6px 14px;
  white-space: nowrap;
}

.profile-points-pill i {
  font-size: 15px;
  line-height: 1;
}

.profile-points-pill:empty {
  display: none;
}

.profile-head-actions {
  display: flex;
  gap: 8px;
  margin-top: 2px;
}

.profile-head-actions .btn {
  border-radius: 8px;
  font-size: 13px;
  padding: 7px 14px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

@media (max-width: 991.98px) {
  .profile-head {
    grid-template-columns: auto minmax(0, 1fr);
  }

  /* Status / points / buttons drop under the identity block and read left. */
  .profile-head-side {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    padding-top: 4px;
    border-top: 1px solid var(--pe-gray-200);
  }

  .profile-head-actions {
    margin-top: 0;
    margin-left: auto;
  }
}

@media (max-width: 575.98px) {
  .profile-head-card > .card-body {
    padding: 18px 16px;
  }

  /* Single centred column. Children stay stretched (never max-content sized)
     so long emails and meta chips wrap instead of widening the card. */
  .profile-head {
    grid-template-columns: minmax(0, 1fr);
    text-align: center;
  }

  .profile-avatar {
    width: 78px;
    height: 78px;
    margin: 0 auto;
  }

  .profile-head-title,
  .profile-meta {
    justify-content: center;
  }

  .profile-head-side {
    justify-content: center;
  }

  .profile-head-actions {
    margin-left: 0;
    width: 100%;
    justify-content: center;
  }

  .profile-head-actions .btn {
    flex: 1 1 0;
    justify-content: center;
  }
}
