.publishpress-checklists-admin .logo-header {
  display: inline-block;
  margin-right: 5px;
  height: 50px;
}

.publishpress-checklists-admin .logo-header {
  display: inline-block;
  margin-right: 5px;
  height: 50px;
}

.pp-checklists-custom-item-title {
  width: 100%;
}

textarea.pp-checklists-custom-item-title {
  min-width: 200px;
  min-height: 60px;
  resize: none;
}

.pressshack-admin-wrapper a:link,
.pressshack-admin-wrapper a:visited,
.pressshack-admin-wrapper a:active,
.pressshack-admin-wrapper a:hover {
  text-decoration: none;
}

.pressshack-admin-wrapper a,
.pressshack-admin-wrapper button,
.pressshack-admin-wrapper button::before {
  -webkit-transition: all 200ms ease-in-out;
  -moz-transition: all 200ms ease-in-out;
  -o-transition: all 200ms ease-in-out;
  transition: all 200ms ease-in-out;
}

.pressshack-admin-wrapper a,
.pressshack-admin-wrapper a div,
.pressshack-admin-wrapper a p {
  color: #655997;
}

.pressshack-admin-wrapper a:hover,
.pressshack-admin-wrapper a:focus,
.pressshack-admin-wrapper a:active,
.pressshack-admin-wrapper a:hover div,
.pressshack-admin-wrapper a:focus div,
.pressshack-admin-wrapper a:active div,
.pressshack-admin-wrapper a:hover p,
.pressshack-admin-wrapper a:focus p,
.pressshack-admin-wrapper a:active p,
.pressshack-admin-wrapper a:hover .dashicons:before,
.pressshack-admin-wrapper a:focus .dashicons:before,
.pressshack-admin-wrapper a:active .dashicons:before {
  color: #5a4f87;
  box-shadow: none;
  -moz-box-shadow: none;
  -webkit-box-shadow: none;
  -o-box-shadow: none;
}

.pressshack-admin-wrapper > header h1 a,
.pressshack-admin-wrapper > header h1 a:hover,
.pressshack-admin-wrapper > header h1 a:focus,
.pressshack-admin-wrapper > header h1 a:active {
  color: #23282d;
}

.pressshack-admin-wrapper .nav-tab-wrapper .nav-tab {
  color: inherit;
}

.pressshack-admin-wrapper .nav-tab-wrapper .nav-tab-active,
.pressshack-admin-wrapper .nav-tab-wrapper .nav-tab:hover,
.pressshack-admin-wrapper .nav-tab-wrapper .nav-tab:active,
.pressshack-admin-wrapper .nav-tab-wrapper .nav-tab:focus {
  border-top-color: #655997;
  color: #655997;
}

.pressshack-admin-wrapper > footer {
  text-align: center;
}

.pressshack-admin-wrapper > footer > div.pp-rating {
  font-size: 12px;
  margin-bottom: 10px;
  margin-top: 30px;
}

.pressshack-admin-wrapper > footer * {
  color: #777;
}

.pressshack-admin-wrapper > footer > nav ul {
  list-style: none;
}

.pressshack-admin-wrapper > footer > nav ul > li {
  display: inline-block;
}

.pressshack-admin-wrapper > footer > nav ul > li:not(:first-child) {
  margin-left: 15px;
}

.pressshack-admin-wrapper > footer > nav ul > li > a {
  font-weight: bold;
}

.pressshack-admin-wrapper > footer .dashicons.dashicons-star-filled {
  line-height: 18px;
  font-size: 12px;
  width: 12px;
  height: 12px;
  color: #ffb300;
  -webkit-transition: color 200ms ease-in-out;
  -moz-transition: color 200ms ease-in-out;
  -o-transition: color 200ms ease-in-out;
  transition: color 200ms ease-in-out;
}

.pressshack-admin-wrapper button:not(.notice-dismiss):not(.wp-color-result),
.pressshack-admin-wrapper .button:not(.notice-dismiss):not(.wp-color-result) {
  -webkit-border-radius: 5px;
  -moz-border-radius: 5px;
  border-radius: 5px;
  text-shadow: initial;
  -webkit-box-shadow: initial;
  -moz-box-shadow: initial;
  box-shadow: initial;
  vertical-align: middle;
  line-height: 0;
  min-height: 28px;
  text-decoration: none;
  padding: 15px 10px;
  border-width: 1px;
  border-style: solid;
}

