#lc-playbook-loader {
  display: flex;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 9999;
  height: 100vh;
  text-align: center;
  justify-content: center;
  align-items: center;
  font-family: 'Segoe UI', sans-serif;
}

.ui-dialog:not(.modal-content) .ui-dialog-titlebar-close {
  display: flex;
  align-items: center;
  justify-content: center;
}

.ui-dialog.modal-content .ui-dialog-titlebar-close {
  position: unset;
  height: initial;
}

.ui-dialog:not(.modal-content) .ui-dialog-titlebar-close::before {
  content: '\F62A';
  font-size: 20px;
  font-family: bootstrap-icons !important;
}

/* Severity tokens defined in legalconnect/css/v2-design-system.css.
 *
 * KAN-1218: the high / medium severity blocks are temporarily commented
 * out — the controllers now emit `playbook-row--low` for every Failed row
 * until the prioritisation rules are revisited. Restore the blocks below
 * and the matching match-arms in LcPlaybookController::formatResponse
 * and ContractController::formatContractPlaybookResult, plus the DocX
 * branches in lc-playbook.js, to re-enable the three-colour scheme. */
/* .playbook-row--high td {
  background-color: var(--v2-severity-high-bg);
  color: var(--v2-severity-high-text);
}
.playbook-row--high td:first-child {
  border-left: 4px solid var(--v2-severity-high-border);
}

.playbook-row--medium td {
  background-color: var(--v2-severity-med-bg);
  color: var(--v2-severity-med-text);
}
.playbook-row--medium td:first-child {
  border-left: 4px solid var(--v2-severity-med-border);
} */

.playbook-row--low td {
  background-color: var(--v2-severity-low-bg);
  color: var(--v2-severity-low-text);
}
.playbook-row--low td:first-child {
  border-left: 4px solid var(--v2-severity-low-border);
}

.progress-container {
  position: relative;
  width: 700px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.progress-bar-custom {
  position: absolute;
  top: 50%;
  left: 0;
  height: 4px;
  width: 100%;
  background-color: #e0e0e0;
  transform: translateY(-50%);
  z-index: -1;
  border-radius: 2px;
}

.progress-bar-front {
  height: 100%;
  width: 0%;
  background-color: #28a745;
  transition: width 0.5s ease;
  border-radius: 2px;
}

.step {
  position: relative;
  background-color: #fff;
  border: 4px solid #d3d3d3;
  color: #d3d3d3;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.4s ease;
  z-index: 1;
}

.step.checked {
  border-color: #28a745;
  color: #28a745;
}

.step i {
  font-size: 16px;
  color: #28a745;
  line-height: 0;
}

.step span {
  position: absolute;
  top: 45px;
  width: 120px;
  font-size: 14px;
  color: #fff;
  left: 50%;
  transform: translateX(-50%);
}

@media (max-width: 768px) {
  .progress-container {
    width: 90vw;
  }
  .step span {
    font-size: 12px;
    width: 90px;
  }
}

.rotate-animate {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

#lc-playbook-loader .spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 5px solid #f3f3f3;
  border-top: 5px solid #0074bd;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spinner-border 1s linear infinite;
}

@keyframes spinner-border {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.modal-body .download-wrap {
  position: relative;
  float: right;
}

.download-wrap .dropdown-menu {
  min-width: 100px;
}

.contract-type-wrap {
  display: flex;
  justify-content: space-between;
  background: lightgray;
  padding: 10px;
  margin-bottom: 0 !important;
  align-items: center;
}

/* Apply Redlines button — inline spinner while prepare-word-redlines runs. */
#apply-redlines-word.apply-redlines--loading {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: wait;
}
.apply-redlines__spinner {
  display: inline-block;
  width: 12px;
  height: 12px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: apply-redlines-spin 0.8s linear infinite;
}
@keyframes apply-redlines-spin {
  to {
    transform: rotate(360deg);
  }
}
