:root {
  --brand-blue: #0f6cbd;
  --brand-blue-hover: #4897dd;
  --brand-blue-background: #e2f3ffe2;
  --brand-blue-background-disabled: rgba(15, 108, 189, 0.2);
  --brand-blue-light-hover: rgba(15, 108, 189, 0.139);
  --text-off-black: #333333;
  --secondary-gray: #6b7280;
  --main-background: linear-gradient(180deg, rgba(68, 146, 231, 0.08) 0%, rgba(68, 146, 231, 0.01) 100%);

  --transition-background: 0.2s ease-in-out;

  --clause-changed-badge-text: #744201;
  --clause-changed-badge-background: #ffc75ec6;
  --clause-missing-badge-text: #4b5059;
  --clause-missing-badge-background: #e5e7ebf1;
  --clause-required-badge-text: #353e42;
  --clause-required-badge-background: #404a4f2e;
  --clause-standard-badge-text: #126112;
  --clause-standard-badge-background: #c7ffc7;
  --clause-prohibited-text: #641c1c;
  --clause-prohibited-background: #fdbcbccd;

  --error-message-dark: #b23939;
  --error-message-light: #ffcdcd;
}

html,
body {
  width: 100%;
  margin: 0;
  padding-bottom: 40px;
  background-image: var(--main-background);
  height: auto;
}

.ms-TextField-fieldGroup {
  border: 1px solid lightgray;
  border-radius: 4px;
  transition: var(--transition-background);
}

.ms-TextField-fieldGroup:hover {
  border: 1px solid var(--brand-blue-hover);
}

.top-stack {
  background-image: var(--main-background);
  flex: 1;
  height: calc(100% - 40px);
  min-height: calc(100vh - 40px);
  scroll-behavior: none;
  overflow: hidden; /* Add this line to prevent scrolling in .top-stack */
  transition: var(--transition-background);
}

ul {
  margin: 0;
  padding: 0;
}

h2 {
  color: var(--text-off-black);
}

.template-header {
  padding: 0 10px;
}

/* breadcrumb.css */
.breadcrumb {
  margin-top: 0px;
}

.breadcrumb .itemLink {
  font-size: 14px;
  color: var(--brand-blue);
  transition: var(--transition-background);
}

.breadcrumb .item {
  font-size: 14px;
  font-weight: bold;
}

