.zcdo-login-logo {
  max-height: 38px;
  width: auto;
}

.app-navbar-brand .navbar-brand-logo img {
  max-height: 36px;
}

.app-side-brands .navbar-brand-text {
  letter-spacing: 0;
}

.side-menubar .menu-link i,
.app-navbar-tabs .menu-link i {
  font-size: 1.1rem;
}

.app-navbar-tabs .menu-link.active,
.side-menubar .menu-link.active {
  color: var(--bs-primary);
}

.app-wrapper .table code {
  color: var(--bs-primary);
}

.zcdo-org-list {
  display: grid;
  gap: 12px;
}

.zcdo-org-item {
  border: 1px solid var(--bs-border-color);
  border-radius: 8px;
  padding: 14px;
  background: var(--bs-body-bg);
}

.zcdo-org-item .form-label {
  font-size: 0.75rem;
  color: var(--bs-secondary-color);
}

.zcdo-iso-list th,
.zcdo-iso-list td {
  vertical-align: top;
}

.zcdo-doc-title {
  max-width: 520px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.zcdo-document-preview {
  border: 1px solid var(--bs-border-color);
  border-radius: 8px;
  overflow: hidden;
  background: var(--bs-tertiary-bg);
}

.zcdo-document-preview iframe,
.zcdo-document-preview video {
  display: block;
  width: 100%;
  height: min(72vh, 760px);
  border: 0;
}

.zcdo-document-preview img {
  display: block;
  max-width: 100%;
  max-height: 72vh;
  margin: 0 auto;
}

.zcdo-document-text {
  border: 1px solid var(--bs-border-color);
  border-radius: 8px;
  padding: 16px;
  max-height: 520px;
  overflow: auto;
  background: var(--bs-tertiary-bg);
  line-height: 1.6;
}

.zcdo-detail-list {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 10px 14px;
  margin-bottom: 0;
}

.zcdo-detail-list dt {
  color: var(--bs-secondary-color);
  font-weight: 600;
}

.zcdo-detail-list dd {
  margin-bottom: 0;
}

.zcdo-document-side {
  display: grid;
  gap: 12px;
}

.zcdo-document-side .card {
  margin-bottom: 0;
}

.zcdo-document-side .card-body {
  padding: 16px;
}

.zcdo-document-side .card-header {
  padding: 14px 16px;
}

.zcdo-document-side .form-label {
  margin-bottom: 4px;
}

.zcdo-document-side .row {
  --bs-gutter-y: 10px;
}

.zcdo-employee-table th,
.zcdo-employee-table td {
  vertical-align: middle;
}

.zcdo-employee-avatar-button {
  display: inline-flex;
  border-radius: 50% !important;
  line-height: 0;
}

.zcdo-employee-avatar {
  aspect-ratio: 1;
  border-radius: 50% !important;
}

.zcdo-employee-avatar img {
  border-radius: inherit;
}

.zcdo-employee-form h6 {
  padding-bottom: 8px;
  border-bottom: 1px solid var(--bs-border-color);
}

.zcdo-inline-panel {
  border: 1px solid var(--bs-border-color);
  border-radius: 8px;
  padding: 16px;
  height: 100%;
  background: var(--bs-body-bg);
}

.zcdo-timeline {
  display: grid;
  gap: 12px;
}

.zcdo-timeline-item {
  border-left: 3px solid var(--bs-primary);
  padding: 10px 14px;
  background: var(--bs-tertiary-bg);
  border-radius: 0 8px 8px 0;
}

.zcdo-candidate-form {
  min-width: 620px;
}

.zcdo-week-table {
  min-width: 1320px;
}

.zcdo-week-table th,
.zcdo-week-table td {
  vertical-align: top;
}

.zcdo-week-employee {
  width: 220px;
  min-width: 220px;
  background: var(--bs-body-bg);
}

.zcdo-week-cell {
  width: 156px;
  min-width: 156px;
}

.zcdo-week-shift {
  border-left: 4px solid var(--bs-primary);
  border-radius: 8px;
  padding: 8px;
  background: var(--bs-tertiary-bg);
  min-height: 86px;
}

.zcdo-week-edit {
  display: grid;
  gap: 6px;
  margin-top: 8px;
}

.zcdo-employee-profile-hero {
  box-shadow: 0 14px 38px rgba(31, 42, 68, 0.08);
}

.zcdo-employee-profile-cover {
  position: relative;
  height: 170px;
  overflow: hidden;
  background:
    radial-gradient(circle at 14% 22%, rgba(255, 255, 255, 0.9) 0 7%, transparent 7.5%),
    linear-gradient(115deg, #edf8ff 0%, #dfeaff 45%, #ece7ff 100%);
}

.zcdo-employee-profile-cover::before,
.zcdo-employee-profile-cover::after,
.zcdo-employee-profile-cover span {
  position: absolute;
  display: block;
  border-radius: 50%;
  content: "";
}

.zcdo-employee-profile-cover::before {
  width: 460px;
  height: 190px;
  right: -45px;
  bottom: -115px;
  transform: rotate(-8deg);
  background: linear-gradient(150deg, rgba(70, 115, 210, 0.35), rgba(91, 68, 181, 0.12));
}

.zcdo-employee-profile-cover::after {
  width: 360px;
  height: 145px;
  right: 230px;
  bottom: -105px;
  background: linear-gradient(150deg, rgba(111, 158, 224, 0.42), rgba(255, 255, 255, 0.18));
}

.zcdo-employee-profile-cover span:nth-child(1) {
  width: 210px;
  height: 210px;
  left: 10%;
  top: 70px;
  background: rgba(255, 255, 255, 0.3);
}

.zcdo-employee-profile-cover span:nth-child(2) {
  width: 18px;
  height: 18px;
  right: 9%;
  top: 28px;
  background: rgba(var(--bs-primary-rgb), 0.18);
}

.zcdo-employee-profile-cover span:nth-child(3) {
  width: 10px;
  height: 10px;
  right: 13%;
  top: 62px;
  background: rgba(var(--bs-primary-rgb), 0.28);
}

.zcdo-employee-profile-body {
  padding: 0 30px 30px;
}

.zcdo-employee-profile-identity {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr) auto;
  gap: 22px;
  align-items: end;
  margin-top: -72px;
}

.zcdo-employee-photo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 148px;
  height: 148px;
  padding: 6px;
  border-radius: 50%;
  background: var(--bs-body-bg);
  box-shadow: 0 8px 28px rgba(29, 50, 89, 0.18);
}

