:root {
  --tk-navy: #0f172a;
  --tk-pri: #0d6efd;
  --tk-bg: #f4f6fb;
  --tk-b: #e5e9f2;
  --tk-photo: none;
  --tk-grad: linear-gradient(135deg, #2563eb, #06b6d4);
  --tk-pri: #00a86b;
  --tk-grad: linear-gradient(135deg, #00b774, #00995f);
}

body {
  font-family: Inter, system-ui, sans-serif;
  background: var(--tk-bg);
  color: #1e293b;
}

.turnkey-app {
  display: flex;
  min-height: 100vh;
}

.turnkey-side {
  width: 240px;
  background: var(--tk-navy);
  color: #cbd5e1;
  padding: 16px 10px;
  transition:
    width 0.25s,
    transform 0.25s;
  position: sticky;
  top: 0;
  height: 100vh;
  max-height: 100vh;
  flex-shrink: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.turnkey-brand {
  display: flex;
  background: white;
  border-radius: 6px;
  justify-content: center;
  padding: 5px;
  margin-bottom: 20px;
}

.turnkey-brand i {
  color: #38bdf8;
}

.turnkey-link {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 10px;
  color: #cbd5e1;
  text-decoration: none;
  margin-bottom: 2px;
  white-space: nowrap;
  transition: background 0.2s;
}

.turnkey-link:hover {
  background: #1e293b;
  color: #fff;
}

.turnkey-link.active {
  background: linear-gradient(90deg, #2563eb, #0ea5e9);
  color: #fff;
}

.turnkey-app.collapsed .turnkey-side {
  width: 68px;
}

.turnkey-app.collapsed .turnkey-side span {
  display: none;
}

.turnkey-main {
  flex: 1;
  min-width: 0;
}

/* Header */
.tk-header {
  width: 100%;
  min-height: 68px;
  padding: 10px 22px;
  background: #fff;
  border-bottom: 1px solid #e9edf2;
  position: sticky;
  top: 0;
  z-index: 99;
}

.tk-page-title {
  color: #263449;
  font-size: 19px;
  font-weight: 700;
}

.tk-menu-toggle {
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid #e5e9ef;
  color: #344054;
  font-size: 22px;
}

.tk-menu-toggle:hover,
.tk-icon-btn:hover,
.tk-profile-btn:hover {
  background: #f5f7fa;
}

/* Add Project */
.tk-add-btn {
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 500;
}

/* Notification Icon */
.tk-icon-btn {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  color: #475467;
  font-size: 19px;
}

.tk-notification-count {
  position: absolute;
  top: 0;
  right: 0;
  min-width: 16px;
  height: 16px;
  line-height: 16px;
  padding: 0 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
  border-radius: 50px;
  background: #e5484d;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

/* Notifications Dropdown */
/* .tk-notification-dropdown {
  width: 320px;
  max-width: calc(100vw - 20px);
  margin-top: 10px !important;
  border: 1px solid #e9edf2;
  border-radius: 10px;
  box-shadow: 0 8px 28px rgba(16, 24, 40, 0.12);
  overflow: hidden;
} */
.tk-notification-dropdown {
  width: 320px;
  max-width: calc(100vw - 20px);
  margin-top: 10px !important;
  border: 1px solid #e9edf2;
  border-radius: 10px;
  box-shadow: 0 8px 28px rgba(16, 24, 40, 0.12);
  max-height: min(400px, 70vh); /* new */
  overflow-x: hidden; /* changed */
  overflow-y: auto; /* new */
  overscroll-behavior: contain; /* new */
  scrollbar-width: thin; /* new */
  z-index: 100000; /* new: chat widget ke upar */
}
.tk-notification {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px 15px;
  white-space: normal;
  border-bottom: 1px solid #f1f3f6;
}

.tk-notification-dot {
  width: 8px;
  height: 8px;
  margin-top: 5px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #3478f6;
}

.tk-notification h6 {
  margin-bottom: 4px;
  color: #253449;
  font-size: 14px;
  font-weight: 600;
}

.tk-notification p {
  margin-bottom: 4px;
  color: #667085;
  font-size: 14px;
}

.tk-notification small {
  color: #98a2b3;
  font-size: 12px;
}

.tk-view-all {
  color: #2864d7;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}

/* Profile */
.tk-profile-btn {
  padding: 4px 5px;
  border: 0;
  border-radius: 8px;
}

.tk-profile-image {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid #e9edf2;
}

.tk-profile-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tk-profile-name {
  color: #253449;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.tk-profile-details small {
  color: #7a8698;
  font-size: 12px;
}

.tk-profile-arrow {
  margin-left: 6px;
  color: #667085;
  font-size: 12px;
}

/* Profile Dropdown */
.tk-profile-dropdown {
  min-width: 215px;
  margin-top: 10px !important;
  padding: 8px;
  border: 1px solid #e9edf2;
  border-radius: 10px;
  box-shadow: 0 8px 28px rgba(16, 24, 40, 0.12);
}

.tk-profile-dropdown-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
}

.tk-profile-dropdown-heading h6 {
  margin-bottom: 3px;
  color: #253449;
  font-size: 14px;
  font-weight: 600;
}

.tk-profile-dropdown-heading small {
  color: #7a8698;
  font-size: 12px;
}

.tk-profile-dropdown .dropdown-item {
  padding: 9px 10px;
  border-radius: 5px;
  color: #475467;
  font-size: 14px;
}

.tk-profile-dropdown .dropdown-item i {
  margin-right: 8px;
}

.tk-profile-dropdown .dropdown-item:hover {
  background: #f3f6fa;
}

.tk-profile-dropdown .tk-logout-link {
  color: #dc3545;
}

/* Tablet and Mobile */
@media (max-width: 767.98px) {
  .tk-header {
    min-height: 60px;
    padding: 9px 12px;
    gap: 9px;
  }

  .tk-page-title {
    font-size: 16px;
  }

  .tk-header > .ms-auto {
    gap: 5px !important;
  }

  .tk-profile-details {
    display: none;
  }

  .tk-profile-btn {
    gap: 4px !important;
  }

  .tk-profile-arrow {
    margin-left: 2px;
  }

  .tk-add-btn {
    padding: 7px 9px;
    font-size: 11px;
  }
}

@media (max-width: 420px) {
  .tk-header {
    padding: 8px;
    gap: 6px;
  }

  .tk-page-title {
    font-size: 14px;
  }

  .tk-menu-toggle,
  .tk-icon-btn {
    width: 32px;
    height: 34px;
  }

  .tk-notification-dropdown {
    position: fixed !important;
    top: 55px !important;
    right: 8px !important;
    left: auto !important;
    margin: 0 !important;
    transform: none !important;
  }
}

.turnkey-top {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border-bottom: 1px solid var(--tk-b);
  padding: 10px 20px;
  position: sticky;
  top: 0;
  z-index: 10;
}

.turnkey-top h1 {
  font-size: 1.15rem;
  margin: 0;
  font-weight: 600;
}

.turnkey-content {
  padding: 20px;
  animation: tkIn 0.3s;
}

@keyframes tkIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

.turnkey-card {
  background: #fff;
  border: 1px solid var(--tk-b);
  border-radius: 14px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}

.turnkey-stat {
  padding: 16px;
  display: flex;
  gap: 14px;
  align-items: center;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

.doc-preview-link {
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.doc-preview-link:hover {
  text-decoration: underline;
  color: var(--tk-pri, #00a65a);
}

.doc-preview-link:hover img {
  opacity: 0.92;
}

.turnkey-project-row {
  cursor: pointer;
}

.turnkey-project-row td {
  transition: background-color 0.15s ease;
}

.turnkey-project-row:hover td {
  background: #f8fafc;
}

.turnkey-detail-dl dt {
  font-weight: 500;
}

.doc-file-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  margin-bottom: 8px;
  background: #fff;
}

.doc-file-row:last-child {
  margin-bottom: 0;
}

.doc-preview-thumb {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  display: grid;
  place-items: center;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #64748b;
  text-decoration: none;
}

.doc-preview-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.doc-preview-thumb-file {
  font-size: 1.25rem;
}

.doc-slot-previous,
.doc-slot-current {
  display: flex;
  flex-direction: column;
}

.doc-preview-panel {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 10px;
  height: 100%;
}

.doc-preview-panel-previous {
  border-left: 4px solid #94a3b8;
  background: #f1f5f9;
}

.doc-preview-panel-previous .doc-preview-panel-label {
  color: #475569;
}

.doc-preview-panel-current {
  border-left: 4px solid var(--tk-pri, #00a65a);
  background: #f0fdf8;
}

.doc-preview-panel-current .doc-preview-panel-label {
  color: #047857;
}

.doc-preview-panel-hint {
  font-size: 0.75rem;
  line-height: 1.3;
  margin-top: -4px;
}

.doc-preview-columns {
  --bs-gutter-x: 1rem;
}

@media (min-width: 768px) {
  .doc-preview-columns .doc-previous-col {
    padding-right: 0.35rem;
  }

  .doc-preview-columns .doc-current-col {
    padding-left: 0.35rem;
  }
}

/* New Section  */
.energy-summary-section {
  font-family: inherit;
  width: 100%;
}

.energy-summary-card {
  border: 1px solid transparent;
  border-radius: 5px;
  min-width: 0;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.energy-summary-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(20, 35, 50, 0.07);
}

.energy-solar-card {
  background: #fffbef;
  border-color: #f4edda;
  --energy-color: #d99b13;
  --energy-icon-bg: #fff3ce;
  border-radius: 14px;
  box-shadow: 0 6px 24px rgba(30, 41, 90, 0.07);
}

.energy-hvac-card {
  background: #eef7ff;
  border-color: #dceaf5;
  --energy-color: #1765bb;
  --energy-icon-bg: #dceeff;
  border-radius: 14px;
  box-shadow: 0 6px 24px rgba(30, 41, 90, 0.07);
}

.energy-electrical-card {
  background: #f5efff;
  border-color: #e8ddf7;
  --energy-color: #7938b5;
  --energy-icon-bg: #eadcff;
  border-radius: 14px;
  box-shadow: 0 6px 24px rgba(30, 41, 90, 0.07);
}

.energy-roof-card {
  background: #effbf3;
  border-color: #dcefe2;
  --energy-color: #24844a;
  --energy-icon-bg: #dcf5e4;
  border-radius: 14px;
  box-shadow: 0 6px 24px rgba(30, 41, 90, 0.07);
}

.energy-summary-icon {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  background: var(--energy-icon-bg);
  color: var(--energy-color);
  font-size: 19px;
}

.energy-summary-card h6 {
  font-size: 20px;
}

.energy-summary-stats small {
  color: #7c8795;
  font-size: 14px;
  margin-bottom: 2px;
}

.energy-summary-stats h5 {
  color: #17263a;
  font-size: 17px;
  line-height: 1.2;
}

.energy-new-stat {
  border-left: 1px solid rgba(80, 95, 115, 0.15);
  padding-left: 20px;
}

.energy-new-stat h5 {
  color: var(--energy-color);
}

.energy-summary-link {
  text-decoration: none;
  color: var(--energy-color);
  font-size: 14px;
  font-weight: 500;
  transition: gap 0.2s ease;
}

.energy-summary-link:hover {
  color: var(--energy-color);
  gap: 10px !important;
}

.energy-summary-link i {
  font-size: 12px;
}

/* Tablet */
@media (min-width: 576px) and (max-width: 1199.98px) {
  .energy-summary-card {
    padding: 14px !important;
  }
}

/* Mobile */
@media (max-width: 575.98px) {
  .energy-summary-section {
    padding-top: 8px !important;
  }

  .energy-summary-card {
    padding: 14px !important;
  }

  .energy-summary-card h6 {
    font-size: 18px;
  }

  .energy-summary-stats small {
    font-size: 14px;
  }

  .energy-summary-stats h5 {
    font-size: 18px;
  }
}

/* New section End */
.turnkey-stat-link .turnkey-stat {
  cursor: pointer;
}

.turnkey-stat-link:focus-visible .turnkey-stat {
  outline: 2px solid var(--tk-pri);
  outline-offset: 2px;
}

.turnkey-stat:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.1);
}

.turnkey-stat .ic {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #e8f0ff;
  color: var(--tk-pri);
  font-size: 1.3rem;
}

.turnkey-stat b {
  font-size: 1.5rem;
  display: block;
  line-height: 1.1;
}

.turnkey-badge {
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
}

.turnkey-drop {
  display: block;
  border: 2px dashed #b6c4de;
  border-radius: 14px;
  padding: 24px;
  text-align: center;
  cursor: pointer;
  color: #64748b;
}

.turnkey-drop.over {
  background: #eef4ff;
  border-color: var(--tk-pri);
}

.doc-upload-thumb {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #f8fafc;
  border-radius: 8px;
}

.doc-upload-thumb img {
  max-height: 72px;
  max-width: 100%;
  object-fit: contain;
}

.doc-upload-thumb-pdf {
  font-size: 1.75rem;
}

.doc-modal-media {
  background: #f8fafc;
  border-radius: 10px;
  overflow: hidden;
}

.doc-modal-pdf iframe {
  display: block;
  width: 100%;
  height: min(240px, 42vh);
  background: #fff;
}

.doc-gallery-modal {
  max-width: min(520px, calc(100vw - 2rem));
  margin-left: auto;
  margin-right: auto;
}

#galleryModal .modal-content {
  overflow: hidden;
}

.doc-gallery-slider {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.doc-gallery-stage {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.doc-gallery-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  line-height: 0;
}

.doc-gallery-img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: min(280px, 48vh);
  height: auto;
  object-fit: contain;
  vertical-align: middle;
}

.doc-gallery-nav {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--tk-b);
  border-radius: 50%;
  background: #fff;
  font-size: 1.5rem;
  line-height: 1;
  padding: 0;
  cursor: pointer;
  color: #334155;
  transition:
    background 0.15s,
    border-color 0.15s;
}

.doc-gallery-nav:hover:not(:disabled) {
  background: #f8fafc;
  border-color: #94a3b8;
}

.doc-gallery-nav:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.doc-gallery-nav.invisible {
  visibility: hidden;
  pointer-events: none;
}

#galleryModal .doc-modal-pdf iframe {
  height: min(240px, 42vh);
}

.turnkey-doc {
  padding: 16px;
  height: 100%;
}

.turnkey-doc i.big {
  font-size: 2.4rem;
}

.turnkey-toasts {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 2000;
}

.turnkey-main {
  position: relative;
}

.turnkey-toasts-top {
  position: absolute;
  top: 62px;
  right: 20px;
  z-index: 1050;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  width: auto;
  max-width: min(420px, calc(100% - 40px));
  pointer-events: none;
}

body.modal-open .turnkey-toasts-top {
  z-index: 1065;
}

#projectDocumentsModal .modal-content {
  overflow: visible;
}

#projectDocumentsModal .modal-body {
  padding: 1rem 1.125rem 1.25rem;
  overflow-x: hidden;
}

#projectDocumentsModal .modal-dialog-scrollable .modal-body {
  max-height: min(70vh, calc(100vh - 10rem));
  scroll-padding-top: 12px;
  scroll-padding-bottom: 12px;
}

#projectDocumentsModal .turnkey-card[data-slot-key] {
  padding: 1rem !important;
  margin-bottom: 1rem !important;
}

#projectDocumentsModal .turnkey-card[data-slot-key]:last-child {
  margin-bottom: 0 !important;
}

#projectDocumentsModal .doc-replace-form {
  padding-top: 0.75rem !important;
  margin-top: 0.75rem !important;
}

#projectDocumentsModal .doc-replace-feedback {
  display: block;
  margin-top: 0.65rem;
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  font-size: 0.8125rem;
  line-height: 1.5;
  word-break: break-word;
  overflow-wrap: anywhere;
}