.pressshack-admin-wrapper .button:not(.notice-dismiss):hover,
.pressshack-admin-wrapper .button:not(.notice-dismiss):active,
.pressshack-admin-wrapper .button:not(.notice-dismiss):focus {
  outline: none;
  -webkit-box-shadow: 0 1px 0 rgba(255, 255, 255, 0.2) inset, 0 1px 2px rgba(0, 0, 0, 0.05);
  -moz-box-shadow: 0 1px 0 rgba(255, 255, 255, 0.2) inset, 0 1px 2px rgba(0, 0, 0, 0.05);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.2) inset, 0 1px 2px rgba(0, 0, 0, 0.05);
}

.pressshack-admin-wrapper .pp-pressshack-logo img {
  width: 170px;
}

/* Settings */
.pp-checklists-small-input {
  width: 50px;
}

.pp-checklists-medium-input {
  width: 60px;
}

.pp-checklists-action-label {
  margin-left: 25px;
}

.pp-checklists-modal-list {
  text-align: center;
}

.pp-checklists-modal-list ul {
  text-align: left;
  list-style: square;
  display: inline-block;
}

.pp-checklists-warning-icon {
  font-size: 30px;
  padding-top: 1px;
  width: 30px;
  height: 30px;
  color: #ef5350;
}

.pp-checklists-requirements-settings,
.pp-custom-checklists-table {
  width: 100%;
  border: 1px solid silver;
  background: #fff;
}

.pp-checklists-requirements-settings th,
.pp-custom-checklists-table th {
  width: auto;
  text-align: left;
  height: 35px;
  padding: 10px;
  box-sizing: border-box;
  border-bottom: 1px solid silver;
  font-weight: normal;
}

.pp-checklists-requirements-settings td,
.pp-custom-checklists-table td {
  height: 80px;
  padding: 10px;
  box-sizing: border-box;
  line-height: 32px;
}

#pp-checklists-post-type-filter {
  margin-bottom: 30px;
}

#pp-checklists-global #submit {
  margin-top: 50px;
}

.pp-checklists-number label {
  min-width: 30px;
  display: inline-block;
}

.pp-checklists-number input {
  min-width: 80px;
}

.pp-checklists-task-params input.full-width {
  width: 95%;
}

#pp-checklists-add-button,
#pp-checklists-openai-promt-button {
  border: 1px solid silver;
  padding: 10px;
  line-height: 20px;
}

.pp-custom-checklists-table {
  margin-top: 10px;
}

.pp-custom-checklists-table tr {
  background-color: #f6f7f7;
}

.pp-custom-suggestion a {
  color: #2271b1;
}

.pp-suggestion-description {
  line-height: 1.4em;
  color: gray;
}

.pp-checklists-req .status-label {
  padding-left: 3px;
}


