.no-link {
  text-decoration: none;
  color: rgba(0,0,0,.55);
}


.layout-body {
  display: flex;
  height: calc(100% - 108px)
}

.layout-body > :first-child {
  /* side bar */
  flex: none;
  height: 100%;
  background-color: #eee;
  overflow-y: auto;
}
.layout-body > :last-child {
  /* main section */
  flex: 1;
  position: relative;
  height: 100%;
  background-color: #f8f9fa;
  display: flex;
  flex-direction: column;
  overflow-x: auto;
}

.layout-tabs > li {
  border-radius: 0 !important;
  flex: 1;
}
.layout-tabs > li > a {
  display: flex;
  justify-content: center;
  gap: 12px;
  align-items: center;
  height: 56px;
  padding-top: 9px;
  border: #adb5bd 1px solid !important;
  border-radius: 0;
  border-top-left-radius: 0 !important;
  border-top-right-radius: 0 !important;
}
.layout-tab-active {
  font-weight: 600;
  background-color: #dee2e6 !important
}
.layout-section {
  flex: 1;
  overflow-y: auto;
  width: 100%;
  padding: 0 32px;
}
.layout-button-group {
  flex: none;
  padding-left: 32px;
  display: flex;
  gap: 12px;
}

.layout-action-button-group {
  flex: none;
  display: flex;
  gap: 12px;
}


.sidebar-item-1 {
  padding-bottom: 8px;
  font-size: 0.875em;
}
.sidebar-item-2 {
  padding-left: 24px;
  font-size: 0.875em;
}
.sidebar-item-3 {
  padding-left: 48px;
}
.sidebar-item-4 {
  padding-left: 72px;
}
.sidebar-item-5 {
  height: 28px;
  padding-left: 96px;
}
.sidebar-item-input {
  padding-left: 48px;
}
.sidebar-resize-width-bar {
  width: 4px;
  cursor: col-resize;
}
.sidebar-resize-width-bar:hover {
  background-color: #ced4da;
}
.sidebar-resize-height-bar {
  height: 4px;
  cursor: row-resize;
}
.sidebar-resize-height-bar:hover {
  background-color: #ced4da;
}
.list-group-item {
  padding-top: 0;
  background-color: transparent;
  border: none;
}
.has-arrow {
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center
}
.has-arrow > div {
  width: 8px;
  height: 8px;
  border-right: 2px solid #6c757d;
  border-bottom: 2px solid #6c757d;
}
.has-arrow[aria-expanded="true"] > div {
  transform: rotate(-135deg);
}
.has-arrow[aria-expanded="false"] > div {
  transform: rotate(45deg);
}

.menu-item {
  padding: 16px;
}

.btn-action {
  width: 108px;
}

.label-input-row {
  display: flex;
  gap: 16px;
  align-items: center;
  flex: 1;
}

.jobitemEditor-option-row {
  display: flex;
  gap: 12px;
  align-items: center;
}

.option-row {
  display: flex;
  gap: 12px;
  align-items: center;
}

.drag-and-drop-section {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 150px;
  border: 1px black dashed;
}
.drag-and-drop-section-container {
  width: 100%;
  height: 150px;
  border: 1px black dashed;
  padding: 12px 16px;
}
.drag-and-drop-section-container > .center-text {
  display: flex;
  width: 100%;
  height: 100%;
  justify-content: center;
  align-items: center;
}

.notification-container {
  position: absolute;
  bottom: 16px;
  right: 16px;
  z-index: 1;
}
.notification-box {
  position: relative;
  bottom: 16px;
  right: 16px;
  z-index: 1;
}

[onclick] {
  cursor: pointer;
}

.small-text {
  font-size: 14px;
}



.app-layout {
  display: flex;
  height: 100vh;
  overflow: hidden;
  position: relative;
}