#projectDocumentsModal .doc-replace-feedback.is-selected {
  color: #055160;
  background: #cff4fc;
  border: 1px solid #9eeaf9;
}

#projectDocumentsModal .doc-replace-feedback.is-selected .doc-replace-filename {
  font-weight: 600;
  color: #032830;
}

#projectDocumentsModal .doc-replace-feedback.is-error {
  color: #842029;
  background: #f8d7da;
  border: 1px solid #f1aeb5;
}

#projectDocumentsModal .doc-replace-form .form-control[type="file"] {
  margin-bottom: 0;
}

#projectDocumentsModal .doc-simple-files,
#projectDocumentsModal .doc-slot-previous,
#projectDocumentsModal .doc-slot-current {
  max-width: 100%;
  overflow: hidden;
}

#projectDocumentsModal .doc-preview-thumb {
  width: 48px;
  height: 48px;
  max-width: 48px;
  max-height: 48px;
  flex-shrink: 0;
}

#projectDocumentsModal .doc-preview-thumb img {
  width: 100%;
  height: 100%;
  max-width: 48px;
  max-height: 48px;
  object-fit: cover;
  display: block;
}

#projectDocumentsModal .doc-file-row {
  max-width: 100%;
  overflow: hidden;
}

.turnkey-flash-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-width: 280px;
  padding: 11px 14px 11px 16px;
  border-radius: 6px;
  color: #fff;
  font-weight: 400;
  font-size: 0.9375rem;
  line-height: 1.45;
  pointer-events: auto;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  animation: tkFlashIn 0.3s ease-out;
}

.turnkey-flash-success {
  background: #28a745;
}

.turnkey-flash-delete {
  background: #dc3545;
}

.turnkey-flash-msg {
  flex: 1;
  padding-right: 4px;
}

.turnkey-flash-bar .btn-close {
  opacity: 1;
  padding: 0.65rem;
  margin: -0.35rem -0.35rem -0.35rem 0;
}

.turnkey-flash-out {
  animation: tkFlashOut 0.22s ease-in forwards;
}

@keyframes tkFlashIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes tkFlashOut {
  to {
    opacity: 0;
    transform: translateY(-6px);
  }
}

@media (max-width: 991px) {
  .turnkey-toasts-top {
    top: 58px;
    right: 12px;
    left: 12px;
    max-width: none;
    align-items: stretch;
  }
}

.turnkey-login .turnkey-split {
  display: flex;
  min-height: 100vh;
}

.turnkey-hero {
  flex: 1;
  background: radial-gradient(circle at 30% 20%, #2563eb, #0f172a 70%);
  color: #fff;
  align-items: center;
  padding: 60px;
}

.turnkey-hero h2 {
  font-size: 2.4rem;
  font-weight: 700;
}

.turnkey-formside {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 24px;
  background: #fff;
}

.turnkey-loginbox {
  width: 100%;
  max-width: 380px;
}

@media (max-width: 991px) {
  .turnkey-side {
    position: fixed;
    z-index: 30;
    transform: translateX(-100%);
    width: 240px !important;
  }

  .turnkey-app.open .turnkey-side {
    transform: none;
  }

  .turnkey-app.collapsed .turnkey-side span {
    display: inline;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

/* ===== Premium theme ===== */

body {
  background:
    radial-gradient(circle at 0 0, #dbe8ff, transparent 40%),
    radial-gradient(circle at 100% 0, #ece4ff, transparent 38%), #f5f7fc;
  background-attachment: fixed;
}

.turnkey-side {
  background: linear-gradient(180deg, #0a1024, #14214a);
  box-shadow: 4px 0 24px rgba(10, 16, 36, 0.25);
}

.turnkey-link.active {
  background: var(--tk-grad);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.45);
}

.turnkey-link:hover {
  transform: translateX(3px);
}

.turnkey-top {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(14px);
}

.turnkey-card {
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 6px 24px rgba(30, 41, 90, 0.07);
  transition:
    transform 0.25s,
    box-shadow 0.25s;
}

.turnkey-card:hover {
  box-shadow: 0 14px 36px rgba(30, 41, 90, 0.12);
}

.turnkey-card .form-control,
.turnkey-card .form-select {
  padding: 7px 12px;
  font-size: 16px;
}

/* Project Table Container */
.turnkey-card.project-table {
  width: 100%;
  background: #fff;
  border: 1px solid #e8edf3;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(24, 39, 75, 0.035);
}

.table-responsive {
  scrollbar-width: thin !important;
  scrollbar-color: #adb5bd transparent;
}

/* Responsive Table */
.project-table .table-responsive {
  width: 100%;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: #d5dce5 #f8fafc;
}

.project-table .table {
  width: 100%;
  min-width: 950px;
  margin-bottom: 0;
  border-collapse: separate;
  border-spacing: 0;
  color: #344054;
  font-size: 11px;
  vertical-align: middle;
}

/* Table Header */
.project-table .table thead th {
  padding: 12px 10px;
  background: #f8fafc;
  color: #475467;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  border-bottom: 1px solid #e8edf3;
  border-top: 0;
}

/* Table Body */
.project-table .table tbody td {
  padding: 10px;
  color: #475467;
  font-size: 14px;
  font-weight: 400;
  white-space: nowrap;
  border-bottom: 1px solid #f0f2f5;
  background: #fff;
}

.project-table .table tbody tr:last-child td {
  border-bottom: 0;
}

/* Row Hover */
.project-table .table tbody tr {
  transition: background-color 0.2s ease;
}

.project-table .table tbody tr:hover td {
  background: #f8fbff;
}

/* Project ID */
.project-table .table tbody td:first-child {
  color: #344054;
  font-weight: 600;
}

/* Type Badge */
.project-table .table tbody td:nth-child(4) {
  font-weight: 500;
}

/* Status Badge */
.project-table .turnkey-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 8px;
  border: 0;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}

/* Document Button */
.project-table .table .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 5px 8px;
  border: 1px solid #e5eaf0;
  border-radius: 5px;
  background: #fff;
  color: #475467;
  font-size: 14px;
  line-height: 1.3;
  box-shadow: none;
  transition: all 0.2s ease;
}

.project-table .table .btn:hover {
  border-color: #cbd8eb;
  background: #f1f6ff;
  color: #175cd3;
}

.project-table .table .btn.text-danger:hover {
  border-color: #fecaca;
  background: #fff1f2;
  color: #dc2626 !important;
}

/* Created By / Updated By */
.project-table .table td.text-muted {
  color: #667085 !important;
  font-size: 14px !important;
  line-height: 1.7;
}

.project-table .table td.text-muted div {
  color: #98a2b3;
  font-size: 12px;
}

/* Action Buttons — sticky so Edit/Delete stay visible when table scrolls horizontally */
.project-table .table thead th:last-child,
.project-table .table tbody td:last-child {
  position: sticky;
  right: 0;
  z-index: 2;
  background: #fff;
}

.project-table .table thead th:last-child {
  z-index: 3;
  background: #f8fafc;
}

.project-table .table tbody tr:hover td:last-child {
  background: #f8fbff;
}

.project-table .table td:last-child {
  text-align: center;
  white-space: nowrap;
}

.project-table .table td:last-child .btn {
  width: 32px;
  height: 31px;
  padding: 4px;
  margin: 0 1px;
  font-size: 14px;
}

.project-type-cell {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.15rem 0.35rem;
  max-width: 100%;
}

.project-type-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
}

.project-type-item i {
  font-size: 1.05rem;
}

.project-type-sep {
  color: #94a3b8;
}

/* Table Footer */
.project-table > .p-3 {
  padding: 12px 15px !important;
  background: #fff;
  border-top: 1px solid #edf0f4;
  color: #7b8797 !important;
  font-size: 14px !important;
}

/* Tablet */
@media (max-width: 991.98px) {
  .project-table .table {
    min-width: 950px;
  }

  .project-table .table thead th,
  .project-table .table tbody td {
    padding: 9px 8px;
  }
}

/* Mobile */
@media (max-width: 575.98px) {
  .turnkey-card.project-table {
    border-radius: 7px;
  }

  .project-table .table thead th {
    padding: 10px 8px;
    font-size: 12px;
  }

  .project-table .table tbody td {
    padding: 9px 8px;
    font-size: 12px;
  }

  .project-table .turnkey-badge {
    padding: 4px 6px;
    font-size: 12px;
  }

  .project-table .table {
    display: block;
    width: 100%;
    min-width: 100%;
    overflow-x: auto !important;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: thin !important;
    scrollbar-color: #cbd5e1 #f1f5f9;
  }
}

.btn-primary {
  background: var(--tk-grad);
  border: 0;
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.3);
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.4);
}

.form-control,
.form-select {
  border-radius: 10px;
  border-color: #dbe3f0;
  padding: 0.6rem 0.8rem;
}

.form-control:focus,
.form-select:focus {
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
  border-color: #2563eb;
}

.table thead th {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
  background: #f8faff;
  border: 0;
}

.table tbody tr {
  transition: background 0.15s;
}

.table tbody tr:hover {
  background: #f3f7ff;
}

/* login */
body.turnkey-login {
  background:
    linear-gradient(135deg, rgba(2, 36, 26, 0.9), rgba(0, 150, 95, 0.72)),
    var(--tk-photo),
    url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 700' preserveAspectRatio='xMidYMax slice'><g fill='white'><rect x='40' y='420' width='90' height='280' opacity='.08'/><rect x='150' y='330' width='70' height='370' opacity='.12'/><rect x='240' y='460' width='110' height='240' opacity='.07'/><rect x='370' y='260' width='80' height='440' opacity='.14'/><rect x='470' y='380' width='120' height='320' opacity='.09'/><rect x='610' y='300' width='70' height='400' opacity='.12'/><rect x='700' y='440' width='100' height='260' opacity='.07'/><rect x='820' y='240' width='90' height='460' opacity='.15'/><rect x='930' y='370' width='80' height='330' opacity='.1'/><rect x='1030' y='450' width='120' height='250' opacity='.07'/></g><g fill='none' stroke='white' stroke-opacity='.06'><path d='M0 100H1200M0 200H1200M0 300H1200M300 0V700M600 0V700M900 0V700'/></g></svg>")
      center bottom/cover no-repeat,
    #0a1024;
  overflow: hidden;
}

.turnkey-login::before,
.turnkey-login::after {
  content: "";
  position: fixed;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.45;
  animation: tkFloat 9s ease-in-out infinite alternate;
  pointer-events: none;
}

.turnkey-login::before {
  background: #00d68f;
  top: -120px;
  left: -80px;
}

.turnkey-login::after {
  background: #0f9e8a;
  bottom: -140px;
  right: -80px;
  animation-delay: -4s;
}

@keyframes tkFloat {
  to {
    transform: translate(60px, 40px) scale(1.15);
  }
}

.turnkey-login .turnkey-split {
  position: relative;
  z-index: 1;
}

.turnkey-hero {
  background: none;
  flex-direction: column;
  justify-content: center;
}

.turnkey-hero h2 {
  font-size: 3rem;
  line-height: 1.15;
  background: linear-gradient(90deg, #fff, #b9ffe3);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.turnkey-chip {
  display: inline-block;
  margin: 6px 8px 0 0;
  padding: 6px 14px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  font-size: 0.85rem;
}

.turnkey-formside {
  background: none;
}

.turnkey-loginbox {
  background: rgba(255, 255, 255, 0.96);
  padding: 40px 34px;
  border-radius: 24px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
  animation: tkIn 0.7s;
}

/* dashboard */
.turnkey-banner {
  background: var(--tk-grad);
  color: #fff;
  border-radius: 20px;
  padding: 26px 28px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 14px 34px rgba(37, 99, 235, 0.35);
}

.turnkey-banner::after {
  content: "";
  position: absolute;
  right: -60px;
  top: -80px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
}

.turnkey-banner h3 {
  font-weight: 700;
  margin: 0;
}

.turnkey-kpi {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  padding: 10px 18px;
  backdrop-filter: blur(6px);
  position: relative;
  z-index: 1;
}

.turnkey-kpi b {
  font-size: 1.5rem;
  display: block;
}

.turnkey-stat {
  animation: tkPop 0.55s both;
  border-radius: 18px;
}

@keyframes tkPop {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.95);
  }
}

.turnkey-stat .ic {
  color: #fff;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
  width: 48px;
  height: 48px;
}

.turnkey-stat:hover {
  transform: translateY(-6px);
}

.turnkey-av {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 600;
  background: var(--tk-grad);
}

.turnkey-chart {
  height: 290px;
}

a {
  color: #00995f;
}

.turnkey-side {
  background: #0a9f6e;
  color: #fff;
  box-shadow: 4px 0 24px rgba(0, 120, 80, 0.1);
}

.turnkey-brand,
.turnkey-brand i {
  color: #fff;
}

.turnkey-brand-logo {
  max-width: 100px !important;
}

.turnkey-app.collapsed .turnkey-brand-logo {
  width: 100% !important;
}

.turnkey-link {
  color: #fff;
}

.turnkey-link:hover {
  background: #e8f8f1;
  color: #007a4d;
}

.turnkey-link.active {
  background: #ffffff;
  color: #009f89;
  box-shadow: 0 6px 16px rgba(0, 168, 107, 0.3);
}

.turnkey-top {
  background: linear-gradient(90deg, #00b774, #009a62);
  color: #fff;
  border: 0;
}

.turnkey-top h1 {
  color: #fff;
}

.turnkey-top .btn-light {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  border: 0;
}

.turnkey-top .btn-primary {
  background: #fff;
  color: #00995f;
  box-shadow: none;
}

.btn-primary {
  box-shadow: 0 6px 16px rgba(0, 168, 107, 0.3);
}

.btn-primary:hover {
  box-shadow: 0 10px 24px rgba(0, 168, 107, 0.4);
}

.btn-outline-primary {
  color: #00995f;
  border-color: #00a86b;
}

.btn-outline-primary:hover {
  background: #00a86b;
  border-color: #00a86b;
}

.text-primary {
  color: #00a86b !important;
}

.form-control:focus,
.form-select:focus {
  box-shadow: 0 0 0 4px rgba(0, 168, 107, 0.15);
  border-color: #00a86b;
}

.form-check-input:checked {
  background-color: #00a86b;
  border-color: #00a86b;
}

.table thead th {
  background: #f1faf6;
}

.table tbody tr:hover {
  background: #eefaf4;
}

.nav-tabs .nav-link.active {
  color: #00995f;
  border-bottom-color: #00a86b;
}

.nav-tabs .nav-link {
  color: #64748b;
}

.turnkey-stat .ic,
.turnkey-av {
  box-shadow: 0 8px 18px rgba(0, 120, 80, 0.2);
}

.turnkey-banner {
  box-shadow: 0 14px 34px rgba(0, 153, 95, 0.35);
}

.turnkey-drop.over {
  background: #e8f8f1;
  border-color: #00a86b;
}

.pf-section {
  background: #fff;
  border: 1px solid #f1faf6;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 1.25rem;
}

.pf-section-head {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.9rem 1.25rem;
  background: #f1faf6;
  border-bottom: 1px solid #f1faf6;
}

.pf-section-head .pf-ico {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: #fff;
  color: #009a62;
  display: grid;
  place-items: center;
  border: 1px solid #dbe6fb;
}

.pf-section-head h6 {
  margin: 0;
  font-weight: 700;
}

.pf-section-head small {
  display: block;
  color: #64748b;
  font-weight: 400;
}

.pf-body {
  padding: 1.25rem;
}

.pf-body .row > [class*="col-"] {
  min-width: 0;
}

.pf-body .input-group {
  min-width: 0;
}

.pf-body .input-group .form-control {
  min-width: 0;
}

.pf-body .input-group > .type-select {
  flex: 1 1 auto;
  width: 1%;
  min-width: 0;
  position: relative;
}

.pf-body .type-select .type-select-native {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
}

.pf-body .type-select .type-select-btn {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  background-color: #fff;
  width: 100%;
  min-height: calc(1.5em + 0.75rem + 2px);
}

.pf-body .type-select .type-select-btn i.bi-chevron-down {
  margin-left: auto;
  color: #94a3b8;
  font-size: 0.85rem;
}

.pf-body .type-select-menu {
  position: fixed;
  z-index: 2000;
  margin: 0;
  padding: 0.35rem;
  list-style: none;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 0.6rem;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.15);
  max-height: 280px;
  overflow-y: auto;
}