.zcdo-employee-profile-photo {
  display: grid;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  padding: 0;
  place-items: center;
  overflow: hidden;
  border: 0;
  border-radius: 50%;
  color: var(--bs-primary);
  background: var(--bs-primary-bg-subtle);
  font-size: 3.25rem;
}

.zcdo-employee-profile-photo img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: inherit;
}

.zcdo-employee-profile-heading {
  min-width: 0;
  padding-bottom: 8px;
}

.zcdo-employee-profile-heading h2 {
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: clamp(1.45rem, 2vw, 2rem);
  white-space: nowrap;
}

.zcdo-profile-file {
  color: var(--bs-secondary-color);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.025em;
}

.zcdo-employee-role {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  color: var(--bs-secondary-color);
  font-weight: 500;
}

.zcdo-employee-profile-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  padding-bottom: 8px;
}

.zcdo-employee-quick-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.zcdo-employee-quick-item {
  display: flex;
  min-width: 0;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--bs-border-color);
  border-radius: 12px;
  background: var(--bs-tertiary-bg);
}

.zcdo-employee-quick-item > div {
  min-width: 0;
}

.zcdo-employee-quick-item small,
.zcdo-employee-quick-item strong,
.zcdo-employee-quick-item .text-warning {
  display: block;
}

.zcdo-employee-quick-item small {
  margin-bottom: 2px;
  color: var(--bs-secondary-color);
}

.zcdo-employee-quick-item strong {
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.875rem;
  white-space: nowrap;
}

.zcdo-employee-quick-item .text-warning {
  margin-top: 2px;
  font-size: 0.72rem;
  font-weight: 600;
}

.zcdo-quick-icon {
  display: grid;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 10px;
  color: var(--bs-primary);
  background: var(--bs-primary-bg-subtle);
  font-size: 1.05rem;
}

.zcdo-employee-quick-item .progress {
  width: 100%;
  height: 5px;
  margin-top: 7px;
}

.zcdo-employee-content-card > .card-body {
  padding-top: 18px;
}

.zcdo-employee-tabs {
  gap: 6px;
  padding-bottom: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(var(--bs-primary-rgb), 0.28) transparent;
}

.zcdo-employee-tabs::-webkit-scrollbar {
  height: 4px;
}

.zcdo-employee-tabs::-webkit-scrollbar-track {
  background: transparent;
}

.zcdo-employee-tabs::-webkit-scrollbar-thumb {
  border-radius: 99px;
  background: rgba(var(--bs-primary-rgb), 0.28);
}

.zcdo-employee-tabs .nav-item {
  flex: 0 0 auto;
}

