/* ═══════════════════════════════════════════════════════════════════
   pathways-v6 — shared global layout & components
   Unprefixed structural / component classes consumed by the v6 pages
   (.sidebar, .canvas, .toolbar, .cred, .cert, …) plus all responsive
   @media blocks. Moved out of the former app/pathways-v2/pathways.css.
   The scoped .pv5-* rules live in pathways.css.
   ═══════════════════════════════════════════════════════════════════ */

.pathway-container {
  display: flex;
  width: 100%;
  background-color: white;
  min-height: 100vh;
  max-width: 100%;
}

.sidebar {
  display: flex;
  flex-direction: column;
  width: 20%;
  border: 1px solid #ebebeb;
  border-radius: 2px;
  align-items: center;
  padding: 16px;
  min-height: 100vh;
  overflow: hidden;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
}

.cred-tabs {
  display: flex;
  gap: 30px;
  width: 100%;
  margin-top: 16px;
  justify-content: start;
  /* margin-left: 16px; */
}

.cred-tab.active {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background-color: #fff;
  /* border-bottom: 2px solid #007bff; */
  font-weight: bold;
  /* padding-top: 1px; */
}

.cred-tab-content {
  border: 0px solid #ccc;
  margin-top: 8px;
  background-color: #fff;
}

.cred-tab-content.active {
  display: block;
}

#sidebar-credentials-tab,
#sidebar-certificates-tab {
  height: 100vh;
  overflow-y: auto;
}

.canvas {
  width: 80%;
  height: 100vh;
  position: relative;
  transition: transform 0.3s ease, font-size 0.3s ease;
}

.sidebar-draggable {
  cursor: grab;
}

.sidebar-draggable:active {
  cursor: grabbing;
}

.cred {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  max-width: 140px;
  max-height: 140px;
  padding: 12px;
  width: 100%;
  margin-bottom: 16px;
  position: relative;
}

.cert {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 110px !important;
  height: 110px !important;
  max-width: 140px;
  max-height: 140px;
  padding: 12px;
  margin-bottom: 12px;
  position: relative;
}

.pathway-cred {
  width: 120px !important;
  height: 120px !important;
  max-width: 150px;
  max-height: 150px;
  padding: 4px;
  position: absolute;
}

.cred-label-tag {
  background-color: #e8f0fe;
  color: #333;
  border: 1px solid #b0c4f0;
  border-radius: 10px;
  font-size: 10px;
  padding: 2px 7px;
  white-space: nowrap;
  text-wrap-mode: wrap;
  text-overflow: ellipsis;
  max-width: 140px;
}

/* pathway textbox */
.pathway-tb {
  border: 1px solid #f0f0f0;
  resize: none;
}

.pathway-tb:focus {
  border-radius: 4px;
  outline: none !important;
  border: 1px solid #f0f0f0 !important;
}

/* search text have same pathway-tb styles, except different width on diff screen sizes  */
.search {
  border: 1px solid #f0f0f0;
  resize: none;
}

.search:focus {
  border-radius: 4px;
  outline: 1px #ccc !important;
  border: 1px solid #ccc !important;
}

/* pathway toolbar */
.toolbar {
  display: flex;
  justify-content: start;
  background-color: #f0f0f0;
  padding: 10px;
  border-radius: 5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* end - pathway toolbar */

.logs-dialog .md-dialog-container {
  max-width: 900px;
  width: 90%;
  height: 400px;
  overflow-x: hidden;
  overflow-y: auto;
}

.td-job {
  padding: 16px !important;
  padding-left: 24px !important;
}

/* extra small devices (phones, 600px and down) */
@media only screen and (max-width: 599px) {
  .sidebar {
    display: none;
  }

  .toolbar {
    display: none;
  }

  .canvas {
    width: 1500px;
    height: 1200px;
    overflow: visible;
  }

  .small-screen {
    display: block;
  }

  .leftbar-cred-container {
    display: none;
  }
}

/* small devices (portrait tablets and large phones, 600px and up) */
@media only screen and (min-width: 600px) and (max-width: 991px) {
  .sidebar {
    width: 30%;
  }

  .canvas {
    width: 70%;
  }

  .leftbar-cred-container {
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .flex-center {
    display: flex;
    justify-content: center;
  }

  .small-screen {
    display: none;
  }

  .search-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    /* padding: 8px; */
    width: 100%;
  }

  .search {
    border: 1px solid #f0f0f0;
    resize: none;
    width: 60px !important;
  }
}

/* medium devices (landscape tablets, 960px and up) */
@media only screen and (min-width: 992) and (max-width: 1199px) {
  .sidebar {
    width: 20%;
  }

  .canvas {
    width: 80%;
  }

  .leftbar-cred-container {
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .cred-tabs {
    display: flex;
    gap: 10px;
    width: 90%;
    margin-top: 16px;
    justify-content: start;
  }

  .search-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    /* margin-top: 8px; */
    width: 90%;
  }

  .flex-center {
    display: flex;
    justify-content: center;
  }

  .small-screen {
    display: none !important;
  }

  .search {
    border: 1px solid #f0f0f0;
    resize: none;
    width: 60px !important;
  }
}

@media only screen and (min-width: 1200px) and (max-width: 1599px) {
  .sidebar {
    width: 22%;
  }

  .canvas {
    width: 80%;
  }

  .leftbar-cred-container {
    display: flex;
    flex-wrap: wrap;
    /* width: 250px !important; */
    width: 100%;
    padding: 2px;
    margin-left: 0px;
  }

  .cred-tab-content {
    text-align: start;
    border: 0px solid #ccc;
    background-color: #fff;
  }

  .cred-tab-content.active {
    display: block;
  }

  .cred {
    position: relative;
    width: 100px !important;
    height: 100px !important;
  }

  .cert {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100px !important;
    height: 100px !important;
    padding: 8px;
    margin-bottom: 12px;
    position: relative;
    border-radius: 2px;
  }

  .search-row {
    display: flex;
    /* flex-direction: row; */
    align-items: center;
    justify-content: center;
    width: 100%;
  }

  .small-screen {
    display: none;
  }

  .search {
    border: 1px solid #f0f0f0;
    resize: none;
    width: 120px !important;
  }
}

@media only screen and (min-width: 1600px) {
  .sidebar {
    width: 20%;
  }

  .canvas {
    width: 80%;
    overflow-x: auto;
  }

  .leftbar-cred-container {
    display: flex;
    flex-wrap: wrap;
    /* min-width: 315px; */
    width: 100%;
    justify-content: space-evenly;
    gap: 10px;
  }

  .cred {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 110px !important;
    height: 110px !important;
    border-radius: 2px;
    padding: 8px;
    margin-bottom: 16px;
    position: relative;
  }

  .search-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    width: 100%;
  }

  .cred-tab-content {
    border: 0;
    margin-top: 10px;
    width: 100% !important;
  }

  .small-screen {
    display: none;
  }
}