.pf-body .type-select-menu[hidden] {
  display: none;
}

.pf-body .type-select-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.7rem;
  border-radius: 0.45rem;
  cursor: pointer;
  font-size: 0.9rem;
}

.pf-body .type-select-item i.type-select-check {
  font-size: 0.95rem;
  width: 1.1rem;
  color: #0d9488;
  flex-shrink: 0;
}

.pf-body .type-select-item i.type-select-check.invisible {
  visibility: hidden;
}

.pf-body .type-select-item i:not(.type-select-check) {
  font-size: 1.1rem;
  width: 1.25rem;
  text-align: center;
  flex-shrink: 0;
}

.pf-body .type-select-item:hover,
.pf-body .type-select-item.active {
  background: #f1f5f9;
}

.pf-body .form-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #334155;
  margin-bottom: 0.35rem;
}

.pf-body .input-group-text {
  background: #fff;
  color: #94a3b8;
  border-right: 0;
}

.pf-body .input-group .form-control,
.pf-body .input-group .form-select {
  border-left: 0;
}

.pf-body .input-group:focus-within .input-group-text,
.pf-body .input-group:focus-within .form-control,
.pf-body .input-group:focus-within .form-select {
  border-color: #f1faf6;
}

.pf-body textarea.form-control {
  border-left: 1px solid #dee2e6;
}

/* Documents layout */
.doc-layout {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 1rem;
}

.doc-types {
  border: 1px solid #f1faf6;
  border-radius: 12px;
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  align-self: start;
}

.doc-type-tab {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  border: 0;
  background: transparent;
  border-radius: 9px;
  padding: 0.65rem 0.4rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: #334155;
  text-align: left;
  width: 100%;
}

.doc-type-tab:hover {
  background: #f4f7fc;
}

.doc-type-tab.active {
  background: #e8f0ff;
  color: #1d4ed8;
  font-weight: 600;
}

.doc-type-tab i {
  font-size: 1.05rem;
}

.doc-panel {
  border: 1px solid #fde9bd;
  background: #fffaf0;
  border-radius: 12px;
  padding: 1rem;
}

.doc-panel-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.doc-info {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: #e8f1ff;
  border: 1px solid #cfe0ff;
  color: #1e3a8a;
  border-radius: 10px;
  padding: 0.65rem 0.9rem;
  font-size: 0.84rem;
  margin-bottom: 1rem;
}

.doc-info i {
  color: #009a62;
}

.project-doc-field {
  padding: 0.15rem 0;
}

.doc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.35rem 0;
}

.doc-row-label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: #1e293b;
  min-width: 0;
}

.doc-row-label i {
  color: #64748b;
}

.doc-upload {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex: 0 0 250px;
  max-width: 100%;
  border: 1.5px dashed #c5d0e0;
  border-radius: 9px;
  background: #fff;
  color: #64748b;
  font-size: 0.8rem;
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  margin: 0;
  transition:
    border-color 0.15s,
    background 0.15s;
}

.doc-upload:hover {
  border-color: #009a62;
  background: #f5f9ff;
  color: #009a62;
}

.doc-upload:focus-within {
  outline: 2px solid #f1faf6;
  outline-offset: 2px;
}

.doc-upload.has-files {
  border-style: solid;
  border-color: #f1faf6;
  background: #eff6ff;
  color: #1d4ed8;
  font-weight: 600;
}

.doc-file-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

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

  .doc-types {
    flex-direction: row;
    overflow-x: auto;
  }

  .doc-type-tab {
    white-space: nowrap;
    width: auto;
  }

  .doc-row {
    flex-direction: column;
    align-items: stretch;
    gap: 0.4rem;
  }

  .doc-upload {
    flex-basis: auto;
  }
}

.pd-card {
  background: #fff;
  border: 1px solid #e6ebf2;
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.pd-head h4 {
  font-weight: 700;
  letter-spacing: -0.01em;
}

.pd-page .pd-hero .pd-head {
  flex: 1 1 0;
  min-width: 0;
  max-width: 100%;
}

.pd-page .pd-hero .pd-head > .d-flex:first-child {
  min-width: 0;
  max-width: 100%;
}

.pd-page .pd-head-chips {
  min-width: 0;
  max-width: 100%;
}

.pd-page .pd-chip {
  max-width: 100%;
  min-width: 0;
}

.pd-page .pd-chip-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.pd-page .pd-chip-address {
  flex: 1 1 auto;
  max-width: min(100%, 36rem);
}

.pd-page .pd-pill-types {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.15rem 0.35rem;
  max-width: min(100%, 36rem);
  min-width: 0;
  vertical-align: middle;
}

.pd-page .pd-pill-type-item {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: #334155;
  font-weight: 500;
  white-space: nowrap;
}

.pd-page .pd-pill-type-item i {
  font-size: 0.95rem;
}

.pd-page .pd-pill-type-sep {
  color: #64748b;
  margin-right: 0.1rem;
}

.pd-page .pd-type-tile-multi {
  width: 62px;
  height: 62px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  place-items: center;
  gap: 0;
  padding: 0.3rem;
  font-size: 1rem;
}

.pd-page .pd-type-tile-multi i {
  font-size: 0.95rem;
  line-height: 1;
}

.pd-page .pd-type-tile-multi:not(:has(i:nth-child(3))) {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-content: center;
  gap: 0.15rem;
}

.pd-tabs {
  border-bottom: 1px solid #e6ebf2;
  gap: 0.25rem;
}

.pd-tabs .nav-link {
  border: 0;
  border-bottom: 2px solid transparent;
  color: #64748b;
  font-weight: 500;
  padding: 0.6rem 1rem;
  border-radius: 0;
}

.pd-tabs .nav-link:hover {
  color: #0f172a;
}

.pd-tabs .nav-link.active {
  color: #009a62;
  border-color: #009a62;
  background: transparent;
}

.pd-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 600;
  font-size: 0.8rem;
  color: #fff;
  flex-shrink: 0;
}

.pd-note {
  display: flex;
  gap: 0.75rem;
  padding: 0.85rem 0;
  border-bottom: 1px dashed #e6ebf2;
}

.pd-note:last-child {
  border-bottom: 0;
}

.pd-cat {
  border: 1px solid #e6ebf2;
  border-radius: 12px;
  background: #f8fafc;
  margin-bottom: 0.6rem;
}

.pd-cat .table-responsive {
  border-radius: 0 0 12px 12px;
}

.pd-cat .dropdown-menu {
  z-index: 1080;
  min-width: 12rem;
  box-shadow: 0 10px 30px rgba(16, 24, 40, 0.15);
  border-radius: 10px;
}

.pd-cat-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.8rem 1rem;
  cursor: pointer;
  user-select: none;
}

.pd-cat-head:hover {
  background: #f1f5f9;
}

.pd-cat-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: #f1faf6;
  color: #009a62;
  display: grid;
  place-items: center;
}

.pd-count {
  font-size: 0.75rem;
  color: #94a3b8;
}

.pd-chev {
  transition: transform 0.2s;
  color: #94a3b8;
}

.pd-cat-head[aria-expanded="true"] .pd-chev {
  transform: rotate(180deg);
}

.pd-table {
  background: #fff;
  margin: 0;
}

.pd-table th {
  font-size: 0.72rem;
  font-weight: 600;
  color: #64748b;
  border-bottom: 1px solid #e6ebf2;
  white-space: nowrap;
}

.pd-table td {
  font-size: 0.82rem;
  vertical-align: middle;
}

.pd-file {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #009a62;
  text-decoration: none;
  font-weight: 500;
  background: none;
  border: 0;
  padding: 0;
  text-align: left;
}

.pd-file:hover {
  text-decoration: underline;
}

.pd-pdf {
  background: #ef4444;
  color: #fff;
  font-size: 0.55rem;
  font-weight: 700;
  border-radius: 4px;
  padding: 0.2rem 0.3rem;
}

.pd-img {
  background: #10b981;
}

.pd-pill {
  font-size: 0.7rem;
  font-weight: 600;
  border-radius: 999px;
  padding: 0.2rem 0.65rem;
  white-space: nowrap;
}

.pd-pill.orig {
  background: #f1faf6;
  color: #009a62;
}

.pd-pill.co {
  background: #fde7f3;
  color: #db2777;
}

.btn-co {
  border: 1px solid #dbe3ef;
  background: #fff;
  color: #334155;
  font-size: 0.78rem;
  font-weight: 500;
  border-radius: 8px;
  padding: 0.3rem 0.75rem;
}

.btn-co:hover {
  background: #eff6ff;
  border-color: #bfd5ff;
  color: #009a62;
}

.co-col {
  border: 1px solid #e6ebf2;
  border-radius: 14px;
  overflow: hidden;
  height: 100%;
}

.co-col.orig .co-top {
  background: #eff6ff;
}

.co-col.new .co-top {
  background: #ecfdf5;
}

.co-top {
  padding: 0.9rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
}

.co-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 1rem;
  border-top: 1px solid #eef2f7;
  font-size: 0.82rem;
}

.co-note {
  padding: 0.7rem 1rem;
  font-size: 0.78rem;
  border-top: 1px solid #eef2f7;
}

.co-col.orig .co-note {
  background: #eff6ff;
  color: #009a62;
}

.co-col.new .co-note {
  background: #ecfdf5;
  color: #059669;
}

.pd-preview {
  width: 100%;
  height: 70vh;
  border: 0;
  border-radius: 10px;
  background: #f1f5f9;
}

.pd-meta dt {
  font-weight: 500;
  color: #64748b;
}

.pd-meta .pd-meta-datetime {
  white-space: nowrap;
}

@media (max-width: 768px) {
  .pd-hide-sm {
    display: none;
  }
}

/* PDF Preview in Project Details Modal */
.pd-preview {
  display: block;
  width: 100%;
  height: 70vh;
  min-height: 450px;
  border: 1px solid #e5e9f2;
  border-radius: 10px;
  background: #f8fafc;
}

.doc-modal-pdf {
  width: 100%;
  min-width: 0;
  overflow: hidden;
  border-radius: 10px;
  background: #f8fafc;
}

.doc-modal-pdf iframe {
  display: block;
  width: 100%;
  height: 70vh;
  min-height: 450px;
  border: 0;
  background: #fff;
}

#projectDocumentsModal .pd-preview,
#projectDocumentsModal .doc-modal-pdf iframe {
  max-width: 100%;
}

#previewModal .modal-body {
  padding: 0.75rem 1rem 1rem;
}

#previewModal .doc-modal-pdf iframe,
#previewModal .pd-preview {
  height: 70vh;
  min-height: 450px;
}

@media (max-width: 768px) {
  .pd-preview,
  .doc-modal-pdf iframe {
    height: 60vh;
    min-height: 350px;
  }
  #previewModal .modal-header {
        flex-wrap: wrap;
        gap: 10px;
  }
}

/* ───── Type filter custom dropdown ───── */
.type-select {
  position: relative;
}

.type-select .type-select-native {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
}

.type-select .type-select-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  background-color: #fff;
  width: 100%;
}

.type-select .type-select-btn i {
  font-size: 1rem;
}

.type-select-menu {
  position: fixed;
  /* rendered on <body>, so no parent can clip it */
  z-index: 2000;
  margin: 0;
  padding: 0.35rem;
  list-style: none;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 0.6rem;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.15);
  max-height: 280px;
  overflow-y: auto;
}

.type-select-menu[hidden] {
  display: none;
}

.type-select-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.7rem;
  border-radius: 0.45rem;
  cursor: pointer;
  font-size: 0.9rem;
}

.type-select-item i {
  font-size: 1.1rem;
  width: 1.25rem;
  text-align: center;
}

.type-select-item:hover,
.type-select-item.active {
  background: #f1f5f9;
}

/* ───── Table heading icons ───── */
.project-table thead th i {
  margin-right: 0.35rem;
  color: #0d9488;
}

/* ───── Type cell ───── */
.project-type-cell {
  flex-wrap: wrap;
  white-space: normal;
}

/* ═════════ Project details – look & feel ═════════ */
.pd-page .pd-card {
  border: 1px solid #e8eef3;
  border-radius: 18px;
  box-shadow: 0 6px 24px rgba(15, 23, 42, 0.06);
  background: #fff;
}

/* Hero header */
.pd-page .pd-hero {
  position: relative;
  overflow: hidden;
}

.pd-page .pd-hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  background: linear-gradient(90deg, #14b8a6, #0ea5e9, #8b5cf6);
}

.pd-type-tile {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
}

.pd-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #f1f5f9;
  border-radius: 999px;
  padding: 0.28rem 0.75rem;
  font-size: 0.8rem;
  color: #475569;
}

.pd-chip i {
  color: #0d9488;
}

/* Tabs */
.pd-page .pd-tabs {
  gap: 0.35rem;
  border-bottom: 1px solid #e8eef3;
}

.pd-page .pd-tabs .nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 0;
  border-radius: 10px 10px 0 0;
  color: #64748b;
  font-weight: 600;
  padding: 0.65rem 1rem;
  position: relative;
  transition:
    background 0.15s,
    color 0.15s;
}

.pd-page .pd-tabs .nav-link:hover {
  color: #0d9488;
  background: #f0fdfa;
}

.pd-page .pd-tabs .nav-link.active {
  color: #0d9488;
  background: #f0fdfa;
}

.pd-page .pd-tabs .nav-link.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 3px;
  border-radius: 3px;
  background: #14b8a6;
}

/* Overview stat tiles */
.pd-stat {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border: 1px solid #e8eef3;
  border-radius: 14px;
  padding: 0.8rem 1rem;
  background: linear-gradient(135deg, #fff, #f8fafc);
  height: 100%;
}

.pd-stat-ico {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.pd-stat small {
  display: block;
  color: #64748b;
  font-size: 0.75rem;
}

.pd-stat b {
  font-size: 1.05rem;
  color: #0f172a;
}

.pd-meta dt {
  color: #64748b;
  font-weight: 600;
}

.pd-meta dt i {
  color: #0d9488;
  margin-right: 0.35rem;
}

.pd-meta .pd-meta-datetime {
  white-space: nowrap;
}

/* Document categories */
.pd-page .pd-cat {
  border: 1px solid #e8eef3;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 0.75rem;
  background: #fff;
  transition:
    box-shadow 0.2s,
    border-color 0.2s;
}

.pd-page .pd-cat:hover {
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.07);
  border-color: #cfe9e5;
}

.pd-page .pd-cat-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.8rem 1rem;
  cursor: pointer;
  background: linear-gradient(90deg, #f8fafc, #fff);
}

.pd-page .pd-cat-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ccfbf1;
  color: #0f766e;
  font-size: 1.15rem;
}

.pd-page .pd-chev {
  transition: transform 0.2s;
  color: #94a3b8;
}

.pd-page .pd-cat-head[aria-expanded="true"] .pd-chev {
  transform: rotate(180deg);
}

/* File tables */
.pd-page .pd-table thead th {
  background: #f8fafc;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
  border-bottom: 1px solid #e8eef3;
  white-space: nowrap;
}