/* Inline field validation styling */
.field-validation-error {
  color: #d63638;
  background-color: #fcf0f1;
  border: 1px solid #f1aeb5;
  border-radius: 4px;
  padding: 8px 12px;
  margin-top: 8px;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.field-validation-error .dashicons {
  font-size: 16px;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.has-validation-error {
  border-left: 4px solid #d63638;
}

.has-validation-error td {
  border-left: none;
}

/* End of inline field validation styling */

.pp-checklists-task-params {
  position: relative;
}

.pp-checklists-task-params > .pp-checklists-remove-custom-item {
  padding-top: 5px !important;
}

.pp-checklists-task-params:has(.pp-checklists-remove-custom-item) {
  padding-right: 35px;
}

.pp-checklists-task-params select {
  width: 100%;
}

.pp-checklists-editable-by-label {
  margin-top: 11px;
  display: block;
}

.pp-checklists-field-description {
  margin-left: 10px;
}

.pp-checklists-field-description,
.pp-checklists-editable-by-description {
  font-style: italic;
  color: gray;
}

.pp-checklists-remove-custom-item {
  position: absolute;
  top: 10px;
  right: 10px;
}

.pp-checklists-requirement-row {
  cursor: move;
}

.pp-checklists-requirement-row td {
  vertical-align: top;
}

@media only screen and (max-width: 781px) {
  .pp-checklists-content-wrapper {
    overflow-x: visible;
  }

  .pp-checklists-requirements-settings {
    min-width: 0;
  }

  #pp-checklists-global table th {
    display: none;
  }

  .pp-checklists-requirements-settings td,
  .pp-custom-checklists-table td {
    height: auto !important;
  }

  .pp-checklists-requirement-row td {
    padding-left: 20px;
  }

  .pp-checklists-requirement-row td:first-child {
    padding-left: 10px;
  }

  .pp-checklists-number {
    display: inline-block;
    margin-right: 10px;
  }
}

.pp-checklists-unit {
  margin-left: 2px;
}

.submit-top {
  display: flex;
  justify-content: end;
}

.pp-checklists-tabs-wrapper {
  display: flex;
  background: #fff;
  position: relative;
  min-width: 255px;
  border: 1px solid #c3c4c7;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
}

.pp-checklists-tabs-wrapper .pp-checklists-tabs {
  min-width: 250px;
  margin: 0;
  line-height: 1em;
  padding: 0 0 10px;
  position: relative;
  background-color: #fafafa;
  border-right: 1px solid #eee;
  box-sizing: border-box;
}

.pp-checklists-tabs-wrapper .pp-checklists-tabs ul {
  display: none;
  padding-top: 0;
  margin-top: 0;

  &.active {
    display: block;
  }
}

.pp-checklists-tabs-wrapper .pp-checklists-tabs ul li a {
  margin: 0;
  padding: 10px;
  display: block;
  box-shadow: none;
  text-decoration: none;
  line-height: 20px !important;
  border-bottom: 1px solid #eee;
}

.pp-checklists-tabs-wrapper .pp-checklists-tabs ul li {
  margin: 0;
  padding: 0;
  display: block;
  position: relative;
}

.pp-checklists-tabs-wrapper .pp-checklists-tabs ul li a.active {
  color: #555;
  position: relative;
  background-color: #eee;
}

.pp-checklists-tabs-wrapper .pp-checklists-tabs ul li a span {
  margin-right: 0.1em;
}

.pp-checklists-tabs-wrapper .pp-checklists-tabs ul li a span.dashicons {
  margin-left: 0;
  font-size: 15px;
  vertical-align: sub;
}

/* Count Indicator Style */
.pp-checklists-count-indicator {
  display: inline-block;
  background-color: #f0f6fc;
  color: #2c3338;
  border: 1px solid #c3c4c7;
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 11px;
  font-weight: 500;
  margin-left: 6px;
  min-width: 16px;
  text-align: center;
  line-height: 1.2;
} 

/* END Count Indicator Style */



.pp-checklists-tabs-wrapper .pp-checklists-tabs {
  min-width: 180px;
  margin: 0;
  line-height: 1em;
  padding: 0 0 10px;
  position: relative;
  background-color: #fafafa;
  border-right: 1px solid #eee;
  box-sizing: border-box;
}

.pp-checklists-content-wrapper {
  width: 100%;
  min-width: 320px;
  padding: 10px;
  margin-top: 0;
  padding-top: 0;
  overflow-x: auto;
}

.pp-checklists-content-table .select2-container {
  width: 100% !important;
}

.pp-checklists-requirements-settings {
  min-width: 500px;
}

@media only screen and (max-width: 1270px) {
  .pp-checklists-content-table input[type='text'],
  .pp-checklists-content-table input[type='number'],
  .pp-checklists-content-table select {
    width: 95%;
  }

  .pp-checklists-content-wrapper {
    min-width: unset;
  }
}

@media only screen and (max-width: 1100px) {
  .pp-checklists-content-wrapper {
    min-width: unset;
  }

  .pp-checklists-content-table input[type='text'],
  .pp-checklists-content-table input[type='number'],
  .pp-checklists-content-table select,
  .pp-checklists-content-table textarea,
  .ppma-boxes-editor-tab-content.ppma-profile_fields-tab.profile_header .input {
    max-width: 95% !important;
    width: 95% !important;
  }

  .pp-checklists-tabs-wrapper {
    display: block;
  }
}

@media only screen and (min-width: 782px) and (max-width: 1100px) {
  .pp-checklists-content-wrapper {
    padding-bottom: 16px;
  }

  .pp-checklists-requirements-settings th,
  .pp-checklists-requirements-settings td {
    white-space: normal;
  }

  .pp-checklists-requirements-settings th:first-child,
  .pp-checklists-requirements-settings td:first-child {
    min-width: 260px;
  }

  .pp-checklists-requirements-settings th:nth-child(2),
  .pp-checklists-requirements-settings td:nth-child(2) {
    min-width: 150px;
  }

  .pp-checklists-task-params {
    min-width: 180px;
  }
}

.pp-checklists-tabs-wrapper {
  display: flex;
  background: #fff;
}

.pp-checklists-tab-custom-icon {
  display: inline-block;
  width: 15px;
  height: 15px;
  vertical-align: sub;
  padding: 2px;
}

/* Start Pro Lock badge */

.pp-checklists-requirement-row {
  position: sticky;
}

.pp-checklists-requirement-row.ppc-pro-locked-row > td:not(.ppc-pro-overlay-cell) {
  opacity: 0.4;
  pointer-events: none;
}

.ppc-pro-overlay-cell {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
  backdrop-filter: blur(0.5px);
  background-color: rgba(0, 0, 0, 0);
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.ppc-pro-overlay-text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: 4px;
  line-height: 1;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
  pointer-events: auto;
  background: #feb123;
  color: #000 !important;
  font-weight: normal;
  text-decoration: none;
  padding: 9px 12px;
  -webkit-border-radius: 4px;
  -moz-border-radius: 4px;
  border-radius: 4px;
  box-sizing: border-box;
  border: 1px solid #fca871;
  break-inside: avoid;
  white-space: nowrap;
  gap: 4px;
}

.ppc-pro-overlay-text:hover {
  background: #fcca46;
  color: #000 !important;
}

.ppc-pro-overlay-text .dashicons {
  line-height: 1;
}

.pp-checklists-requirements-settings th#pp-checklists-pro-badge-heading {
  width: 1px !important;
}