.zcdo-employee-tabs .nav-link {
  border: 1px solid transparent;
  border-radius: 9px;
  color: var(--bs-secondary-color);
  font-size: 0.84rem;
  font-weight: 600;
  white-space: nowrap;
}

.zcdo-employee-tabs .nav-link:hover {
  color: var(--bs-primary);
  background: var(--bs-primary-bg-subtle);
}

.zcdo-employee-tabs .nav-link.active {
  border-color: rgba(var(--bs-primary-rgb), 0.12);
  color: var(--bs-primary);
  background: var(--bs-primary-bg-subtle);
}

.zcdo-profile-summary-card {
  border-top: 3px solid var(--bs-primary);
}

.zcdo-training-kpi {
  border: 1px solid rgba(var(--bs-primary-rgb), 0.08);
  box-shadow: 0 8px 24px rgba(31, 42, 68, 0.04);
}

.zcdo-training-kpi .avatar {
  flex: 0 0 auto;
}

.zcdo-training-navigation {
  gap: 8px;
  overflow-x: auto;
  flex-wrap: nowrap;
}

.zcdo-training-navigation .nav-link {
  white-space: nowrap;
}

.zcdo-training-agenda,
.zcdo-training-evidence-list {
  display: grid;
  gap: 12px;
}

#training-calendar .fc-event {
  cursor: pointer;
  border-radius: 6px;
  padding: 2px 4px;
}

#session-detail {
  scroll-margin-top: 88px;
}

.zcdo-employment-summary-list {
  grid-template-columns: 140px minmax(0, 1fr) 140px minmax(0, 1fr);
  gap: 14px 18px;
}

@media (max-width: 1199.98px) {
  .zcdo-employee-profile-identity {
    grid-template-columns: 148px minmax(0, 1fr);
  }

  .zcdo-employee-profile-actions {
    grid-column: 2;
    align-items: flex-start;
    padding-bottom: 0;
  }

  .zcdo-employee-quick-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .zcdo-employee-profile-cover {
    height: 128px;
  }

  .zcdo-employee-profile-body {
    padding: 0 18px 22px;
  }

  .zcdo-employee-profile-identity {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
    margin-top: -58px;
  }

  .zcdo-employee-photo-wrap {
    width: 116px;
    height: 116px;
  }

  .zcdo-employee-profile-heading {
    width: 100%;
    padding-bottom: 0;
  }

  .zcdo-employee-profile-heading h2 {
    white-space: normal;
  }

  .zcdo-employee-profile-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  .zcdo-employee-profile-actions .btn,
  .zcdo-employee-profile-actions form,
  .zcdo-employee-profile-actions label {
    width: 100%;
  }

  .zcdo-employee-quick-grid {
    grid-template-columns: 1fr;
  }

  .zcdo-employment-summary-list {
    grid-template-columns: 115px minmax(0, 1fr);
  }
}
.zcdo-auto-card-grid > [class*="col-"] > .card {
  --bs-card-height: auto;
  height: auto;
}
.zcdo-editor-toolbar {
  align-items: center;
  background: var(--bs-body-bg);
  border-bottom: 1px solid var(--bs-border-color);
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  padding: .75rem 1rem;
  position: sticky;
  top: 0;
  z-index: 3;
}

.zcdo-editor-toolbar-separator {
  border-left: 1px solid var(--bs-border-color);
  height: 1.75rem;
  margin: 0 .2rem;
}

.zcdo-editor-canvas {
  background: #fff;
  border: 1px solid var(--bs-border-color);
  border-radius: .5rem;
  box-shadow: 0 .25rem 1rem rgba(15, 23, 42, .06);
  color: #1f2937;
  line-height: 1.6;
  margin: 0 auto;
  max-width: 900px;
  min-height: 65vh;
  outline: none;
  padding: clamp(1.25rem, 4vw, 3rem);
}

.zcdo-editor-canvas:focus {
  border-color: rgba(var(--bs-primary-rgb), .55);
  box-shadow: 0 0 0 .2rem rgba(var(--bs-primary-rgb), .1);
}

.zcdo-editor-canvas table {
  border-collapse: collapse;
  margin: 1rem 0;
  width: 100%;
}

.zcdo-editor-canvas td,
.zcdo-editor-canvas th {
  border: 1px solid #cbd5e1;
  padding: .5rem;
  vertical-align: top;
}

@media (max-width: 767.98px) {
  .zcdo-editor-toolbar { position: static; }
  .zcdo-editor-canvas { min-height: 55vh; padding: 1rem; }
}