.pd-page .pd-table thead th i {
  margin-right: 0.35rem;
  color: #0d9488;
}

/* Notes / activity */
.pd-activity li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.pd-act-ico {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Overlay hidden by default */
.turnkey-sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1040;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}

/* tab assignment */
/* ===== Team Assignment: Scoped CSS Only ===== */

#tab-assignment .ta-panel {
  padding: 14px;
  border: 1px solid #e2e8f0;
  border-radius: 9px;
  background: #fff;
}

#tab-assignment .ta-panel-heading {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 15px;
}

#tab-assignment .ta-panel-heading > i {
  flex-shrink: 0;
  font-size: 20px;
}

#tab-assignment .ta-green {
  color: #059669;
}

#tab-assignment .ta-blue {
  color: #1673f9;
}

#tab-assignment .ta-panel-heading h6 {
  margin: 0 0 5px;
  color: #172554;
  font-size: 14px;
  font-weight: 700;
}

#tab-assignment .ta-panel-heading p {
  margin: 0;
  color: #64748b;
  font-size: 12px;
  line-height: 1.5;
}

#tab-assignment .ta-panel .form-label {
  margin-bottom: 6px;
  color: #1e293b;
  font-size: 12px;
  font-weight: 600;
}

#tab-assignment .ta-panel .form-select {
  min-height: 38px;
  border-color: #dce4ee;
  border-radius: 7px;
  font-size: 12px;
  box-shadow: none;
}

#tab-assignment .ta-panel .form-select:focus {
  border-color: #86b7fe;
  box-shadow: 0 0 0 0.15rem rgba(13, 110, 253, 0.12);
}

#tab-assignment .ta-responsibility {
  padding: 10px 12px;
  border-radius: 7px;
  font-size: 11px;
}

#tab-assignment .ta-responsibility.ta-green-bg {
  background: #e7f7ef;
  color: #087f5b;
}

#tab-assignment .ta-responsibility.ta-blue-bg {
  background: #eaf3ff;
  color: #1558b0;
}

#tab-assignment .ta-responsibility strong {
  display: block;
  margin-bottom: 3px;
}

#tab-assignment .ta-responsibility ul {
  margin: 0;
  padding-left: 27px;
  color: #64748b;
  line-height: 1.55;
  font-size: 12px;
}

#tab-assignment .ta-submit {
  padding: 8px 13px;
  border: 1px solid #059669;
  border-radius: 5px;
  background: #059669;
  font-size: 12px;
  font-weight: 600;
}

#tab-assignment .ta-submit:hover {
  border-color: #047857;
  background: #047857;
}

#tab-assignment .ta-assigned-card {
  overflow: hidden;
  border: 1px solid #dfe7ef;
  border-radius: 9px;
  background: #fff;
}

#tab-assignment .ta-assigned-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 12px;
}

#tab-assignment .ta-assigned-heading.ta-green-bg {
  background: #e9f8f1;
}

#tab-assignment .ta-assigned-heading.ta-blue-bg {
  background: #eaf3ff;
}

#tab-assignment .ta-assigned-heading h6 {
  margin: 0;
  color: #172554;
  font-size: 13px;
  font-weight: 700;
}

#tab-assignment .ta-assigned-heading .btn {
  flex-shrink: 0;
  padding: 3px 8px;
  background: #fff;
  font-size: 11px;
  color: #000;
}

#tab-assignment .ta-assigned-body {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 13px;
}

#tab-assignment .ta-avatar {
  display: flex;
  flex: 0 0 43px;
  width: 43px;
  height: 43px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 20px;
}

#tab-assignment .ta-avatar-pink {
  background: #f8dce1;
  color: #7f1d3f;
}

#tab-assignment .ta-avatar-blue {
  background: #e0e7ff;
  color: #3730a3;
}

#tab-assignment .ta-member-info {
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}

#tab-assignment .ta-member-info strong {
  color: #172554;
  font-size: 13px;
  overflow-wrap: anywhere;
}

#tab-assignment .ta-member-info small {
  color: #64748b;
  font-size: 12px;
  overflow-wrap: anywhere;
}

#tab-assignment .ta-assigned-meta {
  display: flex;
  flex-shrink: 0;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

#tab-assignment .ta-assigned-meta .badge {
  font-size: 12px;
  font-weight: 500;
}

#tab-assignment .ta-assigned-meta small {
  color: #64748b;
  font-size: 11px;
  text-align: right;
}

#tab-assignment .ta-history {
  overflow: hidden;
  border: 1px solid #dfe7ef;
  border-radius: 9px;
}

#tab-assignment .ta-history-heading {
  padding: 9px 12px;
  background: #e9eef5;
  color: #334155;
  font-size: 12px;
  font-weight: 700;
}

#tab-assignment .ta-history .table {
  font-size: 11px;
}

#tab-assignment .ta-history .table thead th {
  padding: 7px 10px;
  background: #f8fafc;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  white-space: nowrap;
}

#tab-assignment .ta-history .table tbody td {
  padding: 7px 10px;
  color: #64748b;
  border-color: #edf1f5;
}

/* Team Assignment Success Modals */
#coordinatorSuccessModal .ta-success-modal,
#inspectorSuccessModal .ta-success-modal {
  border: 0;
  border-radius: 14px;
  box-shadow: 0 15px 45px rgba(15, 23, 42, 0.15);
}

#coordinatorSuccessModal .ta-success-icon,
#inspectorSuccessModal .ta-success-icon {
  display: flex;
  width: 68px;
  height: 68px;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: #dcfce7;
  color: #16a34a;
  font-size: 36px;
}

#coordinatorSuccessModal .modal-body h5,
#inspectorSuccessModal .modal-body h5 {
  margin-bottom: 10px;
  color: #172554;
  font-size: 18px;
  font-weight: 700;
}

#coordinatorSuccessModal .modal-body p,
#inspectorSuccessModal .modal-body p {
  margin-bottom: 22px;
  color: #64748b;
  font-size: 13px;
  line-height: 1.6;
}

#coordinatorSuccessModal .ta-success-btn,
#inspectorSuccessModal .ta-success-btn {
  min-width: 110px;
  padding: 9px 20px;
  border-radius: 7px;
  background: #059669;
  border-color: #059669;
  font-size: 13px;
  font-weight: 600;
}

#coordinatorSuccessModal .ta-success-btn:hover,
#inspectorSuccessModal .ta-success-btn:hover {
  background: #047857;
  border-color: #047857;
}

/*  */
/* inspection  */
/* ==========================================
   INSPECTION PAGE - SCOPED DESIGN
   ========================================== */

#tab-inspection {
  color: #334155;
  font-size: 12px;
}

#tab-inspection .in-page-card {
  border: 1px solid #e2e8f0;
  border-radius: 9px;
  background: #fff;
}

#tab-inspection .in-team-card,
#tab-inspection .in-panel,
#tab-inspection .in-side-panel,
#tab-inspection .in-note-card,
#tab-inspection .in-photo-group {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #e3eaf2;
  border-radius: 7px;
  background: #fff;
}

#tab-inspection .in-side-panel .in-note-avatar img {
  height: 40px;
  width: 40px;
}

.in-action-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 12px;
}

.in-donut-chart {
  width: 100px;
  height: 100px;
  min-width: 100px;
  border-radius: 50%;
  background: conic-gradient(
    #dc3545 0deg 144deg,
    #0d6efd 144deg 216deg,
    #198754 216deg 288deg,
    #0d9b72 288deg 360deg
  );
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transform: rotate(-90deg);
}

.in-donut-center {
  width: 72px;
  height: 72px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: rotate(90deg);
}

.in-donut-center strong {
  font-size: 19px;
  line-height: 1.2;
  color: #172554;
  font-weight: 700;
}

.in-donut-center small {
  font-size: 12px;
  color: #64748b;
}

.in-summary-list {
  flex: 1;
  min-width: 0;
}

.in-summary-list > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  margin-bottom: 9px;
  font-size: 11px;
  color: #64748b;
}

.in-summary-list > div:last-child {
  margin-bottom: 0;
}

.in-summary-list span {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.in-summary-list span i {
  font-size: 12px;
}

.in-summary-list strong {
  color: #172554;
  font-size: 11px;
  font-weight: 600;
}

#tab-inspection .in-panel-heading-main {
  padding: 9px 12px;
}

#tab-inspection .in-panel-heading-main h6 {
  color: #172554;
  font-size: 20px;
  font-weight: 700;
}

#tab-inspection .in-panel-heading-main p {
  font-size: 16px;
}

#tab-inspection .in-team-heading,
#tab-inspection .in-team-title,
#tab-inspection .in-team-body,
#tab-inspection .in-workspace-heading,
#tab-inspection .in-panel-heading,
#tab-inspection .in-side-heading,
#tab-inspection .in-subpage-heading,
#tab-inspection .in-note-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

#tab-inspection .in-note-top .bi-trash {
  color: #ff0000;
}

#tab-inspection .in-team-heading {
  padding: 10px 12px 4px;
}

#tab-inspection .in-team-title {
  justify-content: flex-start;
  min-width: 0;
  align-items: flex-start;
}

#tab-inspection .in-team-title > i {
  color: #059669;
  font-size: 18px;
}

#tab-inspection .in-blue {
  color: #1673f9 !important;
}

#tab-inspection .in-team-heading h6,
#tab-inspection .in-panel-heading h6 {
  margin: 0 0 4px;
  color: #172554;
  font-size: 14px;
  font-weight: 700;
}

.in-photo-list img {
  height: 34px;
  width: 34px;
  border-radius: 5px;
}

.in-photo-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  border: 1px solid #dbe4ef;
  border-radius: 5px;
  background: #f8fafc;
  color: #2563eb;
  font-size: 11px;
  font-weight: 600;
  margin-top: 5px;
}

.in-photo-list .in-hidden-photo {
  display: none !important;
}

.in-photo-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
}

.in-row-actions {
  display: flex;
  gap: 5px;
}

.in-row-actions .dropdown-toggle::after {
  content: none;
}

.in-row-actions .bi-check-lg {
  color: #007a4d;
}

#tab-inspection .in-team-heading p,
#tab-inspection .in-subpage-heading p,
#tab-inspection .in-workspace-heading p {
  margin: 0;
  color: #64748b;
  font-size: 12px;
  line-height: 1.5;
}

#tab-inspection .in-team-heading .btn {
  flex-shrink: 0;
  padding: 4px 9px;
  font-size: 12px;
}

#tab-inspection .in-team-body {
  justify-content: flex-start;
  padding: 10px 12px;
}

#tab-inspection .in-avatar {
  display: flex;
  flex: 0 0 43px;
  width: 43px;
  height: 43px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 19px;
}

#tab-inspection .in-avatar-pink {
  background: #f9dce4;
  color: #9d174d;
}

#tab-inspection .in-avatar-blue {
  background: #e0e7ff;
  color: #3730a3;
}

#tab-inspection .in-team-body .flex-grow-1 {
  min-width: 0;
}

#tab-inspection .in-team-body strong,
#tab-inspection .in-team-body small {
  display: block;
  overflow-wrap: anywhere;
}

#tab-inspection .in-team-body strong {
  color: #172554;
  font-size: 14px;
}

#tab-inspection .in-team-body small {
  margin-top: 4px;
  color: #64748b;
  font-size: 12px;
}

#tab-inspection .in-team-status {
  display: flex;
  flex-shrink: 0;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
}

#tab-inspection .in-team-status .badge {
  font-size: 12px;
}

#tab-inspection .in-workspace {
  overflow: hidden;
  border: 1px solid #e3eaf2;
  border-radius: 8px;
  background: #fff;
}

#tab-inspection .in-workspace-heading {
  padding: 13px 15px;
  background: #eaf3ff;
}

#tab-inspection .in-workspace-heading h5 {
  margin: 0 0 4px;
  color: #172554;
  font-size: 14px;
  font-weight: 700;
}

#tab-inspection .in-workspace-heading h5 i {
  margin-right: 7px;
  color: #1673f9;
}

#tab-inspection .in-primary-btn {
  flex-shrink: 0;
  padding: 8px 12px;
  border-color: #059669;
  background: #059669;
  font-size: 12px;
  font-weight: 600;
}

#tab-inspection .in-primary-btn:hover {
  border-color: #047857;
  background: #047857;
}

#tab-inspection .in-nav-tabs {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  border-bottom: 1px solid #e2e8f0;
  scrollbar-width: thin !important;
}

#tab-inspection .in-nav-tabs .nav-link {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 13px;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: #fff;
  color: #64748b;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

#tab-inspection .in-nav-tabs .nav-link:hover {
  color: #059669;
}

#tab-inspection .in-nav-tabs .nav-link.active {
  border-bottom-color: #059669;
  background: #f0fdf8;
  color: #059669;
}

#tab-inspection .in-nav-tabs .nav-link i {
  font-size: 13px;
}

#tab-inspection .in-inner-content {
  padding: 0 12px 12px;
}

#tab-inspection .in-panel-heading {
  min-height: 43px;
  padding: 9px 12px;
  background: #f0f6ff;
}

#tab-inspection .in-panel-heading h6 {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
}

#tab-inspection .in-heading-icon {
  color: #1673f9;
  font-size: 15px;
}

#tab-inspection .in-panel-heading small {
  display: block;
  color: #64748b;
  font-size: 12px;
}

#tab-inspection .in-progress-info {
  width: 150px;
  flex-shrink: 0;
  color: #475569;
  font-size: 12px;
}

#tab-inspection .in-progress-info .progress {
  height: 6px;
  margin-top: 5px;
  border-radius: 8px;
  background: #e2e8f0;
}

#tab-inspection .in-progress-info .progress-bar {
  border-radius: 8px;
}

#tab-inspection .in-table {
  min-width: 980px;
  margin: 0;
  color: #475569;
  font-size: 12px;
  vertical-align: middle;
}

#tab-inspection .in-table > :not(caption) > * > * {
  padding: 7px 8px;
  border-color: #e9eef5;
}

#tab-inspection .in-table thead th {
  background: #f6f9fd;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  white-space: nowrap;
}

#tab-inspection .in-table tbody tr:hover > * {
  background-color: #f8fbff;
}

#tab-inspection .in-table td {
  line-height: 1.5;
  font-size: 12px;
}

#tab-inspection .in-table td strong {
  display: block;
  color: #172554;
  font-size: 12px;
}

#tab-inspection .in-table td small {
  display: block;
  margin-top: 3px;
  color: #64748b;
  font-size: 12px;
}

#tab-inspection .in-pill {
  display: inline-block;
  max-width: 100%;
  padding: 4px 8px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
}

#tab-inspection .in-pill.green {
  background: #d1fae5;
  color: #047857;
}

#tab-inspection .in-pill.red {
  background: #fee2e2;
  color: #dc2626;
}

#tab-inspection .in-pill.orange {
  background: #fef3c7;
  color: #b45309;
}

#tab-inspection .in-pill.blue {
  background: #dbeafe;
  color: #1d4ed8;
}

#tab-inspection .in-pill.gray {
  background: #e9eef5;
  color: #64748b;
}

#tab-inspection .in-pill.purple {
  background: #ede9fe;
  color: #6d28d9;
}

#tab-inspection .in-small-btn {
  padding: 3px 7px;
  font-size: 12px;
}

#tab-inspection .in-side-heading {
  justify-content: flex-start;
  padding: 10px 12px;
  background: #eaf3ff;
  color: #172554;
  font-size: 14px;
  font-weight: 700;
}

#tab-inspection .in-side-heading > i {
  color: #1673f9;
  font-size: 14px;
}

#tab-inspection .in-mini-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
  padding: 8px;
}