.sidebar {
  width: 300px;
  height: 100vh;
  background: #ffffff;
  border-right: 1px solid #dee2e6;
  flex-shrink: 0;
  overflow-y: auto;
  overflow-x: hidden;
  transition: width 0.2s ease, transform 0.2s ease;
  z-index: 1100;
}

.sidebar-brand {
  height: 60px;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1.05rem;
  font-weight: 700;
  border-bottom: 1px solid #dee2e6;
  color: #212529;
  background: #ffffff;
  position: sticky;
  top: 0;
  z-index: 10;
}

.sidebar-title {
  white-space: nowrap;
}

.sidebar-toggle,
.mobile-sidebar-toggle,
.header-back-btn {
  border: 0;
  background: transparent;
  color: #495057;
  line-height: 1;
  padding: 0.35rem 0.5rem;
  border-radius: 0.375rem;
}

.sidebar-toggle {
  font-size: 1.25rem;
}

.mobile-sidebar-toggle {
  display: none;
  font-size: 1.35rem;
}

.header-back-btn {
  font-size: 1.1rem;
  border: 1px solid #dee2e6;
  background: #ffffff;
  width: 34px;
  height: 34px;
}

.sidebar-toggle:hover,
.mobile-sidebar-toggle:hover,
.header-back-btn:hover {
  background: #f1f3f5;
}
.section-label {
  padding: 1rem 1.25rem 0.35rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6c757d;
  font-weight: 700;
  white-space: nowrap;
}
.sidebar .nav-link {
  position: relative;
  color: #495057;
  padding: 0.62rem 1rem;
  margin: 0.12rem 0.75rem;
  border-radius: 0.45rem;
  font-size: 0.94rem;
  text-decoration: none;
  white-space: nowrap;
}

.sidebar .nav-link:hover {
  background: #f1f3f5;
  color: #212529;
}

.sidebar .nav-link.active {
  background: transparent;
  color: #212529;
  font-weight: 700;
}

.sidebar .nav-link.active::before {
  content: "";
  position: absolute;
  left: -10px;
  top: 8px;
  bottom: 8px;
  width: 3px;
  border-radius: 3px;
  background: #6c757d;
}
.submenu .nav-link {
  padding-left: 1.75rem;
  font-size: 0.9rem;
}

.submenu-sm .nav-link {
  padding-left: 2.6rem;
  font-size: 0.86rem;
}

.chevron {
  font-size: 0.75rem;
  color: #6c757d;
  margin-left: 0.5rem;
}

.app-main {
  flex: 1;
  min-width: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.app-header {
  height: 60px;
  background: #ffffff;
  border-bottom: 1px solid #dee2e6;
  padding: 0 24px;
  flex-shrink: 0;
  z-index: 1000;
}

.mobile-sidebar-toggle {
  display: none;
  border: 0;
  background: transparent;
  font-size: 1.4rem;
  padding: 0.25rem 0.5rem;
  border-radius: 0.375rem;
}

.page-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #212529;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.breadcrumb {
  margin-bottom: 0;
  font-size: 0.85rem;
  flex-wrap: nowrap;
  overflow: hidden;
}

.breadcrumb-item {
  white-space: nowrap;
}

.breadcrumb-item a {
  color: #6c757d;
  text-decoration: none;
}

.breadcrumb-item a:hover {
  color: #212529;
  text-decoration: underline;
}

.breadcrumb-item.active {
  color: #212529;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-link {
  color: #495057;
  text-decoration: none;
  font-weight: 500;
}

.header-link:hover {
  color: #212529;
  text-decoration: underline;
}

body.sidebar-collapsed .sidebar-title,
body.sidebar-collapsed .section-label,
body.sidebar-collapsed .nav-text,
body.sidebar-collapsed .chevron {
  display: none;
}

body.sidebar-collapsed .sidebar-brand {
  justify-content: center;
  padding: 0;
}