.welcome-banner {
  background: linear-gradient(180deg, #4492e7 0%, rgba(68, 146, 231, 0.43) 100%);
  position: absolute;
  height: calc(100vh);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 270px;
  flex-shrink: 0;
  width: 100%;
}

.pincites-header {
  height: 50px;
  background-color: white !important;
  z-index: 50;
  width: 100%;
  position: fixed;
  top: 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.footer-content {
  height: 40px;
  position: fixed;
  padding: 0;
  width: 100%;
  bottom: 0;
  z-index: 50;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  background-color: white;
}

.footer-command-bar {
  padding: 0;
  z-index: 40;
}

.feedback-buttons-container {
  justify-content: flex-end;
  width: 100%;
}

.feedback-icon {
  font-size: 10px;
  color: var(--text-off-black);
}

.feedback-icon-button {
  transform: scale(0.8);
  color: var(--text-off-black);
}

.feedback-icon-button:hover {
  background-color: var(--brand-blue-light-hover);
}

.info-tooltip-icon {
  color: var(--secondary-gray);
  margin-top: 1px;
  margin-right: 1px;
}

.info-tooltip {
  color: var(--secondary-gray);
  margin-top: 2px;
  font-size: 10px;
  font-style: normal;
  font-weight: 400;
  line-height: 10px;
}

.info-tooltip a {
  color: var(--secondary-gray);
  margin-top: 2px;
  font-family: Inter;
  font-size: 10px;
  font-style: normal;
  font-weight: 400;
  line-height: 10px;
  transition: var(--transition-background);
}

.info-tooltip a:hover {
  color: var(--brand-blue-hover);
}

.choose-playbook-button {
  background-color: var(--brand-blue) !important;
  border-radius: 4px !important;
  color: white;
  font-weight: bold;
  margin-top: 15px;
  margin-bottom: 15px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  border: none;
  transition: var(--transition-background);
}

.choose-playbook-button:hover {
  background-color: var(--brand-blue-hover) !important;
  color: white;
  border: none;
}

.choose-playbook-button:disabled,
.choose-playbook-button:hover-disabled {
  opacity: 40%;
  cursor: not-allowed;
}

.playbook-description-container {
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
  gap: 2px;
  max-height: 9rem;
  overflow-y: auto;
}

.b {
  font-weight: bold;
}

.body,
html {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
}

.clause-view-header {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin-top: 10px;
  vertical-align: center;
}

.clause-view-header-no-diff {
  margin-bottom: 8px;
}

.clause-details-section-title {
  font-weight: 700 !important;
  margin-top: 15px;
  margin-bottom: 5px;
}

.clause-details-section-title-secondary {
  font-weight: 600 !important;
  margin-top: 15px;
  margin-bottom: 5px;
}

.clause-details-section-title-with-subtitle {
  font-weight: bold !important;
}

.clause-details-alternative-language-section {
  margin-left: 5px;
}

.clause-details-alternative-language-section > div:nth-last-child(1) {
  margin-bottom: 0;
}

.suggested-redlines-section-container {
  margin-bottom: 5px;
  width: 100%;
}

.clause-link {
  margin-left: 10px;
  margin-right: 2px;
  cursor: pointer;
  transition: var(--transition-background);
}

.clause-link:hover {
  color: var(--brand-blue-hover);
}

.clause-link-list {
  margin-top: 20px;
  overflow-y: auto;
}

.clause-list-container {
  background-color: white;
  border: 1px solid #dedede;
  border-radius: 7px;
  margin: 0 auto;
  margin-top: 20px;
  padding: 10px;
  width: 95%;
  max-height: calc(100vh - 85px); /* Set a maximum height for the clause list */
  overflow-y: auto; /* Enable scrolling in clause-list-container when it exceeds the maximum height */
}

.clause-type-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.3rem;
  padding: 0.0625rem 0.25rem;
  font-weight: 580;
  height: 16px;
  text-transform: uppercase;
  font-size: 0.625rem;
  transform: scale(0.87);
}

/* at some point, may need to better distinguish this from missing */
.pincites-badge-gray {
  color: var(--clause-missing-badge-text);
  background-color: var(--clause-missing-badge-background);
}

.pincites-badge-gray-dark {
  color: var(--clause-required-badge-text);
  background-color: var(--clause-required-badge-background);
}

.pincites-badge-danger {
  color: var(--clause-prohibited-text);
  background-color: var(--clause-prohibited-background);
}

.pincites-badge-orange {
  color: var(--clause-changed-badge-text);
  background-color: var(--clause-changed-badge-background);
}

.pincites-badge-green {
  color: var(--clause-standard-badge-text);
  background-color: var(--clause-standard-badge-background);
}

.clause-type-tooltip .ms-Tooltip {
  background-color: var(--text-off-black) !important;
  color: white !important;
}

.clause-type-tooltip .ms-Tooltip li {
  color: var(--text-off-black);
  cursor: pointer;
  font-size: 13px;
  padding-left: 10px;
  padding-right: 10px;
  transition: var(--transition-background);
}

.clause-type-tooltip .ms-Tooltip li:hover {
  background-color: gainsboro;
}

.clause-type-tooltip .ms-Tooltip ul {
  background-color: #f9f9f9;
  border: 1px solid gainsboro;
  border-radius: 5px;
  display: none;
  list-style-type: none;
  margin: 0;
  min-width: 200px;
  padding: 0;
  position: absolute;
  z-index: 1;
}

.clause-type-tooltip .ms-Tooltip ul.show {
  display: block;
}

.top-stack > div:nth-last-child(2) {
  background-color: var(--main-background);
}

.create-playbook-link {
  align-items: center;
  color: var(--brand-blue);
  display: flex;
  gap: 4px;
  justify-content: center;
  position: relative;
  text-decoration: none;
}

.create-playbook-link .link-text {
  text-decoration: underline;
  margin: 5px;
}

.copied-text {
  align-items: center;
  color: gray;
  margin-bottom: 5px;
  margin-right: 5px;
  font-size: x-small;
  position: absolute;
  right: 0;
  bottom: 0;
}

.copy-template-text-button {
  transform: scale(0.9);
  position: absolute;
  right: 0;
  bottom: 0;
  transition: var(--transition-background);
}

.copy-template-text-button:hover {
  background-color: var(--brand-blue-light-hover);
}

.dark-toast {
  background-color: var(--secondary-gray) !important;
  border-radius: 10px;
  color: white !important;
  margin-top: 20px;
  padding: 10px;
}

.dismiss-icon-container {
  position: absolute;
  top: 5px;
  right: 0;
}

.toggle-diff-redlines {
  align-items: center;
  margin-bottom: -3px;
  color: gray !important;
  transform-origin: bottom left;
  margin-left: 2px;
  transition: var(--transition-background);
}

.toggle-diff-redlines:hover {
  color: var(--secondary-gray) !important;
}

.toggle-diff-redlines .ms-Toggle-label {
  font-size: 9px;
  align-items: center;
  padding-right: -4px !important;
  color: gray;
  margin-top: -1px;
}

.diff-text-added {
  color: green !important;
  text-decoration: underline;
}

.diff-text-removed {
  color: red !important;
  text-decoration: line-through !important;
}

.error-dialog {
  border-top: 3px solid var(--error-message-dark);
}

.error-dialog-button {
  border: 1px solid var(--error-message-dark);
  background-color: var(--error-message-light);
  transition: var(--transition-background);
}

.error-dialog-button:hover {
  background-color: var(--error-message-dark);
}

.microsoft-login-button {
  background-color: white;
  border: none;
  border-color: var(--secondary-gray);
  border-radius: 4px;
  color: var(--secondary-gray);
  font-size: 14px;
  transition: var(--transition-background);
}

.microsoft-login-button:hover {
  color: var(--brand-blue-hover);
}

.microsoft-login-button-content {
  gap: 8px;
  height: 100%;
  font-weight: bold;
  width: 100%;
}

.microsoft-login-button-content .microsoft-login-button-icon {
  height: 16px;
  width: 16px;
}

.microsoft-login-button-wrapper {
  margin-top: 15px;
  margin-bottom: 10px;
}

.not-enough-content-box {
  background-color: white;
  border: 1px solid lightgray;
  border-radius: 7px;
  margin: 0 auto;
  margin-top: 20px;
  padding: 10px;
  width: 100%;
}

.cancel-icon-container {
  top: 5px;
  right: 0;
  position: absolute;
}

.open-in-new-window {
  margin-left: 4px;
}

.pincites-dropdown {
  margin: auto;
  position: relative;
  width: 200px;
  z-index: 900 !important;
  border: var(--brand-blue-hover) fill 2px;
}

.pincites-dropdown button,
.pincites-dropdown input {
  background-color: white;
  border: 1px solid lightgray;
  border-radius: 5px;
  cursor: pointer;
  font-size: 13px;
  padding: 10px;
  padding-right: 30px;
  position: relative;
  text-align: left;
  width: 200px;
  margin-top: 5px;
  margin-bottom: 5px;
  transition: var(--transition-background);
}

.pincites-dropdown input::placeholder {
  color: var(--brand-blue);
  opacity: 1;
}

.pincites-dropdown.has-selection input {
  color: var(--text-off-black);
}

.pincites-dropdown button.dropdown-button::placeholder {
  color: lightgray;
}

.pincites-dropdown.has-selection button.dropdown-button {
  color: var(--text-off-black);
}

.pincites-dropdown button::before {
  border: solid gray;
  border-width: 0 2px 2px 0;
  content: "";
  display: inline-block;
  padding: 3px;
  margin: 0;
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}

.pincites-dropdown ul {
  background-color: white;
  border-radius: 5px;
  display: none;
  list-style-type: none;
  margin: 0;
  max-height: 200px;
  overflow-y: auto;
  overflow-x: hidden;
  position: absolute;
  border: var(--brand-blue-hover) solid 2px;
  z-index: 400 !important;
  width: 200px;
  transition: var(--transition-background);
  justify-content: center;
}

.pincites-dropdown ul li {
  cursor: pointer;
  font-size: small;
  padding: 0.5rem 1rem 0.5rem 1rem;
  transform: scale(1);
  transition: var(--transition-background);
  border-radius: 4px;
}

.pincites-dropdown ul li:last-child {
  border-top: 2px solid gainsboro;
  text-align: center;
  padding: 0.1rem 1rem 0.1rem 1rem;
}

.pincites-dropdown button,
.pincites-dropdown input {
  box-sizing: border-box;
}

.pincites-dropdown ul li:hover {
  background-color: var(--brand-blue-light-hover);
  color: var(--brand-blue);
  transform: scale(1.1);
}

.pincites-dropdown ul.show {
  display: block;
}

.pincites-dropdown-no-matches {
  color: var(--secondary-gray);
  padding-right: 10px;
  padding-left: 10px;
  padding-bottom: 1px;
  padding-top: 1px;
}

.pincites-dropdown-no-matches.apply-playbook-button:hover-disabled {
  color: var(--secondary-gray);
}

.pincites-logo {
  padding: 10px;
}

.preference-level-circle-badge {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  margin-right: 4px;
  margin-top: 4px;
}

.guidance-text-box {
  border-radius: 6px;
  border: 2px solid var(--background-bg-blue, #0366d6);
  padding: 4px 8px 10px 8px;
  resize: none;
}

.action-button-root {
  height: 23px;
  font-size: 14px;
  padding: 0 4px;
  border: 1px solid lightgray;
  width: max-content;
  justify-content: flex-start;
  font-weight: 600;
  gap: 10px;
  align-items: center;
  color: var(--secondary-gray);
  transition: var(--transition-background);
}

.action-button-root:not([disabled]):hover {
  color: var(--brand-blue-hover);
}

.rescan-button {
  height: 23px;
  font-size: 14px;
  padding: 0 4px;
  border: 1px solid lightgray;
  width: max-content;
  justify-content: flex-start;
  font-weight: 600;
  gap: 10px;
}

.action-button-root:disabled {
  cursor: not-allowed;
}

.action-button-icon {
  transition: var(--transition-background);
  color: var(--secondary-gray);
  align-items: center;
}

.action-button-icon:hover {
  color: var(--brand-blue-hover);
}

.action-button-text {
  font-size: x-small;
  font-weight: 600;
  text-transform: uppercase;
}

.action-button-text.padded {
  padding-left: 8px;
}

.action-buttons-section {
  display: flex;
  justify-content: end;
  width: 100%;
  align-items: center;
}

.results-container {
  flex-grow: 1;
  max-height: calc(100vh - 40px);
  overflow-y: auto; /* Add this line to enable scrolling in results-container */
}

.spinner {
  color: white;
  margin-top: 10px;
}

.spinner .ms-Spinner-label {
  color: white;
}

.template-details-border {
  box-shadow: 0px 0px 2px 0px rgba(0, 0, 0, 0.12), 0px 2px 4px 0px rgba(0, 0, 0, 0.14);
}

.template-details-container {
  background-color: white;
  border-radius: 7px;
  margin-bottom: 5px;
  padding-bottom: 5px;
  padding-left: 10px;
  padding-right: 10px;
  width: 100%;
  position: relative;
  flex-wrap: wrap;
}

.template-text-container {
  background-color: var(--brand-blue-background);
  border-radius: 7px;
  min-height: 50px;
  padding-left: 12px;
  padding-right: 12px;
  padding-top: 10px;
  padding-bottom: 10px;
  position: relative;
  white-space: normal;
  border: 3px solid var(--brand-blue-background);
  overflow-wrap: break-word;
}

.template-text-container-diff {
  background-color: transparent !important;
}

.template-text-container-footer {
  display: flex;
  align-items: center;
  height: 18px;
  margin-top: 2px;
  margin-bottom: -5px;
  justify-content: space-between;
  align-items: center;
}

.waitlist-link {
  color: white;
  text-decoration: underline;
  transition: var(--transition-background);
}

.waitlist-link:hover {
  color: var(--brand-blue);
}

.welcome-banner-text-container {
  max-width: 380px;
  padding: 15px;
}

.welcome-banner img {
  height: 20px;
  width: 20px;
}

.welcome-banner-text {
  color: #fff;
  font-size: 14px;
  font-weight: normal;
  line-height: 22px;
  text-align: center;
  align-items: center;
}

.welcome-title-text {
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.2px;
  line-height: 24px;
  text-align: center;
}

.modal-form-container {
  padding: 10px;
  border-radius: 4px;
  transition: height 0.3s ease;
  overflow: hidden; /* Add this line to disallow vertical scroll */
}

.modal-content {
  height: auto;
  padding: 10px;
  padding-bottom: 0px;
}

.modal-content.open {
  height: 350px;
  overflow: hidden;
}

.centered {
  margin-left: auto;
  margin-right: auto;
}

.text-field {
  border-width: 2px;
  margin-top: 12px;
}

.modal-button {
  margin-bottom: 10px;
  font-weight: bold;
  border-radius: 4px !important;
}

.modal-button-primary {
  background-color: var(--brand-blue);
  padding: 0 25px;
  overflow: none;
  border: var(--brand-blue) 1px solid;
  transition: var(--transition-background);
}

.modal-button-primary:hover {
  background-color: var(--brand-blue-hover);
  border: var(--brand-blue-hover) 1px solid;
}

.modal-button-primary:disabled {
  opacity: 40%;
  cursor: not-allowed;
}

.modal-button-secondary {
  background-color: rgb(237, 236, 236);
  color: var(--text-off-black);
  font-weight: bold;
  border: lightgray 1px solid;
  transition: var(--transition-background);
}

.modal-button-secondary:hover {
  background-color: lightgray;
}

.modal-footer {
  position: inherit;
  display: flex;
  justify-content: end;
  flex-direction: row;
  gap: 5px;
}

.modal-footer.select-playbook {
  justify-content: center !important;
  margin-top: 20px;
}

.subtext {
  color: var(--secondary-gray);
  font-size: x-small;
}

.placeholder-text {
  color: gray;
  transform: skewX(-5deg); /* Adjust the angle to your preference */
  display: inline-block;
}

.text-description {
  color: var(--secondary-gray);
  font-size: small;
  margin-top: 2px;
}

.redlines-unsupported {
  display: flex;
  align-items: center;
  margin-top: 4px;
  gap: 3px;
  margin-left: 4px;
}

.disabled-redlines-message {
  font-size: 0.55rem;
  font-weight: bold;
  margin-top: 2px;
  color: #f87171;
  text-align: right;
}

.pincites-divider {
  width: 100%;
  height: 2px;
  border-radius: 1px;
  background: var(--grey-200, #e9ebed);
  margin: 10px 0;
}

.guidance-container {
  position: relative;
}

.guidance-content {
  max-height: 20px;
  overflow: hidden;
  transition: max-height 0.2s ease-in-out;
}

.guidance-content.expanded {
  max-height: 2000px; /* A large value to ensure all content is shown */
}

.show-more-link {
  color: var(--secondary-gray);
  text-decoration: underline;
  font-size: x-small;
  display: block;
  text-align: right;
  margin-top: 0.1em;
  transition: var(--transition-background);
}

.show-more-link:hover {
  color: var(--brand-blue-hover);
}

.link {
  color: inherit;
}

.link:hover {
  color: var(--brand-blue-hover);
}

.menu-icon {
  color: var(--secondary-gray);
  transform: scale(0.8);
}

.rendered-text-list {
  list-style-type: disc;
  padding-left: 30px;
}

.rendered-text-list-item {
  padding-left: 5px;
}