#tab-inspection .in-mini-stats > div {
  display: flex;
  min-width: 0;
  min-height: 47px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 5px 2px;
  border-radius: 5px;
  background: #f1f5f9;
  color: #334155;
  text-align: center;
}

#tab-inspection .in-mini-stats strong {
  font-size: 15px;
  line-height: 1.1;
}

#tab-inspection .in-mini-stats small {
  font-size: 12px;
  line-height: 1.3;
}

#tab-inspection .in-mini-stats .green {
  background: #ecfdf5;
  color: #059669;
}

#tab-inspection .in-mini-stats .red {
  background: #fff1f2;
  color: #e11d48;
}

#tab-inspection .in-mini-stats .orange {
  background: #fffbeb;
  color: #d97706;
}

#tab-inspection .in-mini-stats .blue {
  background: #eff6ff;
  color: #2563eb;
}

#tab-inspection .in-mini-stats .purple {
  background: #f5f3ff;
  color: #7c3aed;
}

#tab-inspection .in-summary-list {
  padding: 0 10px 8px;
}

#tab-inspection .in-summary-list > div {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 2px;
  border-bottom: 1px solid #edf1f5;
  color: #64748b;
  font-size: 12px;
}

#tab-inspection .in-summary-list > div:last-child {
  border-bottom: 0;
}

#tab-inspection .in-summary-list > div > span {
  min-width: 0;
}

#tab-inspection .in-summary-list strong {
  color: #7e7e7e;
  font-size: 12px;
  text-align: right;
  overflow-wrap: anywhere;
}

#tab-inspection .in-summary-list .bi-circle-fill {
  margin-right: 5px;
  font-size: 12px;
}

#tab-inspection .in-findings-panel {
  background: #fff7f7;
}

#tab-inspection .in-findings-panel .in-side-heading {
  background: #fff0f0;
}

#tab-inspection .in-findings-panel ul {
  margin: 0;
  padding: 10px 12px 12px 28px;
  color: #475569;
  font-size: 12px;
  line-height: 1.9;
}

#tab-inspection .in-findings-panel li::marker {
  color: #ef4444;
}

#tab-inspection .in-side-note {
  margin: 0;
  padding: 12px;
  color: #64748b;
  font-size: 12px;
  line-height: 1.7;
}

#tab-inspection .in-report-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  padding: 8px 12px;
}

#tab-inspection .in-report-meta > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border-bottom: 1px solid #edf1f5;
}

#tab-inspection .in-report-meta small {
  color: #64748b;
  font-size: 12px;
}

#tab-inspection .in-report-meta strong {
  color: #334155;
  font-size: 12px;
  overflow-wrap: anywhere;
}

#tab-inspection .in-results-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  padding: 10px;
}

#tab-inspection .in-results-row > .progress {
  flex: 1 1 100px;
  height: 7px;
}

#tab-inspection .in-results-row > strong {
  font-size: 12px;
  white-space: nowrap;
}

#tab-inspection .in-result-box {
  display: flex;
  min-width: 70px;
  flex: 1;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 4px;
  border-radius: 5px;
  background: #f1f5f9;
}

#tab-inspection .in-result-box b {
  font-size: 17px;
}

#tab-inspection .in-result-box small {
  font-size: 12px;
}

#tab-inspection .in-result-box.green {
  background: #ecfdf5;
  color: #059669;
}

#tab-inspection .in-result-box.red {
  background: #fff1f2;
  color: #e11d48;
}

#tab-inspection .in-result-box.orange {
  background: #fffbeb;
  color: #d97706;
}

#tab-inspection .in-panel-footer {
  display: flex;
  justify-content: flex-end;
  padding: 4px 10px;
}

#tab-inspection .in-panel-footer .btn {
  font-size: 12px;
}

#tab-inspection .in-side-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px;
}

#tab-inspection .in-side-actions .btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px;
  font-size: 12px;
}

#tab-inspection .in-signature {
  padding: 12px;
}

#tab-inspection .in-signature > small,
#tab-inspection .in-signature > strong {
  display: block;
  margin-bottom: 5px;
  font-size: 12px;
}

#tab-inspection .in-signature-mark {
  margin: 8px 0;
  padding: 10px;
  border: 1px dashed #cbd5e1;
  border-radius: 5px;
  color: #475569;
  font-family: cursive;
  font-size: 22px;
  font-style: italic;
  text-align: center;
}

#tab-inspection .in-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 12px;
}

#tab-inspection .in-filter {
  width: auto;
  min-width: 115px;
  max-width: 100%;
  min-height: 34px;
  padding-top: 5px;
  padding-bottom: 5px;
  border-color: #dce4ee;
  border-radius: 5px;
  font-size: 12px;
  box-shadow: none;
}

#tab-inspection #inActionSearch {
  flex: 1 1 120px;
}

#tab-inspection .in-subpage-heading {
  align-items: flex-start;
  flex-wrap: wrap;
  margin: 14px 0;
}

#tab-inspection .in-subpage-heading h5 {
  margin: 0 0 5px;
  color: #172554;
  font-size: 18px;
  font-weight: 700;
}

#tab-inspection .in-photo-group {
  margin-bottom: 12px;
}

#tab-inspection .in-photo-group-heading {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 9px 12px;
  background: #f0f6ff;
}

#tab-inspection .in-photo-group-heading strong {
  color: #172554;
  font-size: 11px;
}

#tab-inspection .in-photo-group-heading > span:not(.in-pill) {
  color: #64748b;
  font-size: 12px;
}

#tab-inspection .in-photo-group-heading a {
  text-decoration: none;
  font-size: 12px;
}

#tab-inspection .in-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 10px;
}

#tab-inspection .in-photo-card {
  display: block;
  min-width: 0;
  padding: 0;
  border: 0;
  background: #fff;
  color: #334155;
  text-align: left;
}

#tab-inspection .in-photo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #dce4ee;
  border-radius: 5px;
  background: linear-gradient(135deg, #edf5fc, #dbe7f2);
  color: #6b8cae;
  height: 160px;
}

#tab-inspection .in-photo-placeholder img {
  border-radius: 5px;
}

#tab-inspection .in-photo-placeholder i {
  font-size: 28px;
}

#tab-inspection .in-photo-card > strong,
#tab-inspection .in-photo-card > small {
  display: block;
  margin-top: 5px;
  overflow-wrap: anywhere;
}

#tab-inspection .in-photo-card > strong {
  color: #172554;
  font-size: 12px;
}

#tab-inspection .in-photo-card > small {
  color: #64748b;
  font-size: 12px;
}

#tab-inspection .in-photo-card > p {
  margin: 3px 0 0;
  color: #64748b;
  font-size: 12px;
}

#tab-inspection .in-upload-photo {
  display: flex;
  min-height: 105px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px;
  border: 1px dashed #cbd5e1;
  border-radius: 5px;
  background: #fbfdff;
  color: #64748b;
  font-size: 12px;
}

#tab-inspection .in-upload-photo i {
  font-size: 23px;
  color: #1673f9;
}

#tab-inspection .in-note-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
  padding: 13px;
}

#tab-inspection .in-note-avatar img {
  height: 50px;
  width: 50px;
  border-radius: 50%;
  object-fit: cover;
}

#tab-inspection .in-note-content {
  min-width: 0;
  flex: 1;
}

#tab-inspection .in-note-top {
  align-items: flex-start;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

#tab-inspection .in-note-top > div:first-child {
  min-width: 0;
}

#tab-inspection .in-note-top strong {
  color: #172554;
  font-size: 14px;
}

#tab-inspection .in-note-top small {
  display: block;
  margin-top: 3px;
  color: #64748b;
  font-size: 12px;
}

#tab-inspection .in-note-content > p {
  margin: 0 0 10px;
  color: #64748b;
  font-size: 12px;
  line-height: 1.7;
}

#tab-inspection .in-note-attachments {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.in-note-attachments .bi-file-earmark-pdf {
  color: #027af9;
}

#tab-inspection .in-note-attachments img {
  width: 120px;
  height: 80px;
  border-radius: 10px;
}

#tab-inspection .in-note-attachments .in-photo-count {
  width: 120px;
  height: 75px;
  font-size: 20px;
}

#tab-inspection .in-note-attachments > span {
  padding: 8px 10px;
  border: 1px solid #e2e8f0;
  border-radius: 5px;
  background: #f4f9fd;
  color: #475569;
  font-size: 12px;
}

#tab-inspection .in-add-note-form {
  padding: 12px;
}

#tab-inspection .in-add-note-form .form-label {
  color: #475569;
  font-size: 12px;
  font-weight: 600;
}

#tab-inspection .in-add-note-form .form-control,
#tab-inspection .in-add-note-form .form-select {
  font-size: 12px;
}

#tab-inspection .in-timeline {
  padding: 8px 0;
}

#tab-inspection .in-timeline-item {
  display: grid;
  grid-template-columns: 90px 32px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  margin-bottom: 10px;
}

#tab-inspection .in-timeline-date {
  padding-top: 10px;
  color: #64748b;
  font-size: 12px;
  text-align: right;
}

#tab-inspection .in-timeline-date small {
  display: block;
  margin-top: 4px;
}

#tab-inspection .in-timeline-marker {
  position: relative;
  display: flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border: 1px solid #e2e8f0;
  border-radius: 50%;
  background: #fff;
  font-size: 13px;
}

#tab-inspection .in-timeline-marker::after {
  position: absolute;
  top: 31px;
  bottom: -22px;
  left: 14px;
  width: 1px;
  height: 68px;
  background: #cbd5e1;
  content: "";
}

#tab-inspection .in-timeline-item:last-child .in-timeline-marker::after {
  display: none;
}

#tab-inspection .in-timeline-marker.green {
  font-size: 17px;
  color: #059669;
  background: #0596693b;
}

#tab-inspection .in-timeline-marker.blue {
  font-size: 17px;
  color: #1673f9;
  background: #1673f936;
}

#tab-inspection .in-timeline-marker.orange {
  font-size: 17px;
  color: #d97706;
  background: #d977063d;
}

#tab-inspection .in-timeline-marker.purple {
  font-size: 17px;
  color: #7c3aed;
  background: #7c3aed33;
}

#tab-inspection .in-timeline-marker.red {
  font-size: 17px;
  color: #dc2626;
  background: #dc26264f;
}

#tab-inspection .in-timeline-content {
  position: relative;
  min-width: 0;
  padding: 10px;
  border: 1px solid #e3eaf2;
  border-radius: 6px;
  background: #fff;
}

#tab-inspection .in-timeline-content > strong {
  color: #172554;
  font-size: 12px;
}

#tab-inspection .in-timeline-content > p {
  margin: 4px 0;
  color: #64748b;
  font-size: 12px;
  line-height: 1.6;
}

#tab-inspection .in-timeline-content > small {
  color: #64748b;
  font-size: 12px;
}

#tab-inspection .in-timeline-content > .in-pill {
  float: right;
}

#tab-inspection .in-milestones {
  padding: 12px;
}

#tab-inspection .in-milestones > div {
  position: relative;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 8px;
  padding-bottom: 18px;
}

#tab-inspection .in-milestones > div:not(:last-child)::after {
  position: absolute;
  top: 18px;
  bottom: 0;
  left: 8px;
  width: 1px;
  background: #a7f3d0;
  content: "";
}

#tab-inspection .in-milestones > div > i {
  position: relative;
  z-index: 1;
  color: #059669;
  font-size: 16px;
}

#tab-inspection .in-milestones strong,
#tab-inspection .in-milestones small {
  display: block;
  grid-column: 2;
  font-size: 12px;
}

#tab-inspection .in-milestones strong {
  color: #172554;
}

#tab-inspection .in-milestones small {
  margin-top: 4px;
  color: #64748b;
}

#tab-inspection .in-recent-activity {
  position: relative;
  padding: 10px 12px;
  border-bottom: 1px solid #edf1f5;
}

#tab-inspection .in-recent-activity:last-child {
  border-bottom: 0;
}

#tab-inspection .in-recent-activity strong,
#tab-inspection .in-recent-activity small {
  display: block;
  font-size: 12px;
}

.in-recent-activity {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid #edf1f5;
  position: relative;
}

.in-recent-activity:last-child {
  border-bottom: 0;
}

.in-activity-avatar {
  width: 30px;
  height: 30px;
  min-width: 30px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #e2e8f0;
}

.in-activity-content {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
  min-width: 0;
  padding-right: 55px;
}

.in-activity-content strong {
  font-size: 11px;
  line-height: 1.4;
  color: #172554;
  font-weight: 600;
}

.in-activity-content strong span {
  color: #718096;
  font-size: 12px;
  font-weight: 400;
}

.in-activity-content small {
  font-size: 12px;
  line-height: 1.5;
  color: #64748b;
}

.in-activity-time {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 12px;
  color: #94a3b8;
  white-space: nowrap;
}

.in-system-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eaf2ff;
  color: #2563eb;
  font-size: 13px;
}

@media (max-width: 480px) {
  .in-recent-activity {
    padding: 10px 8px;
    gap: 6px;
  }

  .in-activity-avatar {
    width: 27px;
    height: 27px;
    min-width: 27px;
  }

  .in-activity-content {
    padding-right: 0;
  }

  .in-activity-time {
    position: static;
    font-size: 12px;
    margin-left: auto;
  }
}

#tab-inspection .in-recent-activity strong {
  color: #172554;
}

#tab-inspection .in-recent-activity > span {
  position: absolute;
  top: 10px;
  right: 10px;
  color: #94a3b8;
  font-size: 12px;
}

/* ==========================================
   INSPECTION MODALS
   ========================================== */

#scheduleInspectionModal .in-modal-content,
.in-modal-content {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  box-shadow: 0 15px 40px rgba(15, 23, 42, 0.16);
  overflow-y: auto;
  scrollbar-width: thin;
}

#scheduleInspectionModal .in-modal-header {
  padding: 15px 20px;
  border-bottom: 1px solid #e2e8f0;
}

#scheduleInspectionModal .in-modal-main-icon {
  color: #0891b2;
  font-size: 28px;
}

#scheduleInspectionModal .modal-title,
.in-modal-content .modal-title {
  color: #172554;
  font-size: 15px;
  font-weight: 700;
}

#scheduleInspectionModal .in-modal-header p {
  margin: 4px 0 0;
  color: #64748b;
  font-size: 12px;
}

#scheduleInspectionModal .in-modal-body {
  padding: 16px 20px;
}

#scheduleInspectionModal .in-project-info {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 7px;
  background: #f5f8fc;
}

#scheduleInspectionModal .in-project-info > div {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

#scheduleInspectionModal .in-project-info > div > i {
  display: flex;
  flex: 0 0 31px;
  width: 31px;
  height: 31px;
  align-items: center;
  justify-content: center;
  border: 1px solid #dbeafe;
  border-radius: 6px;
  background: #fff;
  color: #64748b;
}

#scheduleInspectionModal .in-project-info span {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}

#scheduleInspectionModal .in-project-info small {
  color: #64748b;
  font-size: 12px;
}

#scheduleInspectionModal .in-project-info strong {
  color: #172554;
  font-size: 12px;
  overflow-wrap: anywhere;
}

#scheduleInspectionModal .in-modal-notice {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px;
  border: 1px solid #bfdbfe;
  border-radius: 6px;
  background: #eaf3ff;
  color: #1673f9;
  font-size: 12px;
  line-height: 1.5;
}

#scheduleInspectionModal .in-modal-notice i {
  flex-shrink: 0;
}

#scheduleInspectionModal .in-success-notice {
  padding: 9px;
  border-radius: 5px;
  background: #ecfdf5;
  color: #059669;
  font-size: 12px;
}