/* End Pro Lock badge */

/* Custom Label Editing */
.pp-checklists-title-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pp-checklists-default-label,
.pp-checklists-custom-label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pp-checklists-custom-label-input {
  flex: 1;
  min-width: 200px;
  max-width: 100%;
  padding: 4px 8px;
  border: 1px solid #8c8f94;
  border-radius: 4px;
  box-sizing: border-box;
}

.pp-checklists-custom-label-input:focus {
  border-color: #2271b1;
  box-shadow: 0 0 0 1px #2271b1;
  outline: none;
}

.pp-checklists-edit-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  color: #2271b1;
  text-decoration: none;
  flex-shrink: 0;
  cursor: pointer;
  pointer-events: auto;
  position: relative;
  z-index: 5;
}

.pp-checklists-edit-label:hover {
  color: #135e96;
}

.pp-checklists-edit-label .dashicons {
  font-size: 16px;
  width: 16px;
  height: 16px;
  pointer-events: none;
}

.pp-checklists-rename-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 100000;
}

.pp-checklists-rename-modal-overlay.is-open {
  display: block;
}

.pp-checklists-rename-modal {
  display: none;
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 460px;
  max-width: calc(100vw - 40px);
  background: #fff;
  border: 1px solid #dcdcde;
  border-radius: 6px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.24);
  padding: 20px;
  z-index: 100001;
}

.pp-checklists-rename-modal.is-open {
  display: block;
}

.pp-checklists-rename-modal-title {
  margin: 0 0 14px;
  font-size: 16px;
}

.pp-checklists-rename-modal-label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
}

.pp-checklists-rename-modal-input {
  width: 100%;
  margin-bottom: 14px;
}

.pp-checklists-rename-modal-preview {
  margin: 0 0 14px;
  font-size: 12px;
  color: #50575e;
}

.pp-checklists-rename-modal-preview strong {
  font-weight: 600;
}

.pp-checklists-rename-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

/* End Custom Label Editing */

/* Fix column widths to prevent overlap on smaller screens */
.pp-checklists-requirements-settings th:first-child,
.pp-checklists-requirements-settings td:first-child {
  width: 300px;
  min-width: 100px;
  max-width: 30%;
}

.pp-checklists-requirements-settings th:nth-child(2),
.pp-checklists-requirements-settings td:nth-child(2) {
  width: 150px;
  min-width: 120px;
}

@media only screen and (max-width: 900px) {
  .pp-checklists-custom-label-input {
    min-width: 120px;
  }
}