.content {
  flex: 1;
  overflow-y: auto;
  padding: 2rem;
  background: #f8f9fa;
  display: flex;
  flex-direction: column;
}

.scroll-section {
  overflow-y: auto;
}
.sidebar::-webkit-scrollbar,
.content::-webkit-scrollbar,
.scroll-section::-webkit-scrollbar {
  width: 6px;
}

.sidebar::-webkit-scrollbar-track,
.content::-webkit-scrollbar-track,
.scroll-section::-webkit-scrollbar-track {
  background: transparent;
}

.sidebar::-webkit-scrollbar-thumb,
.content::-webkit-scrollbar-thumb,
.scroll-section::-webkit-scrollbar-thumb {
  background: transparent;
  border-radius: 999px;
}

.sidebar:hover::-webkit-scrollbar-thumb,
.content:hover::-webkit-scrollbar-thumb,
.scroll-section:hover::-webkit-scrollbar-thumb {
  background: #d7dbe0;
}

.sidebar::-webkit-scrollbar-thumb:hover,
.content::-webkit-scrollbar-thumb:hover,
.scroll-section::-webkit-scrollbar-thumb:hover {
  background: #aeb4bb;
}

.sidebar-backdrop {
  display: none;
}

body.sidebar-collapsed .sidebar {
  width: 76px;
}

body.sidebar-collapsed .sidebar-title,
body.sidebar-collapsed .section-label,
body.sidebar-collapsed .nav-text,
body.sidebar-collapsed .chevron {
  display: none;
}

body.sidebar-collapsed .sidebar-brand {
  justify-content: center;
  padding: 0;
}

body.sidebar-collapsed .sidebar .nav-link {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.65rem 0;
  margin: 0.2rem 0.75rem;
  font-weight: 600;
}

body.sidebar-collapsed .sidebar .nav-link::after {
  content: attr(data-short);
  font-size: 0.82rem;
}

body.sidebar-collapsed .sidebar .nav-link.active::before {
  left: -9px;
}

body.sidebar-collapsed .collapse {
  display: block;
}

body.sidebar-collapsed .submenu .nav-link,
body.sidebar-collapsed .submenu-sm .nav-link {
  padding-left: 0;
}

@media (max-width: 768px) {
  .sidebar {
      position: fixed;
      left: 0;
      top: 0;
      width: 300px;
      transform: translateX(-100%);
      box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.12);
  }

  body.sidebar-open .sidebar {
    transform: translateX(0);
  }

  body.sidebar-collapsed .sidebar {
    width: 300px;
  }

  body.sidebar-collapsed .sidebar-title,
  body.sidebar-collapsed .section-label,
  body.sidebar-collapsed .nav-text,
  body.sidebar-collapsed .chevron {
    display: inline;
  }

  body.sidebar-collapsed .sidebar-brand {
    justify-content: space-between;
    padding: 0 1.25rem;
  }

  body.sidebar-collapsed .sidebar .nav-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.62rem 1rem;
    margin: 0.12rem 0.75rem;
  }

  body.sidebar-collapsed .sidebar .nav-link::after {
    content: "";
  }

  body.sidebar-collapsed .submenu .nav-link {
    padding-left: 1.75rem;
  }

  body.sidebar-collapsed .submenu-sm .nav-link {
    padding-left: 2.6rem;
  }
  
  .sidebar-backdrop {
      display: none;
      position: fixed;
      inset: 0;
      background: rgba(0, 0, 0, 0.25);
      z-index: 1050;
  }

  body.sidebar-open .sidebar-backdrop {
      display: block;
  }

  .mobile-sidebar-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .app-header {
    padding: 0 16px;
  }
  .content {
    padding: 1rem;
  }
  .header-actions {
    gap: 0.75rem !important;
  }

  .header-actions .header-link {
    display: none;
  }
  .breadcrumb {
    max-width: 58vw;
  }

  .page-title {
    font-size: 1.08rem;
  }
}