#scheduleInspectionModal .form-label,
.in-modal-content .form-label {
  margin-bottom: 5px;
  color: #334155;
  font-size: 12px;
  font-weight: 600;
}

#scheduleInspectionModal .form-control,
#scheduleInspectionModal .form-select,
.in-modal-content .form-control,
.in-modal-content .form-select {
  min-height: 35px;
  border-color: #dce4ee;
  border-radius: 5px;
  color: #334155;
  font-size: 12px;
  box-shadow: none;
}

#scheduleInspectionModal textarea.form-control,
.in-modal-content textarea.form-control {
  min-height: 75px;
  resize: vertical;
}

#scheduleInspectionModal .form-control:focus,
#scheduleInspectionModal .form-select:focus,
.in-modal-content .form-control:focus,
.in-modal-content .form-select:focus {
  border-color: #86b7fe;
  box-shadow: 0 0 0 0.15rem rgba(13, 110, 253, 0.1);
}

#scheduleInspectionModal .in-system-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

#scheduleInspectionModal .in-system-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
  padding: 11px;
  border: 1px solid #dce4ee;
  border-radius: 6px;
  cursor: pointer;
}

#scheduleInspectionModal .in-system-option.active,
#scheduleInspectionModal .in-system-option:has(input:checked) {
  border-color: #1673f9;
  background: #eff6ff;
}

#scheduleInspectionModal .in-system-option input {
  flex-shrink: 0;
  margin-top: 3px;
  accent-color: #1673f9;
}

#scheduleInspectionModal .in-system-option > i {
  color: #1673f9;
  font-size: 23px;
}

#scheduleInspectionModal .in-system-option > span {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 5px;
}

#scheduleInspectionModal .in-system-option strong {
  color: #172554;
  font-size: 12px;
}

#scheduleInspectionModal .in-system-option small {
  color: #64748b;
  font-size: 12px;
  line-height: 1.5;
}

#scheduleInspectionModal .in-multi-system {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  color: #475569;
  font-size: 12px;
}

#scheduleInspectionModal .in-multi-system input,
#scheduleInspectionModal .in-checklist input {
  flex-shrink: 0;
  accent-color: #059669;
}

#scheduleInspectionModal .in-modal-section {
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 7px;
  background: #fff;
}

#scheduleInspectionModal .in-modal-section h6 {
  margin: 0 0 12px;
  padding-left: 9px;
  border-left: 3px solid #059669;
  color: #172554;
  font-size: 12px;
  font-weight: 700;
}

#scheduleInspectionModal .in-modal-section h6 i {
  margin-right: 5px;
}

#scheduleInspectionModal .in-section-description {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #64748b;
  font-size: 12px;
}

#scheduleInspectionModal .in-checklist {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#scheduleInspectionModal .in-checklist label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #475569;
  font-size: 12px;
  cursor: pointer;
}

#scheduleInspectionModal .in-checklist-preview > div {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 2px;
  border-bottom: 1px solid #edf1f5;
  color: #475569;
  font-size: 12px;
}

#scheduleInspectionModal .in-checklist-preview > div > span {
  flex: 0 0 18px;
  color: #64748b;
}

#scheduleInspectionModal .in-char-limit {
  display: block;
  margin-top: 4px;
  color: #94a3b8;
  font-size: 12px;
  text-align: right;
}

#scheduleInspectionModal .in-modal-footer {
  gap: 8px;
  padding: 12px 20px;
  border-top: 1px solid #e2e8f0;
}

#scheduleInspectionModal .in-modal-footer .btn,
.in-modal-content .modal-footer .btn {
  padding: 8px 13px;
  font-size: 14px;
  font-weight: 600;
}

#scheduleInspectionModal .in-modal-footer .btn-success,
.in-modal-content .modal-footer .btn-success {
  border-color: #059669;
  background: #059669;
}

.in-modal-content .modal-header,
.in-modal-content .modal-footer {
  padding: 13px 16px;
  border-color: #e2e8f0;
}

.in-modal-content .modal-body {
  padding: 16px;
}

.in-modal-content .in-modal-help {
  margin-top: 9px;
  color: #64748b;
  font-size: 12px;
  line-height: 1.6;
}

.in-modal-content .in-finding-detail {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 10px 0;
  border-bottom: 1px solid #edf1f5;
}

.in-modal-content .in-finding-detail:last-child {
  border-bottom: 0;
}

.in-modal-content .in-finding-detail > small {
  color: #64748b;
  font-size: 12px;
}

.in-modal-content .in-finding-detail > strong {
  color: #172554;
  font-size: 12px;
}

.in-modal-content .in-finding-detail > p {
  margin: 0;
  color: #475569;
  font-size: 11px;
  line-height: 1.6;
}

.in-modal-content .in-photo-preview {
  display: flex;
  min-height: 230px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: #f1f5f9;
  color: #64748b;
}

.in-modal-content .in-photo-preview i {
  font-size: 42px;
}

.in-modal-content .in-feedback-icon {
  color: #059669;
  font-size: 42px;
}

.ip-page {
  width: 100%;
  padding: 10px;
}

.ip-card {
  background: #fff;
  border: 1px solid #e5ebf4;
  border-radius: 6px;
  box-shadow: 0 2px 7px rgba(31, 55, 90, 0.035);
}

.ip-filter-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px;
}

.ip-search {
  position: relative;
  flex: 1 1 170px;
  min-width: 290px;
}

.ip-search i {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #8290a9;
}

.ip-search input {
  padding-left: 29px;
}

.ip-control {
  border: 1px solid #e3eaf4;
  border-radius: 5px;
  color: #455875;
  font-size: 12px;
}

.ip-date {
  display: flex;
  align-items: center;
  gap: 5px;
}

.ip-date input {
  border: 1px solid #e3eaf4;
  border-radius: 5px;
  padding: 9px;
  font-size: 12px;
}

.ip-card .tabs-wrap {
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: #88888847 #f1f1f1;
}

.ip-tabs {
  display: flex;
  flex-wrap: nowrap;
}

.ip-tabs .nav-link {
  white-space: nowrap;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  padding: 14px 10px;
  color: #536582;
  font-size: 13px;
}

.ip-tabs .nav-link.active {
  background: #fff;
  color: #059669;
  border-bottom-color: #059669;
  font-weight: 700;
}

.ip-add-btn {
  background: #059669;
  border: 1px solid #059669;
  color: #fff;
  border-radius: 5px;
  padding: 7px 11px;
  white-space: nowrap;
  font-size: 12px;
}

.ip-add-btn:hover {
  background: #047857;
  color: #fff;
}

.ip-stat {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px;
  min-height: 65px;
  height: 100%;
}

.ip-stat-icon {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 50%;
  font-size: 17px;
}

.ip-stat-label {
  font-size: 12px;
  color: #536582;
  margin-bottom: 3px;
}

.ip-stat-value {
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  color: #10254c;
}

.ip-blue {
  background: #e5f1ff;
  color: #1680ff;
}

.ip-purple {
  background: #eeeaff;
  color: #7053ff;
}

.ip-green {
  background: #d8f8e9;
  color: #059669;
}

.ip-yellow {
  background: #fff3d7;
  color: #f5a400;
}

.ip-red {
  background: #ffe3e6;
  color: #f12f43;
}

.ip-table-scroll {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin !important;
  scrollbar-color: #aabbd0 #f0f4f9;
}

.ip-table-scroll::-webkit-scrollbar {
  height: 6px;
}

.ip-table-scroll::-webkit-scrollbar-track {
  background: #f0f4f9;
}

.ip-table-scroll::-webkit-scrollbar-thumb {
  background: #aabbd0;
  border-radius: 10px;
}

.ip-table {
  width: 100%;
  min-width: 1120px;
  margin: 0;
  vertical-align: middle;
  border-color: #edf1f7;
}

.ip-table > :not(caption) > * > * {
  padding: 10px 14px;
  white-space: nowrap;
}

.ip-table thead th {
  background: #f7faff;
  color: #34496e;
  font-size: 12px;
  font-weight: 600;
  border-bottom: 1px solid #e5ebf4;
}

.ip-table tbody td {
  font-size: 12px;
  color: #34496e;
}

.ip-project-row {
  cursor: pointer;
  background: #fff;
}

.ip-project-row:hover {
  background: #f4f8ff;
}

.ip-project-row.is-expanded {
  background: #f8fbff;
}

.ip-project-name {
  color: #174a9c;
  font-weight: 700;
  font-size: 12px;
}

.ip-muted {
  color: #718095;
  font-size: 12px;
}

.ip-project-img {
  width: 29px;
  height: 31px;
  object-fit: cover;
  flex-shrink: 0;
  border-radius: 4px;
  border: 1px solid #dce5f0;
}

.ip-expand {
  width: 15px;
  border: 0;
  background: transparent;
  color: #174a9c;
  padding: 2px;
}

.ip-tag {
  display: inline-block;
  border-radius: 5px;
  padding: 4px 7px;
  font-size: 11px;
  font-weight: 600;
}

.ip-tag-hvac {
  background: #dceeff;
  color: #0875da;
}

.ip-tag-solar {
  background: #fff0c9;
  color: #9b6900;
}

.ip-tag-both {
  background: #eee0ff;
  color: #7139c9;
}

.ip-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  padding: 5px 7px;
  border-radius: 4px;
  font-weight: 700;
}

.ip-count-green {
  background: #e0f8eb;
  color: #059669;
}

.ip-count-blue {
  background: #e7f1ff;
  color: #1672ef;
}

.ip-count-yellow {
  background: #fff4d9;
  color: #c58a00;
}

.ip-count-red {
  background: #ffeaec;
  color: #ed3448;
}

.ip-status {
  display: inline-block;
  border-radius: 5px;
  padding: 5px 8px;
  min-width: 60px;
  text-align: center;
  font-size: 12px;
}

.ip-status-completed {
  background: #d9f7e8;
  color: #078652;
}

.ip-status-pending {
  background: #e1f0ff;
  color: #0875d1;
}

.ip-status-scheduled {
  background: #fff0cb;
  color: #a66a00;
}

.ip-status-progress {
  background: #e4efff;
  color: #176ce0;
}

.ip-btn-view {
  background: #eaf4ff;
  color: #0969e8;
  border: 0;
  border-radius: 4px;
  padding: 6px 9px;
  white-space: nowrap;
}

.ip-btn-view:hover {
  background: #0969e8;
  color: #fff;
}

.ip-icon-btn {
  background: transparent;
  color: #64748b;
  border: 0;
  padding: 4px 6px;
}

.ip-icon-btn:hover {
  background: #eaf2ff;
  color: #0969e8;
}

.ip-detail-row {
  display: none;
}

.ip-detail-row.show {
  display: table-row;
}

.ip-detail-row > td {
  padding: 0 7px 7px 42px !important;
  background: #fbfdff;
}

.ip-nested-table {
  width: 100%;
  min-width: 850px;
  margin: 0;
}

.ip-nested-table th {
  background: #f5f8fd;
  color: #34496e;
  font-size: 12px;
  font-weight: 600;
  padding: 8px 7px;
  border-bottom: 1px solid #e5ebf4;
  white-space: nowrap;
}

.ip-nested-table td {
  padding: 7px;
  border-bottom: 1px solid #edf1f7;
  font-size: 12px;
  white-space: nowrap;
}

.ip-nested-table tr:last-child td {
  border-bottom: 0;
}

.ip-action-menu {
  min-width: 140px;
}

.ip-action-menu .dropdown-item {
  font-size: 11px;
  padding: 8px 12px;
}

.ip-pagination .page-link {
  border-color: #e5ebf4;
  color: #526480;
  padding: 5px 8px;
  font-size: 12px;
}

.ip-pagination .active .page-link {
  background: #059669;
  border-color: #059669;
  color: #fff;
}

.ip-page-size {
  width: 95px;
  font-size: 10px !important;
  border-color: #e5ebf4;
}

.ip-empty {
  display: none;
  text-align: center;
  padding: 35px 10px;
  color: #718095;
}

.ip-project-row[hidden],
.ip-detail-row[hidden] {
  display: none !important;
}

.is-wrap {
  max-width: 1800px;
  margin: auto;
  padding: 12px;
}
.is-card {
  background: #fff;
  border: 1px solid #e3ebf6;
  border-radius: 6px;
  box-shadow: 0 1px 4px #183b6508;
}
.is-filters {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-bottom: 8px;
}
.is-filter {
  padding: 10px 18px;
  border: 1px solid #dce5f1;
  border-radius: 4px;
  background: #fff;
  color: #29416e;
  font-size: 12px;
}

.is-date-range input {
  border: 1px solid #e3eaf4;
  border-radius: 5px;
  padding: 9px;
  font-size: 12px;
}
.is-filter-spacer {
  flex: 1;
}
.is-schedule-btn {
  background: #05a477;
  color: #fff;
  border: 0;
  border-radius: 4px;
  padding: 9px 11px;
  font-size: 12px;
  white-space: nowrap;
}
.is-schedule-btn:hover {
  background: #008e68;
  color: #fff;
}
.is-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
  margin-bottom: 8px;
}
.is-stat {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  min-height: 54px;
}
.is-stat-icon {
  height: 34px;
  width: 34px;
  flex-shrink: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 18px;
}
.is-blue {
  background: #e4f0ff;
  color: #1680fa;
}
.is-green {
  background: #dcf8eb;
  color: #079b6c;
}
.is-red {
  background: #ffe9eb;
  color: #ff344b;
}
.is-orange {
  background: #fff0d7;
  color: #ff9c13;
}
.is-purple {
  background: #f0e7ff;
  color: #8950e9;
}
.is-number {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.1;
  color: #102b67;
}
.is-label {
  font-size: 12px;
  color: #63779d;
  margin-top: 3px;
}
.is-main {
  display: grid;
  grid-template-columns: minmax(0, 3.2fr) minmax(205px, 1fr);
  gap: 7px;
  align-items: start;
}
.is-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 6px 8px;
  border-bottom: 1px solid #e5edf7;
}
.is-toolbar-left,
.is-toolbar-right {
  display: flex;
  align-items: center;
  gap: 4px;
}
.is-small-btn {
  height: 24px;
  min-width: 27px;
  padding: 0 7px;
  background: #fff;
  border: 1px solid #dce5f1;
  border-radius: 4px;
  color: #415b89;
  font-size: 12px;
}
.is-small-btn.active {
  background: #0ca678;
  color: #fff;
  border-color: #0ca678;
}
.is-range {
  font-size: 12px;
  font-weight: 700;
  margin-left: 5px;
  white-space: nowrap;
}
.is-view {
  display: flex;
  border: 1px solid #dce5f1;
  border-radius: 4px;
  overflow: hidden;
}
.is-view button {
  height: 23px;
  padding: 0 10px;
  border: 0;
  border-right: 1px solid #e1e9f4;
  background: #fff;
  color: #4b6085;
  font-size: 12px;
}
.is-view button:last-child {
  border: 0;
}
.is-view button.active {
  background: #0ca678;
  color: white;
}
.is-calendar-scroll {
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: #b9c9dd #edf2f8;
}
.is-calendar-scroll::-webkit-scrollbar {
  height: 5px;
}
.is-calendar-scroll::-webkit-scrollbar-thumb {
  background: #b9c9dd;
  border-radius: 8px;
}
.is-week-head,
.is-all-day,
.is-timeline {
  display: grid;
  grid-template-columns: 100px repeat(7, minmax(0, 1fr));
  min-width: 1100px;
}
.is-week-head {
  border-bottom: 1px solid #e4edf7;
}
.is-week-head > div:first-child {
  position: sticky;
  left: 0;
  z-index: 10;
  background: #fff;
}
.is-week-head > div {
  text-align: center;
  padding: 10px 20px;
  border-right: 1px solid #e9eff7;
  font-size: 12px;
}
.is-week-head strong {
  display: block;
  font-size: 12px;
}
.is-week-head small {
  display: block;
  font-size: 12px;
  color: #7285a8;
  margin-top: 2px;
}
.is-week-head .is-today {
  background: #e8f9f1;
  color: #079568;
}
.is-all-day {
  min-height: 30px;
  border-bottom: 1px solid #e4edf7;
}
.is-all-day > div {
  padding: 13px 3px;
  border-right: 1px solid #edf1f7;
  font-size: 12px;
}
.is-all-day > div:first-child {
  text-align: center;
  white-space: nowrap;
  color: #526b96;
  position: sticky;
  left: 0;
  z-index: 10;
  background: #fff;
}
.is-pill {
  display: block;
  border-radius: 3px;
  padding: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 12px;
}
.is-pill-red {
  background: #ffe7e9;
  color: #ed3348;
}
.is-pill-purple {
  background: #eee2ff;
  color: #7134d7;
}
.is-pill-orange {
  background: #fff0d8;
  color: #c97700;
}

.is-times {
  display: grid;
  grid-template-rows: repeat(8, 54px);
  border-right: 1px solid #e5edf7;
  position: sticky;
  left: 0;
  z-index: 10;
  background: #fff;
}

.is-times div {
  padding: 20px;
  text-align: center;
  font-size: 12px;
  color: #657ca4;
  border-bottom: 1px solid #e9eff7;
  white-space: nowrap;
}
.is-lane {
  position: relative;
  border-right: 1px solid #e9eff7;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 53px,
    #e8eef7 53px,
    #e8eef7 54px
  );
}
.is-lane:last-child {
  border-right: 0;
}
.is-lane.today {
  background-color: #effbf5;
}
.is-event {
  position: absolute;
  left: 3px;
  right: 3px;
  padding: 4px 4px 3px 5px;
  border: 1px solid #d7e6f7;
  border-left: 2px solid var(--c);
  border-radius: 3px;
  background: var(--bg);
  color: #1d3b6c;
  overflow: hidden;
  cursor: pointer;
}
.is-event:hover {
  z-index: 3;
  box-shadow: 0 2px 8px #173b651a;
}
.is-event-title {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
}
.is-event-type {
  font-size: 12px;
  line-height: 1.35;
  margin-top: 1px;
}
.is-event-meta {
  font-size: 7px;
  line-height: 1.3;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.is-event-more {
  position: absolute;
  right: 2px;
  top: 2px;
  font-size: 12px;
  color: #526a92;
}
.ev-blue {
  --c: #1685ff;
  --bg: #eaf4ff;
}
.ev-orange {
  --c: #ff9f0a;
  --bg: #fff4df;
}
.ev-green {
  --c: #09ad7a;
  --bg: #e3f9ef;
}
.ev-purple {
  --c: #9255f5;
  --bg: #f0e8ff;
}
.ev-red {
  --c: #f43f50;
  --bg: #ffe9eb;
}
.ev-slate {
  --c: #7185ad;
  --bg: #edf2fa;
}
.is-event.is-hidden {
  display: none;
}
.is-empty {
  display: none;
  padding: 25px;
  text-align: center;
  color: #8292ad;
}
.is-side {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}
.is-mini,
.is-day,
.is-legend {
  padding: 9px;
}
.is-side-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 5px;
  margin-bottom: 9px;
  font-size: 12px;
  font-weight: 700;
  color: #17356f;
}
.is-side-title small {
  font-size: 12px;
  color: #6680a8;
  font-weight: 400;
  white-space: nowrap;
}
.is-month-nav {
  display: flex;
  gap: 9px;
  color: #3572db;
}
.is-month-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 2px;
  text-align: center;
}
.is-month-grid span {
  height: 23px;
  width: 23px;
  display: grid;
  place-items: center;
  font-size: 12px;
  color: #405a8a;
  border-radius: 4px;
}
.is-month-grid .weekday {
  height: 15px;
  color: #788bad;
}
.is-month-grid .muted {
  color: #b7c1d3;
}
.is-month-grid .selected {
  background: #187cf5;
  color: #fff;
  border-radius: 50%;
}
.is-month-grid .range {
  background: #e8f2ff;
  color: #1264d5;
}
.is-agenda-item {
  display: grid;
  grid-template-columns: 64px 14px minmax(0, 1fr) auto;
  gap: 5px;
  align-items: start;
  padding: 7px 0;
  border-bottom: 1px solid #edf1f7;
}
.is-agenda-item:last-of-type {
  border-bottom: 0;
}
.is-agenda-time {
  font-size: 12px;
  line-height: 1.6;
  color: #6078a2;
}
.is-symbol {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12px;
  margin-top: 2px;
}
.is-agenda-name {
  font-size: 12px;
  font-weight: 700;
  color: #1d3a71;
}
.is-agenda-desc {
  font-size: 12px;
  color: #6c80a3;
  margin-top: 2px;
  line-height: 1.4;
}
.is-status {
  padding: 3px 5px;
  border-radius: 3px;
  font-size: 12px;
  white-space: nowrap;
}
.status-green {
  background: #d9f7e9;
  color: #07895f;
}
.status-blue {
  background: #e0efff;
  color: #126fd3;
}
.status-orange {
  background: #fff0d3;
  color: #b96b00;
}
.is-side-link {
  display: block;
  text-align: right;
  color: #1676e8;
  text-decoration: none;
  font-size: 12px;
  padding-top: 8px;
}
.is-legend-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px 5px;
}
.is-legend-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: #4b628b;
  white-space: nowrap;
}
.is-dot {
  height: 9px;
  width: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}
.icp-table {
  border: 1px solid #dee2e6;
  border-collapse: collapse;
  width: 100%;
}

.icp-table th,
.icp-table td {
  border: 1px solid #dee2e6;
  padding: 12px 14px;
}

.icp-table thead th {
  border-bottom: 2px solid #dee2e6;
}

.icp-card {
  border-radius: 12px;
}

.icp-stat-icon {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 21px;
}

.icp-progress-wrap {
  width: 100%;
  max-width: 240px;
}

.icp-progress-wrap .progress {
  height: 7px;
  border-radius: 20px;
}

.icp-tabs {
  scrollbar-width: thin;
}

.icp-tabs .nav-link {
  border: 1px solid var(--bs-border-color);
  color: var(--bs-secondary-color);
  background: var(--bs-body-bg);
  border-radius: 8px;
  padding: 9px 15px;
  font-size: 14px;
}

.icp-tabs .nav-link.active {
  color: #fff;
  background: #007a4d;
  border-color: #0a9f6e;
}

.icp-table-wrap {
  width: 100%;
  overflow-x: auto;
  scrollbar-width: thin;
}

.icp-table {
  min-width: 1120px;
}

.icp-table th {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  white-space: nowrap;
  padding: 14px 12px;
}

.icp-table td {
  padding: 14px 12px;
  font-size: 14px;
}
.icp-table-wrap .badge {
  font-size: 14px;
}
.icp-item-name {
  min-width: 165px;
  font-weight: 600;
}

.icp-item-notes {
  min-width: 140px;
  max-width: 210px;
  white-space: normal;
  overflow-wrap: anywhere;
}

.icp-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 30px;
  padding: 5px 9px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.icp-status-completed {
  color: var(--bs-success-text-emphasis);
  background: var(--bs-success-bg-subtle);
}

.icp-status-pending {
  color: var(--bs-warning-text-emphasis);
  background: var(--bs-warning-bg-subtle);
}

.icp-status-issue {
  color: var(--bs-danger-text-emphasis);
  background: var(--bs-danger-bg-subtle);
}

.icp-action-btn {
  width: 31px;
  height: 31px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 0;
}

.icp-image-btn {
  flex: 0 0 auto;
  border-radius: 6px;
  overflow: hidden;
  background: var(--bs-tertiary-bg);
}

.icp-table-image {
  width: 48px;
  height: 42px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--bs-border-color);
  display: block;
  transition: transform 0.2s ease;
}

.icp-image-btn:hover .icp-table-image {
  transform: scale(1.06);
}

.icp-no-images {
  font-size: 12px;
  white-space: nowrap;
}

.icp-preview-image {
  max-height: 70vh;
  object-fit: contain;
}

.icp-form-image {
  position: relative;
  width: 78px;
  height: 70px;
}

.icp-form-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 7px;
  border: 1px solid var(--bs-border-color);
}

.icp-form-image button {
  position: absolute;
  top: -7px;
  right: -7px;
  width: 23px;
  height: 23px;
  padding: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* inpector css */
/* Inspection tab only */
.pd-inspection {
  color: #172d69;
  font-size: 12px;
  font-family: Arial, sans-serif;
  background: #f5f9fe;
  padding: 8px !important;
}

.pd-inspection * {
  box-sizing: border-box;
}

.pd-inspection button,
.pd-inspection label {
  -webkit-tap-highlight-color: transparent;
}

.pd-inspection-steps {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #fff;
  border: 1px solid #e7edf6;
  border-radius: 6px;
  padding: 10px 16px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.pd-inspection-step {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1 0 145px;
  position: relative;
  color: #6d7eaa;
  min-width: 0;
}

.pd-inspection-step:not(:last-child)::after {
  content: "";
  height: 1px;
  background: #dfe7f3;
  flex: 1;
  min-width: 12px;
  margin: 0 5px;
}

.pd-inspection-step > span {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #edf1f8;
  color: #253d79;
  font-size: 14px;
  font-weight: 700;
}

.pd-inspection-step.active > span {
  color: #fff;
  background: #079d6c;
  box-shadow: 0 0 0 4px #e1f6ee;
}

.pd-inspection-step.active strong {
  color: #079d6c;
}

.pd-inspection-step strong {
  display: block;
  font-size: 11px;
  white-space: nowrap;
}

.pd-inspection-step small {
  display: block;
  font-size: 10px;
  margin-top: 2px;
  white-space: nowrap;
}

.pd-inspection-sidebar,
.pd-inspection-main,
.pd-inspection-right-card {
  background: #fff;
  border: 1px solid #e7edf6;
  border-radius: 6px;
}

.pd-inspection-sidebar {
  padding: 12px 9px;
  height: 100%;
}

.pd-inspection-sidebar h6,
.pd-inspection-right-card h6 {
  font-size: 12px;
  font-weight: 700;
  margin: 0 0 12px;
  color: #152b72;
}

.pd-inspection-sidebar h6 i {
  margin-right: 6px;
}

.pd-inspection-group-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  border: 0;
  width: 100%;
  background: transparent;
  color: #183b88;
  padding: 8px 3px;
  text-align: left;
  font-weight: 700;
  font-size: 11px;
}

.pd-inspection-group-title > span:first-child {
  display: flex;
  align-items: center;
  gap: 6px;
}

.pd-inspection-group-title > span:first-child i {
  color: #f8a700;
  font-size: 15px;
}

.pd-inspection-group-title > span:last-child {
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.pd-inspection-group-title small {
  font-size: 9px;
  color: #677ba8;
}

.pd-inspection-nav {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #334a85;
  text-align: left;
  padding: 7px 5px;
  margin: 1px 0;
  font-size: 10.5px;
  line-height: 1.3;
}

.pd-inspection-nav:hover {
  background: #f1f6fc;
}

.pd-inspection-nav.active {
  background: #e3f7f1;
  color: #087d5c;
}

.pd-inspection-status {
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  border-radius: 50%;
  border: 1px solid #d4ddeb;
  display: grid;
  place-items: center;
  font-size: 9px;
}

.pd-inspection-status.done {
  background: #079f6c;
  color: white;
  border-color: #079f6c;
}

.pd-inspection-status.issue {
  background: #ff3451;
  color: white;
  border-color: #ff3451;
}

.pd-inspection-status.number {
  color: #63779f;
}

.pd-inspection-main {
  padding: 13px;
  min-width: 0;
}

.pd-inspection-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.pd-inspection-heading h5 {
  color: #142b76;
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 10px;
  line-height: 1.6;
}

.pd-inspection-heading p {
  font-size: 10.5px;
  color: #7180a3;
  margin: 0;
  line-height: 1.6;
}

.pd-inspection-completed {
  display: inline-block;
  vertical-align: middle;
  background: #d9f7ec;
  color: #07966a;
  padding: 4px 9px;
  border-radius: 20px;
  font-size: 9px;
  margin-left: 7px;
  white-space: nowrap;
}

.pd-inspection-navigation {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.pd-inspection-prev,
.pd-inspection-next {
  border-radius: 4px;
  padding: 7px 12px;
  font-size: 10px;
  white-space: nowrap;
}

.pd-inspection-prev {
  background: #fff;
  color: #7180a3;
  border: 1px solid #e1e9f4;
}

.pd-inspection-prev:disabled {
  opacity: 0.55;
}

.pd-inspection-next {
  background: #079d6b;
  color: #fff;
  border: 1px solid #079d6b;
}

.pd-inspection-next:hover {
  background: #07845c;
  color: #fff;
}

.pd-inspection-info {
  display: flex;
  gap: 10px;
  background: #eaf4ff;
  border-radius: 5px;
  padding: 12px;
  color: #344d84;
  margin-bottom: 13px;
  font-size: 10.5px;
  line-height: 1.6;
}

.pd-inspection-info > i {
  color: #1683f5;
  font-size: 16px;
}

.pd-inspection-info strong {
  color: #24427f;
}

.pd-inspection-info ul {
  padding-left: 15px;
  margin: 2px 0 0;
}

.pd-inspection-label {
  color: #152c74;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 8px;
}

.pd-inspection-label > span {
  color: #f04452;
}

.pd-inspection-responses {
  display: grid;
  grid-template-columns: 1fr 1.2fr 0.9fr;
  gap: 7px;
}

.pd-inspection-response {
  display: flex;
  align-items: center;
  gap: 7px;
  border: 1px solid #e1e8f1;
  border-radius: 5px;
  padding: 10px 8px;
  color: #334777;
  font-size: 10px;
  cursor: pointer;
  min-width: 0;
}

.pd-inspection-response input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.pd-inspection-response i {
  color: #f5ac00;
  font-size: 15px;
}

.pd-inspection-response:first-child i {
  color: #08a678;
}

.pd-inspection-response:last-child i {
  color: #ff3f56;
}

.pd-inspection-response.selected {
  background: #e6f8f2;
  border-color: #a4e9d5;
}

.pd-inspection-editor {
  border: 1px solid #e0e8f3;
  border-radius: 5px;
  overflow: hidden;
}

.pd-inspection-toolbar {
  display: flex;
  gap: 3px;
  align-items: center;
  padding: 6px 8px;
  border-bottom: 1px solid #edf1f6;
}

.pd-inspection-toolbar button {
  border: 0;
  background: transparent;
  padding: 3px 5px;
  color: #43516c;
  font-size: 11px;
}

.pd-inspection-toolbar button:hover {
  background: #eef4fc;
}

.pd-inspection-notes {
  min-height: 47px;
  max-height: 130px;
  overflow-y: auto;
  padding: 9px 10px;
  outline: none;
  color: #7180a2;
  font-size: 10.5px;
  line-height: 1.6;
}

.pd-inspection-notes:empty::before {
  content: attr(data-placeholder);
  color: #9ba8bd;
}

.pd-inspection-char-count {
  text-align: right;
  color: #7483a8;
  font-size: 10px;
  margin: 4px 0 12px;
}

.pd-inspection-section-heading {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.pd-inspection-section-heading strong {
  font-size: 11px;
  color: #152b72;
}

.pd-inspection-section-heading strong i {
  font-size: 14px;
  margin-right: 5px;
}

.pd-inspection-section-heading strong .text-danger {
  font-size: 10px;
}

.pd-inspection-section-heading > small {
  color: #7382a3;
  font-size: 9px;
}

.pd-inspection-upload-btn {
  padding: 7px 10px;
  background: #eaf4ff;
  color: #1674dc;
  border: 0;
  border-radius: 4px;
  font-size: 10px;
  cursor: pointer;
}

.pd-inspection-upload-btn:hover {
  background: #d9eaff;
  color: #105eb5;
}

.pd-inspection-photos {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
}

.pd-inspection-photo {
  height: 100px;
  min-width: 0;
  position: relative;
  overflow: hidden;
  border-radius: 5px;
  background: #edf2f8;
}

.pd-inspection-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pd-inspection-photo > span {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 5px;
  color: #fff;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  font-size: 9px;
  padding-top: 18px;
}

.pd-inspection-remove-photo {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 4px;
  background: rgba(20, 30, 45, 0.8);
  color: white;
  font-size: 10px;
}

.pd-inspection-add-photo {
  height: 100px;
  border: 1px dashed #b9cbe7;
  border-radius: 5px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #7184ad;
  cursor: pointer;
  text-align: center;
  font-size: 10px;
}

.pd-inspection-add-photo i {
  font-size: 23px;
}

.pd-inspection-add-photo:hover {
  background: #f5f9ff;
  border-color: #5b9bed;
}

.pd-inspection-documents {
  border: 1px solid #e2eaf4;
  border-radius: 5px;
  overflow: hidden;
}

.pd-inspection-document {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  min-width: 0;
  font-size: 10px;
}

.pd-inspection-document + .pd-inspection-document {
  border-top: 1px solid #e8edf5;
}

.pd-inspection-document > i {
  color: #ed3434;
  font-size: 21px;
}

.pd-inspection-document > span {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
  color: #263b78;
}

.pd-inspection-document > small {
  color: #7786a5;
  font-size: 9px;
}

.pd-inspection-document > button {
  border: 0;
  background: transparent;
  color: #697c9e;
  padding: 3px;
}

.pd-inspection-footer {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.pd-inspection-footer .btn {
  font-size: 10px;
  padding: 8px 12px;
}

.pd-inspection-right-card {
  padding: 12px;
  margin-bottom: 10px;
}

.pd-inspection-right-card h6 {
  margin-bottom: 12px;
}

.pd-inspection-progress-text {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  margin-bottom: 6px;
}

.pd-inspection-progress-text strong {
  color: #253d7d;
}

.pd-inspection-progress {
  height: 9px;
  background: #e8edf5;
  border-radius: 20px;
}

.pd-inspection-progress .progress-bar {
  background: #0aa477;
  border-radius: 20px;
}

.pd-inspection-tips {
  background: #eaf4ff;
  border-color: #eaf4ff;
}

.pd-inspection-tips h6 i {
  color: #f5ae00;
  margin-right: 6px;
}

.pd-inspection-tips p {
  color: #7180a2;
  font-size: 10px;
  line-height: 1.7;
  margin: 0;
}

.pd-inspection-example-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
}

.pd-inspection-example-grid img {
  width: 100%;
  height: 60px;
  object-fit: cover;
  border-radius: 4px;
  display: block;
}

.pd-inspection-example-grid small {
  display: block;
  text-align: center;
  color: #5c6e96;
  font-size: 8px;
  margin-top: 5px;
  overflow-wrap: anywhere;
}

.pd-inspection-right-card h6 small {
  font-size: 9px;
  font-weight: 400;
}

.pd-inspection-previous-note {
  background: #edf6ff;
  border-radius: 4px;
  padding: 9px;
}

.pd-inspection-previous-note small {
  font-size: 9px;
  color: #6981ad;
}

.pd-inspection-previous-note p {
  font-size: 10px;
  color: #7180a2;
  line-height: 1.6;
  margin: 7px 0 0;
}

/*  */

/*Responaive  */

@media (max-width: 1199.98px) {
  .pd-inspection-heading {
    flex-wrap: wrap;
  }

  .pd-inspection-heading > div:first-child {
    flex: 1 1 100%;
  }

  .pd-inspection-responses {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 991.98px) {
  #tab-inspection .in-report-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #scheduleInspectionModal .in-project-info {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #tab-inspection .in-photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .is-main {
    grid-template-columns: minmax(0, 1fr);
  }
  .is-side {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .is-legend {
    grid-column: 1/-1;
  }
}

@media (min-width: 992px) {
  .turnkey-side {
    transform: none;
    visibility: visible;
  }

  .turnkey-sidebar-overlay {
    display: none;
  }
}

@media (max-width: 767px) {
  .pd-inspection {
    padding: 5px !important;
  }

  .pd-inspection-steps {
    justify-content: flex-start;
  }

  .pd-inspection-step {
    flex: 0 0 175px;
  }

  .pd-inspection-main {
    padding: 10px;
  }

  .pd-inspection-heading h5 {
    font-size: 14px;
  }

  .pd-inspection-navigation {
    width: 100%;
    justify-content: space-between;
  }

  .pd-inspection-photos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pd-inspection-photo,
  .pd-inspection-add-photo {
    height: 125px;
  }

  .pd-inspection-document {
    flex-wrap: wrap;
  }

  .pd-inspection-document > span {
    flex-basis: calc(100% - 45px);
  }

  .pd-inspection-document > small {
    margin-left: 30px;
  }

  .pd-inspection-section-heading {
    align-items: flex-start;
  }
  .turnkey-content {
    padding: 10px;
  }
  #tab-inspection .in-workspace-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  #tab-inspection .in-team-body {
    flex-wrap: wrap;
  }

  #tab-inspection .in-team-status {
    align-items: flex-start;
  }

  #tab-inspection .in-progress-info {
    width: 110px;
  }

  #tab-inspection .in-mini-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #tab-inspection .in-results-row > .progress {
    flex-basis: 100%;
  }

  #tab-inspection .in-timeline-item {
    grid-template-columns: 64px 26px minmax(0, 1fr);
    gap: 7px;
  }

  #tab-inspection .in-timeline-marker {
    width: 26px;
    height: 26px;
    font-size: 11px;
  }

  #tab-inspection .in-timeline-marker::after {
    top: 26px;
    left: 12px;
  }

  #tab-inspection .in-timeline-date {
    font-size: 12px;
  }

  #tab-inspection .in-note-card {
    gap: 8px;
    padding: 10px;
  }

  #tab-inspection .in-note-top {
    gap: 7px;
  }

  #tab-inspection .in-filter {
    flex: 1 1 125px;
  }

  #scheduleInspectionModal .in-modal-header,
  #scheduleInspectionModal .in-modal-body {
    padding: 12px;
  }

  #scheduleInspectionModal .in-modal-footer {
    padding: 10px 12px;
  }

  #tab-assignment .ta-assigned-body {
    flex-wrap: wrap;
    gap: 9px;
  }

  #tab-assignment .ta-member-info {
    flex: 1 1 calc(100% - 60px);
  }

  #tab-assignment .ta-assigned-meta {
    width: 100%;
    padding-left: 55px;
    align-items: flex-start;
  }

  #tab-assignment .ta-assigned-meta small {
    text-align: left;
  }

  #tab-assignment .ta-history .table {
    min-width: 560px;
  }

  .turnkey-side {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 240px;
    max-width: 85vw;
    height: 100vh;
    overflow-y: auto;
    z-index: 1050;
    transform: translateX(-100%);
    transition:
      transform 0.3s ease,
      visibility 0.3s ease;
  }

  .turnkey-side.active {
    transform: translateX(0);
    visibility: visible;
  }

  /* Overlay appears only when sidebar opens */
  .turnkey-sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .ip-page {
    padding: 7px;
  }

  .ip-filter-bar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 7px;
  }

  .ip-search {
    grid-column: 1 / -1;
    width: 100%;
    min-width: 0;
  }
  .ip-control {
    flex: 1 1 140px;
  }

  .ip-date input {
    width: 100%;
  }

  .ip-tabs .nav-link {
    padding: 10px 9px;
  }

  .ip-stat {
    min-height: 62px;
    padding: 7px;
    gap: 7px;
  }

  .ip-stat-icon {
    width: 29px;
    height: 29px;
    font-size: 15px;
  }

  .ip-stat-value {
    font-size: 16px;
  }
  .is-filters {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .is-date-range input {
    width: 100%;
  }
  .is-week-head,
  .is-all-day,
  .is-timeline {
    width: 1100px;
  }
}
@media (max-width: 567px) {
  ._ad_fonts{
    font-size: 14px;
  }
  .turnkey-loginbox{
    padding: 20px;
  }
  #tab-inspection .in-inner-content {
    padding: 0 7px 8px;
  }

  #tab-inspection .in-team-heading {
    align-items: flex-start;
  }

  #tab-inspection .in-team-heading p {
    max-width: 220px;
  }

  #tab-inspection .in-team-body {
    gap: 8px;
  }

  #tab-inspection .in-team-status {
    width: 100%;
    padding-left: 51px;
  }

  #tab-inspection .in-report-meta {
    grid-template-columns: 1fr 1fr;
  }

  #tab-inspection .in-photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    padding: 7px;
  }

  #tab-inspection .in-photo-placeholder {
    height: 85px;
  }

  #tab-inspection .in-system-options {
    grid-template-columns: 1fr;
  }

  #scheduleInspectionModal .in-project-info {
    grid-template-columns: 1fr;
  }

  #tab-inspection .in-subpage-heading {
    gap: 10px;
  }

  #tab-inspection .in-timeline-item {
    grid-template-columns: 53px 23px minmax(0, 1fr);
    gap: 5px;
  }

  #tab-inspection .in-timeline-marker {
    width: 23px;
    height: 23px;
  }

  #tab-inspection .in-timeline-marker::after {
    top: 23px;
    left: 10px;
  }

  .show-details-page .pd-page .pd-type-tile-multi {
    height: 50px;
    width: 50px;
  }

  .show-details-page h4 {
    font-size: 16px;
  }

  .show-details-page .pd-page .pd-pill-types {
    gap: 10px;
  }

  .show-details-page .pd-page .pd-pill-type-sep {
    display: none;
  }

  .show-details-page .pd-chip {
    margin-bottom: 5px;
  }

  .show-details-page .top-content {
    flex-direction: column;
    width: 100%;
  }

  .show-details-page .top-content .form-control {
    width: 100% !important;
  }

  .turnkey-card .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin !important;
    scrollbar-color: #adb5bd transparent;
  }

  .show-details-page .turnkey-card .table-responsive .table {
    width: 960px;
  }

  .table-responsive {
    scrollbar-width: thin !important;
  }
  .is-wrap {
    padding: 7px;
  }
  .is-filter {
    flex: 1 1 29%;
    min-width: 0;
  }
  .is-date-range {
    flex: 1 1 58%;
    justify-content: center;
    font-size: 12px;
  }
  .is-filter-spacer {
    display: none;
  }
  .is-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }
  .is-stat {
    min-height: 51px;
    padding: 7px;
  }
  .is-stat:last-child {
    grid-column: span 2;
  }
  .is-toolbar {
    align-items: flex-start;
  }
  .is-toolbar-left {
    flex-wrap: wrap;
  }
  .is-side {
    grid-template-columns: 1fr;
  }
  .is-legend {
    grid-column: auto;
  }
  .is-month-grid span {
    height: 25px;
    font-size: 12px;
  }
  .is-agenda-item {
    grid-template-columns: 49px 16px minmax(0, 1fr) auto;
  }
  .is-agenda-name {
    font-size: 12px;
  }
  .is-agenda-desc,
  .is-agenda-time {
    font-size: 12px;
  }
  .icp-page {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }

  .icp-page .card-body {
    padding: 14px !important;
  }

  .icp-page h4 {
    font-size: 20px;
  }

  .icp-stat-icon {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
    font-size: 18px;
  }

  .icp-stat-icon + div h4 {
    font-size: 20px;
  }

  .icp-progress-wrap {
    max-width: none;
  }

  .icp-tabs .nav-link {
    padding: 8px 12px;
    font-size: 12px;
  }
}

@media (max-width: 400px) {
  .pd-inspection-photos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pd-inspection-step {
    flex-basis: 160px;
  }

  .pd-inspection-footer {
    flex-wrap: wrap;
  }
  .ip-stat {
    align-items: flex-start;
    flex-direction: column;
  }

  .ip-stat-icon {
    width: 27px;
    height: 27px;
  }

  .ip-stat-value {
    font-size: 15px;
  }
}

.pearl-chat {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 99999;
}
.pearl-chat__fab {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: none;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  overflow: hidden;
  padding: 0;
}
.pearl-chat__icon {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pearl-chat__panel {
  display: none;
  position: absolute;
  right: 0;
  bottom: 80px;
  width: 380px;
  height: 500px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #e5e7eb;
}
.pearl-chat.is-open .pearl-chat__panel {
  display: flex;
}
.pearl-chat__header {
  padding: 12px 16px;
  border-bottom: 1px solid #e5e7eb;
  background: #f9fafb;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.pearl-chat__title {
  font-size: 15px;
  font-weight: 700;
  margin: 0;
  color: #111827;
}
.pearl-chat__status-pill {
  font-size: 11px;
  background: #dcfce7;
  color: #15803d;
  padding: 2px 8px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
}
.pearl-chat__status-dot {
  width: 6px;
  height: 6px;
  background: #22c55e;
  border-radius: 50%;
}
.pearl-chat__messages {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  background: #f3f4f6;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pearl-chat__message-row {
  display: flex;
  width: 100%;
}
.pearl-chat__message-row.is-user {
  justify-content: flex-end;
}
.pearl-chat__bubble {
  max-width: 80%;
  padding: 10px 14px;
  font-size: 13px;
  line-height: 1.5;
  border-radius: 12px;
}
.is-user .pearl-chat__bubble {
  background: #059669;
  color: #fff;
  border-bottom-right-radius: 4px;
}
.is-assistant .pearl-chat__bubble {
  background: #fff;
  color: #111827;
  border: 1px solid #e5e7eb;
  border-bottom-left-radius: 4px;
}
.pearl-chat__typing {
  display: flex;
  gap: 4px;
  align-items: center;
  min-height: 40px;
}
.pearl-chat__typing span {
  width: 6px;
  height: 6px;
  background: #9ca3af;
  border-radius: 50%;
  animation: typing 1s infinite;
}
.pearl-chat__typing span:nth-child(2) {
  animation-delay: 0.2s;
}
.pearl-chat__typing span:nth-child(3) {
  animation-delay: 0.4s;
}
@keyframes typing {
  0%,
  100% {
    opacity: 0.3;
    transform: translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateY(-3px);
  }
}
.pearl-chat__text-dock {
  padding: 12px;
  background: #fff;
  border-top: 1px solid #e5e7eb;
}
.pearl-chat__composer {
  display: flex;
  gap: 8px;
  margin: 0;
}
.pearl-chat__footer-note {
  font-size: 10px;
  text-align: center;
  color: #9ca3af;
  margin: 0;
  padding-bottom: 8px;
  background: #fff;
}
@media (max-width: 480px) {
  .pearl-chat__panel {
    width: calc(100vw - 32px);
    height: 70vh;
    bottom: 80px;
    right: 0;
  }
}

#viewLeadModalBody a{
 overflow-wrap: anywhere;
}

#addSalesAccountModal {
  z-index: 999999;
}
.calender-wrap .form-select{
  width: 151px !important;
  font-size: 12px;
}

button.turnkey-link.bg-transparent:hover {
  background: #e8f8f1 !important;
    color: #007a4d !important;
}

/* inspection css */
@media (max-width: 1300px) and (min-width: 1200px) {
  .insp-dash .col-xl-3 .insp-card {
    overflow-y: auto !important;
    height: 345px !important;
  }
}
