/*!****************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[12].oneOf[12].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[12].oneOf[12].use[3]!./components/App.css ***!
  \****************************************************************************************************************************************************************************************************************************************************************/
.file-body {
  padding: 0;
  margin: 0;
  background-color: var(--techwave-border-color);
  font-family: Arial, serif;
  width: calc(98vw - var(--techwave-left-panel-width));
  overflow-x: hidden;
}

.file-body p {
  margin-bottom: 0;
  font-family: "Montserrat", sans-serif;
}

.file-body,
.file-body p,
.file-body strong,
.file-body button,
.file-body h1,
.file-body h2,
.file-body h3,
.file-body h4,
.file-body h5,
.file-body h6 {
  font-family: "Montserrat", sans-serif !important;
}

.file-container p {
  margin: 0;
  color: var(--techwave-heading-color);
}

button {
  color: var(--techwave-heading-color);
  background-color: var(--techwave-some-a-bg-color);
  padding-inline: 0.5vw;
  padding-block: 0.5vh;
  border-radius: 5px;
  transition: 150ms;
  display: flex;
  align-items: center;
  justify-content: center;
}

button:hover {
  color: var(--techwave-heading-color);
  cursor: pointer;
  transition: 150ms;
}

button > img {
  width: 12.5px;
  margin-right: 0.25vw;
}

.file-container {
  display: grid;
  grid-template-rows: 1fr 6fr 6fr;
  grid-gap: 1px;
  height: 100vh;
  width: 100%;
  grid-template-columns: 4fr 6fr;
  padding-right: 1%;
}

@media only screen and (max-width: 1024px) {
  .file-container {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 6fr 6fr 6fr;
    height: 100vh;
  }
}

.file-container > div {
  background-color: var(--techwave-site-bg-color);
}

.header {
  grid-column-start: 1;
  grid-column-end: 3;
  padding-inline: 1vw;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--techwave-hover-color);
  padding-top: 25px;
  padding-bottom: 25px;
}

.header > div {
  display: flex;
  gap: 0.5vw;
}

.header > p {
  margin-bottom: 0 !important;
}

.input {
  display: flex;
  flex-direction: column;
  padding-inline: 0.5vw;
  padding-block: 1vh;
}

.input > textarea {
  border: none;
  overflow: visible;
  outline: none;
  box-shadow: none;
  resize: none;
  height: 100%;
}

.input-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
}

.input-actions > div {
  display: flex;
  gap: 0.5vw;
}

.documents {
  grid-column-start: 1;
  grid-column-end: 2;
  display: flex;
  flex-direction: column;
}

.documents-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-inline: 1vw;
  padding-block: 2vh;
}

.documents-header > div:first-child {
  flex-direction: column;
  align-items: flex-start;
}

.documents-header > div {
  display: flex;
  gap: 0.5vw;
  align-items: center;
}

.documents-header > div > p {
  font-weight: bold;
  margin-bottom: -10px !important;
  font-size: 0.875rem;
}

.documents-header > div > span {
  opacity: 50%;
  font-size: 10px;
}

.documents-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 12px;
  font-size: 14px;
  pointer-events: none;
}

.documents-hint > * {
  pointer-events: none;
}

.large-icon {
  max-width: none !important;
  max-height: none !important;
  margin: 10%;
  width: 50px;
  height: 50px;
}

.documents-content {
  padding-inline: 7px;
  padding-block: 10px;
  display: flex;
  flex-direction: column;
  gap: 1vh;
}

.documents-content > div {
  display: flex;
  gap: 15px;
}

.documents-content > div button {
  margin-left: auto;
}

.documents-content > div > div {
  display: flex;
  font-size: 15px;
}

.upload-status {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0.5rem 0;
  padding-inline: 1vw;
  font-size: 14px;
}

.progress-container {
  width: 100%;
  height: 6px;
  background-color: #ddd;
  border-radius: 3px;
  margin-top: 10px;
  overflow: hidden;
  position: relative;
}

.progress-bar {
  position: absolute;
  height: 100%;
  width: 30%;
  background-color: var(--techwave-border-color);
  animation: moveRight 1.5s linear infinite;
  border-radius: 3px;
}

@keyframes moveRight {
  0% {
    left: -30%;
  }

  100% {
    left: 100%;
  }
}

.documents-button > img {
  margin-right: 0 !important;
  width: 12.5px;
}

.documents-actions {
  padding-inline: 0.5vw;
  padding-block: 1vh;
  display: flex;
  flex-direction: column;
  gap: 1vh;
}

.documents-actions > button {
  background-color: var(--techwave-main-color);
  color: #fff;
  padding-inline: 1vw;
  padding-block: 1.5vh;
  font-size: 16px;
}

.output {
  overflow-y: scroll;
  grid-column-start: 2;
  grid-row-start: 2;
  grid-row-end: 4;
  padding-inline: 0.5vw;
  padding-block: 1vh;
  padding: 20px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.output::-webkit-scrollbar {
  display: none;
}

@media only screen and (max-width: 1024px) {
  .output {
    grid-column-start: 1;
    grid-row-start: 4;
    padding-inline: 0.5vw;
    padding-block: 1vh;
  }
}

.export-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
}

.export-modal-content {
  background-color: white;
  border-radius: 5px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 1001;
}

.export-modal > div {
  padding-inline: 0.25vw;
  padding-block: 0.5vh;
  background-color: var(--techwave-site-bg-color);
  border-radius: 5px;
  display: flex;
  flex-direction: column;
  border: solid 1px var(--techwave-hover-color);
}

.export-modal > div > .export-modal-close {
  align-self: end;
}

.export-modal > div > p {
  text-align: center;
  margin-block: 2vh;
  font-size: 20px;
}

.export-modal > div > .export-modal-actions {
  display: flex;
  gap: 5px;
  padding-inline: 0.5vw;
  padding-block: 1vh;
}

.export-modal > div > .export-modal-actions > button {
  padding-inline: 1vw;
  padding-block: 5vh;
}

.export-modal > div > .export-modal-actions > button:hover {
  background-color: var(--techwave-heading-color);
}

.export-modal > div > .export-modal-actions > button > img {
  width: 50px;
}

.assistant-icon {
  max-width: 15px;
  max-height: 15px;
  fill: var(--techwave-heading-color);
}

.documents-content .documents-button .assistant-icon {
  max-width: 20px;
  max-height: 20px;
  fill: var(--techwave-heading-color);
}

.documents-content .file-badge {
  padding: 3px;
}

.placeholder p {
  color: var(--techwave-heading-color);
  font-size: 14px;
}

.placeholder ul {
  color: var(--techwave-heading-color);
  margin-top: 0px;
}

.placeholder il {
  color: var(--techwave-heading-color);
}

.placeholder h2 {
  color: var(--techwave-heading-color);
  font-size: 20px;
  margin-top: 0.8rem;
  margin-bottom: 0.8rem;
}

.header-rapport {
  grid-column-start: 1;
  grid-column-end: 3;
  padding-inline: 1vw;
  font-weight: bold;
  display: flex;
  background-color: var(--techwave-main-color) !important;
  justify-content: space-between;
  align-items: center;
  color: var(--techwave-hover-color);
}

.header-rapport > div {
  display: flex;
  gap: 0.5vw;
}

.header-rapport p {
  color: #fff !important;
}

.loading {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
}

.loading p {
  padding-bottom: 50px;
}

.issues-editor button {
  color: var(--techwave-heading-color);
  background-color: var(--techwave-some-a-bg-color);
  padding-inline: 0.5vw;
  padding-block: 0.5vh;
  border-radius: 5px;
  transition: 150ms;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.edit-issues-header {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 10px;
}

.follow-up-header {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 10px;
}

.dropdown-container {
  position: relative;
  display: inline-block;
}

.prompt-dropdown {
  position: absolute;
  bottom: 100%;
  left: 0;
  background-color: var(--techwave-site-bg-color);
  border: 1px solid var(--techwave-border-color);
  box-shadow: 0px 0px 2px var(--techwave-hover-color);
  border-radius: 8px;
  width: 31rem;
  z-index: 1000;
  margin-top: 10px;
}

.search-input {
  flex-grow: 1;
  margin-right: 10px;
  padding: 5px;
}

.prompt-dropdown ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
  max-height: 270px;
  overflow-y: auto;
}

.prompt-dropdown li {
  display: flex;
  align-items: center;
  padding: 10px;
  margin-bottom: 8px;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.prompt-dropdown li:hover {
  background-color: var(--techwave-some-a-bg-color);
}

.prompt-dropdown-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  border-bottom: 1px solid var(--techwave-border-color);
}

.prompt-dropdown-header button {
  border: none;
  cursor: pointer;
  font-size: 17px;
  padding: 10px;
}

.file-body {
  display: flex;
  position: relative;
  flex-direction: row;
  width: 100%;
  height: calc(100vh - 20px);
  box-shadow: 0px 0px 1px 0px rgba(0, 0, 0, 0.75);
  z-index: 102;
  border-radius: 14px;
}

.documents-sidebar {
  width: 15%;
  height: 100%;
  background-color: var(--techwave-site-bg-color);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow-y: auto;
}

.documents {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.chat-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  background-color: var(--techwave-site-bg-color);
  padding-top: 100px;
  box-shadow: 0px 0px 1px 0px rgba(0, 0, 0, 0.75);
}

.chat-header-buttons {
  padding-right: 60px;
  position: fixed;
  top: 10%;
  right: 0;
  z-index: 1;
}

.chat-messages {
  display: flex;
  flex-direction: column;
  flex: 1 1;
  overflow-y: auto;
  padding: 100px 20px 20px 20px;
  -ms-overflow-style: none;
  scrollbar-width: none;
  border-radius: 10px;
  margin-left: 100px;
  margin-right: 100px;
  margin-top: -14vh;
  text-align: left;
}

.chat-messages::-webkit-scrollbar {
  width: 0px;
  background: transparent;
}

.chat-message {
  max-width: 100%;
  border-radius: 12px;
  font-size: 16px;
  line-height: 1.5;
  word-wrap: break-word;
}

.chat-message.assistant-msg {
  margin-right: auto;
  align-self: flex-start;
  width: 100%;
}

.fadeTrailing {
  animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

.chat-input-box {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 8px;
  margin-bottom: 10px;
  gap: 8px;
  border: 1px solid var(--techwave-border-color);
  border-radius: 0;
  background: linear-gradient(
        var(--techwave-site-bg-color),
        var(--techwave-site-bg-color)
      )
      padding-box,
    conic-gradient(
        from var(--angle),
        var(--techwave-border-color),
        var(--techwave-main-color),
        var(--techwave-border-color)
      )
      border-box;
  background-origin: border-box;
  background-clip: padding-box, border-box;
  transition: border 0.5s ease, background 0.5s ease;
  --angle: 0deg;
}

.chat-input-box:focus-within {
  animation: rotate 8s linear infinite;
  border: 1px solid transparent;
}

@keyframes rotate {
  to {
    --angle: 360deg;
  }
}

.send-button-wrapper {
  display: flex;
  justify-content: flex-end;
}

.chat-input {
  display: flex;
  flex-direction: column;
  margin-right: 120px;
  margin-left: 120px;
}

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

.chat-input-submit button {
  background-color: var(--techwave-main-color);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
}

.chat-input-submit button:hover {
  opacity: 0.9;
}

.chat-input-row {
  display: flex;
  gap: 10px;
  align-items: flex-end;
}

.chat-input-box textarea {
  width: 100%;
  border: none;
  resize: none;
  font-size: 16px;
  font-family: Arial, serif;
  outline: none;
  padding: 10px;
  background-color: transparent;
  min-height: 40px;
  max-height: 30vh;
  overflow-y: hidden;
  line-height: 1.5;
  box-sizing: border-box;
}

.send-button {
  width: 60px;
  height: 44px;
  border-radius: 4px;
  cursor: pointer;
  border: none;
  background-color: var(--techwave-some-a-bg-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--techwave-heading-color);
  transition: all 0.3s ease;
}

.send-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.send-button:hover:enabled {
  opacity: 0.9;
}

@media only screen and (max-width: 1024px) {
  .file-body {
    flex-direction: column;
  }

  .documents-sidebar {
    width: 100%;
    height: auto;
    border-right: none;
    border-bottom: 1px solid var(--techwave-border-color);
  }

  .chat-container {
    width: 100%;
    height: calc(100vh - 200px);
  }
}

.template-selection .dropdown-toggle-button {
  background-color: var(--techwave-some-r-bg-color);
  color: var(--techwave-heading-color);
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0px 4px 16px rgba(0, 0, 0, 0.1);
  width: calc(100% - 32px);
  margin-left: 16px;
  margin-right: 16px;
}

.template-selection .dropdown-toggle-button:hover {
  background-color: var(--techwave-some-a-bg-color);
}

.template-selection .dropdown-toggle-button::after {
  content: "\25BC";
  margin-left: 12px;
  font-size: 14px;
  color: #888;
}

.template-selection label {
  font-size: 18px;
  font-weight: bold;
  color: var(--techwave-heading-color);
  margin-bottom: 8px;
  display: block;
  margin-left: 16px;
  padding: 10px 0px 0px 0px;
}

.template-dropdown .close-button {
  background: none;
  border: none;
  font-size: 16px;
  cursor: pointer;
  color: #888;
  padding: 0;
  margin: 0;
  align-self: flex-end;
  display: inline-block;
}

.template-selection {
  width: 100%;
  position: relative;
}

.template-dropdown {
  position: absolute;
  background-color: var(--techwave-site-bg-color);
  border-radius: 12px;
  box-shadow: 0px 4px 16px var(--skygge-farge);
  padding: 16px;
  width: 100%;
  font-family: "Arial", sans-serif;
  z-index: 1;
  width: calc(100% - 32px);
  margin-left: 16px;
  margin-right: 16px;
  max-height: 27vh;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.template-dropdown::-webkit-scrollbar {
  display: none;
}

.template-dropdown-header {
  display: flex;
  justify-content: flex-end;
}

.close-button {
  position: absolute;
  top: 8px;
  right: 30px;
  background: none;
  border: none;
  cursor: pointer;
  color: #888;
  padding: 4px;
}

.close-button svg {
  width: 30px;
  height: 30px;
}

.template-dropdown ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.template-dropdown li {
  display: flex;
  align-items: center;
  padding: 10px;
  margin-bottom: 8px;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.template-dropdown li:last-child {
  margin-bottom: 0;
}

.template-dropdown li:hover {
  background-color: var(--techwave-some-a-bg-color);
}

.template-dropdown li img {
  margin-right: 12px;
}

.template-icon {
  width: 31px;
  height: 31px;
  display: block;
  fill: var(--techwave-heading-color);
}

.submit-button:disabled {
  background-color: var(--techwave-some-a-bg-color);
  color: #666666;
  cursor: not-allowed;
}

.drop-zone {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border: 5px dashed blue;
  background-color: rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  pointer-events: none;
}

.drop-zone.active {
  pointer-events: auto;
}

.fn__chat_comment button:disabled {
  cursor: not-allowed;
}

.file-container-contract {
  display: grid;
  grid-template-rows: 1fr 6fr 6fr;
  grid-gap: 1px;
  height: 100vh;
  width: 100%;
  grid-template-columns: 4fr 9fr;
  padding-right: 1%;
}

@media only screen and (max-width: 1024px) {
  .file-container-contract {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 6fr 6fr 6fr;
    height: 100vh;
  }
}

.file-container-contract > div {
  background-color: var(--techwave-site-bg-color);
}

.output-contract {
  overflow-y: scroll;
  grid-column-start: 2;
  grid-row-start: 2;
  grid-row-end: 4;
  padding-inline: 0.5vw;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.output-contract::-webkit-scrollbar {
  display: none;
}

@media only screen and (max-width: 1024px) {
  .output-contract {
    grid-column-start: 1;
    grid-row-start: 4;
    padding-inline: 0.5vw;
    padding-block: 1vh;
  }
}

.pdf-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding-top: 2%;
  padding-bottom: 2%;
}

.pdf-filename p {
  font-size: 1.2rem;
  font-weight: bold;
  color: #000;
  margin: 0;
}

.pdf-container {
  width: 75%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-radius: 8px;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
  background-color: #fff;
}

.pdf-filename {
  width: 100%;
  text-align: center;
  background-color: #ffffffc9;
  padding: 10px;
  border-radius: 8px 8px 0px 0;
  border-bottom: 1px solid var(--techwave-border-color);
  position: sticky;
  top: 0;
  z-index: 10;
}

.pdf-canvas-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pdf-page-canvas {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  border: none;
}

.chat-bubble-user {
  margin: 10px 10px 10px 10px;
  padding: 8px 5px 8px 10px;
  border-radius: 2px 20px 20px 20px;
  background-color: var(--techwave-some-a-bg-color);
  color: var(--techwave-heading-color);
}

.chat-bubble-assistant {
  border-radius: 2px 20px 20px 20px;
  margin: 10px 10px 10px 10px;
  padding: 5px 5px 5px 10px;
  background-color: var(--techwave-some-r-bg-color);
  border: 1px solid var(--techwave-border-color);
}

.input-contract button {
  background-color: var(--techwave-main-color);
  color: #fff;
  padding-inline: 1vw;
  padding-block: 1.5vh;
  font-size: 16px;
}

.input-contract {
  display: flex;
  flex-direction: column;
  padding-inline: 0.5vw;
  padding-block: 1vh;
}

.comment-container {
  width: 10%;
  max-width: 150px;
  overflow-y: auto;
}

.pdf-page-container {
  display: flex;
  width: 100%;
  justify-content: center;
}

.comments-container {
  display: flex;
  flex-direction: column;
  max-width: 10%;
  margin-right: 10px;
  position: relative;
}

.comment-div {
  margin-bottom: 10px;
  font-family: Arial, sans-serif;
}

.comment-div button {
  font-size: 14px;
  font-weight: bold;
  color: #333;
  background-color: #f0f0f0;
  border: 1px solid #ccc;
  border-radius: 4px;
  cursor: pointer;
  padding: 5px 10px;
}

.comment-div div {
  display: none;
  font-size: 14px;
  margin-top: 5px;
}

.pdf-page-wrapper {
  position: relative;
}

.pdf-and-comments {
  display: flex;
  align-items: flex-start;
}

.pdf-container {
  flex: 1;
  margin-right: 20px;
}

.comments-panel {
  width: 300px;
  background: #f9f9f9;
  border-left: 1px solid #ccc;
  padding: 10px;
  overflow-y: auto;
}

.documents-header button {
  font-size: 25px;
  padding: unset;
  padding-left: 8px;
  padding-right: 8px;
  border-radius: 3px;
  background-color: var(--techwave-body-color);
  color: var(--techwave-site-bg-color);
}

.info-banner {
  text-align: center;
  padding-top: 10px;
  padding-bottom: 10px;
}

.user-msg .user-text {
  font-size: 27px;
  font-weight: 600;
  margin-top: 1rem;
  font-family: "Montserrat";
  white-space: pre-wrap;
}

.assistant-msg .message-header {
  font-weight: bold;
  padding-bottom: 1rem;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid;
  border-color: var(--techwave-border-color);
  margin-top: 0.75rem;
}

.reference-box {
  position: relative;
  display: inline-block;
  background-color: #d9eaff;
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 0.75rem;
  margin: 0 2px;
  color: #003366;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.reference-box:hover {
  background-color: #a7d2ff;
}

.tooltip-popup {
  position: absolute;
  background-color: #fefefe;
  border: 1px solid #ccc;
  padding: 12px 16px;
  font-size: 14px;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  pointer-events: auto;
  white-space: pre-wrap;
  max-width: 400px;
  max-height: 300px;
  overflow-y: auto;
  line-height: 1.4;
  min-width: 250px;
  width: -moz-max-content;
  width: max-content;
  transform: translateX(-50%);
}

.tooltip-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 3%;
  font-weight: bold;
  color: #000;
  line-height: 1.2;
  font-size: 14px;
}

.tooltip-icon-wrapper {
  background-color: #e53935;
  border-radius: 6px;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.tooltip-icon.file-folder-icon {
  fill: var(--techwave-header-bg-color);
}

.tooltip-content {
  font-size: 12px;
  color: #555;
}

.tooltip-page {
  margin-left: 6px;
  font-weight: 400;
  color: #666;
  font-size: 12px;
}

.tooltip-footer {
  display: flex;
  justify-content: space-between;
  flex-direction: row-reverse;
  align-items: end;
  margin-top: 12px;
  font-size: 12px;
  color: var(--techwave-hover-color);
  font-weight: 400;
}

.file-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  padding: 2px;
}

.file-badge.pdf {
  background: #e53935;
}

.file-badge.word,
.file-badge.docx,
.file-badge.doc {
  background: #1e88e5;
}

.file-badge.excel,
.file-badge.xls,
.file-badge.xlsx {
  background: #43a047;
}

.file-badge.ppt,
.file-badge.pptx,
.file-badge.powerpoint {
  background: #e67c30;
}

.file-badge.csv {
  background: #7cb342;
}

.file-badge.txt,
.file-badge.text {
  background: #607d8b;
}

.file-badge.json {
  background: #8e24aa;
}

.file-badge.image,
.file-badge.jpg,
.file-badge.jpeg,
.file-badge.png,
.file-badge.gif {
  background: #f4b400;
}

.file-badge.archive,
.file-badge.zip,
.file-badge.rar {
  background: #616161;
}

.file-badge.folder {
  background: #fbc02d;
}

.file-badge.other {
  background: #9e9e9e;
}

.folder-row {
  cursor: pointer;
}

.file-row p,
.folder-row p {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 500;
}

.folder-children {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-left: 1.5rem;
}

.folder-block {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.folder-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.folder-content {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding-left: 1.5rem;
}

.file-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  overflow: hidden;
}

.documents-content .documents-button .file-folder-icon {
  fill: var(--techwave-header-bg-color);
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }

  100% {
    background-position: 200% 0;
  }
}

.skeleton-box {
  background: linear-gradient(90deg, #e0e0e0 0%, #f0f0f0 50%, #e0e0e0 100%);
  background-size: 200% 100%;
  animation: shimmer 1.2s infinite;
  border-radius: 4px;
}

.progress-wrapper {
  margin: 12px 0;
  background: #eee;
  border-radius: 6px;
  position: relative;
  height: 20px;
}

.progress-fill {
  background: #4caf50;
  height: 100%;
  border-radius: 6px 0 0 6px;
  transition: width 0.3s;
}

.progress-wrapper span {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, 0);
  font-size: 0.8rem;
  line-height: 20px;
}

.assistant-msg .bot-text {
  font-size: 17px;
  font-weight: 400;
  white-space: normal;
  line-height: 1.6;
  color: var(--techwave-body-color);
  padding: 0.5rem 0;
}

.assistant-msg .bot-text h1,
.assistant-msg .bot-text h2,
.assistant-msg .bot-text h3,
.assistant-msg .bot-text h4,
.assistant-msg .bot-text h5,
.assistant-msg .bot-text h6 {
  font-weight: 600;
  line-height: 1.3;
  margin: 1em 0 0.5em;
}

.assistant-msg .bot-text h1 {
  font-size: 1.8rem;
}

.assistant-msg .bot-text h2 {
  font-size: 1.5rem;
}

.assistant-msg .bot-text h3 {
  font-size: 1.3rem;
}

.assistant-msg .bot-text h4 {
  font-size: 1.1rem;
}

.assistant-msg .bot-text h5 {
  font-size: 1rem;
}

.assistant-msg .bot-text h6 {
  font-size: 0.95rem;
  color: #666;
}

.assistant-msg .bot-text p {
  margin: 0.5em 0;
}

.assistant-msg .bot-text ul,
.assistant-msg .bot-text ol {
  margin: 0.5em 0 0.5em 1.5em;
  padding-left: 1em;
}

.assistant-msg .bot-text li {
  margin-bottom: 0.3em;
}

.assistant-msg .bot-text code {
  border-left: 4px solid #ccc;
  background: #f5f5f5;
  padding: 0.2em 0.4em;
  border-radius: 4px;
  font-family: monospace;
  font-size: 0.95em;
}

.assistant-msg .bot-text pre {
  border-left: 4px solid #ccc;
  background: #f5f5f5;
  padding: 1em;
  border-radius: 6px;
  overflow-x: auto;
  font-family: monospace;
  font-size: 0.95em;
  line-height: 1.4;
  margin: 1em 0;
}

.assistant-msg .bot-text blockquote {
  border-left: 4px solid #ccc;
  margin: 1em 0;
  padding-left: 1em;
  color: #555;
  background: #fafafa;
}

.assistant-msg .bot-text blockquote p {
  margin: 0.5em 0;
}

.assistant-msg .bot-text blockquote code {
  background: #eee;
  padding: 0.2em 0.4em;
  border-radius: 4px;
  font-family: monospace;
}

.assistant-msg .bot-text blockquote pre {
  background: #f0f0f0;
  padding: 1em;
  border-radius: 4px;
  overflow-x: auto;
  font-family: monospace;
}

.assistant-msg .bot-text blockquote ul,
.assistant-msg .bot-text blockquote ol {
  padding-left: 1.5em;
  margin: 0.5em 0;
}

.assistant-msg .bot-text blockquote li {
  margin-bottom: 0.3em;
}

.assistant-msg .bot-text blockquote h1,
.assistant-msg .bot-text blockquote h2,
.assistant-msg .bot-text blockquote h3,
.assistant-msg .bot-text blockquote h4,
.assistant-msg .bot-text blockquote h5,
.assistant-msg .bot-text blockquote h6 {
  margin: 0.8em 0 0.4em;
}

.assistant-msg .bot-text hr {
  border: none;
  border-top: 1px solid #ddd;
  margin: 1.5em 0;
}

.assistant-msg .bot-text a {
  color: #0b5ed7;
  text-decoration: underline;
}

.assistant-msg .bot-text a:hover {
  text-decoration: none;
}

.assistant-msg .bot-text table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 8px;
  overflow: hidden;
  margin: 1em 0;
  font-size: 0.95em;
}

.assistant-msg .bot-text table tr:first-child th:first-child {
  border-top-left-radius: 8px;
}

.assistant-msg .bot-text table tr:first-child th:last-child {
  border-top-right-radius: 8px;
}

.assistant-msg .bot-text table tr:last-child td:first-child {
  border-bottom-left-radius: 8px;
}

.assistant-msg .bot-text table tr:last-child td:last-child {
  border-bottom-right-radius: 8px;
}

.assistant-msg .bot-text th,
.assistant-msg .bot-text td {
  border: 1px solid #ddd;
  padding: 0.5em 0.75em;
  text-align: left;
}

.assistant-msg .bot-text th {
  background-color: #f0f0f0;
  font-weight: 600;
}

.progress-fraction-user {
  font-size: 0.8rem;
  color: #999;
  margin: 4px 0 0 8px;
}

.loading-text-header {
  font-style: italic;
}

.timeline {
  position: relative;
  margin: 4px 0 0 0;
  padding-left: 10px;
}

.timeline-item {
  position: relative;
  font-size: 0.85rem;
  color: var(--techwave-body-color);
  margin: 10px 0;
  padding-left: 8px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -10px;
  top: 5px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #888;
  box-shadow: 0 0 2px rgba(0, 0, 0, 0.3);
  transition: background 0.3s ease;
}

.timeline-item.streaming::before {
  background: transparent;
  box-shadow: none;
}

.timeline-item.done::before {
  background: #4caf50;
}

.timeline-item.progress.fetch-loading::before {
  background: transparent;
  box-shadow: none;
}

.timeline-item.progress.complete::before {
  background: #4caf50;
}

.timeline-item .fetch-spinner {
  position: absolute;
  left: -10px;
  top: 5px;
  width: 10px;
  height: 10px;
  border: 2px solid #ccc;
  border-top: 2px solid transparent;
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

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

  100% {
    transform: rotate(360deg);
  }
}

.delete-cross {
  position: relative;
  width: 14px;
  height: 14px;
  cursor: pointer;
}

.delete-cross::before,
.delete-cross::after {
  content: "";
  position: absolute;
  top: 6px;
  left: 0;
  width: 14px;
  height: 2px;
  background-color: #ff6961;
}

.delete-cross::before {
  transform: rotate(45deg);
}

.delete-cross::after {
  transform: rotate(-45deg);
}

.file-text-block {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.file-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.file-type-label {
  margin-top: -8px;
  font-size: 12px;
  color: var(--techwave-body-color);
}

.close-button-file {
  all: unset;
  padding: 0px 10px 10px 10px;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-icon {
  position: relative;
  width: 20px;
  height: 20px;
}

.close-icon::before,
.close-icon::after {
  content: "";
  position: absolute;
  left: 0;
  top: 70%;
  width: 100%;
  height: 2px;
  background-color: var(--techwave-hover-color);
  transform-origin: center;
}

.close-icon::before {
  transform: rotate(45deg);
}

.close-icon::after {
  transform: rotate(-45deg);
}

.pdf-sidebar {
  width: 30vw;
  min-width: 300px;
  background: var(--techwave-some-a-bg-color);
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  z-index: 3000;
}

.pdf-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px;
  background: var(--techwave-site-bg-color);
  font-weight: 600;
}

.pdf-header span {
  font-family: system-ui;
}

.pdf-viewer-container {
  flex: 1;
  position: relative;
  height: 100vh;
  overflow-y: auto;
  padding: 10px;
  box-sizing: border-box;
}

.pdf-loading-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.6);

  z-index: 10;
}

/* enkel spinner */
.spinner {
  width: 42px;
  height: 42px;
  border: 4px solid #d0d0d0;
  border-top-color: #272727;
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

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

  100% {
    transform: rotate(360deg);
  }
}

.pdf-canvas {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: 10px;
  border-radius: 10px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.pdf-highlight {
  position: absolute;
  background: rgb(255 255 0 / 31%);
  pointer-events: none;
  border-radius: 2px;
}

.custom-checkbox {
  width: 18px;
  height: 18px;
  accent-color: #007bff;
  cursor: pointer;
}

.drag-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  pointer-events: none;
}

.drag-overlay .drag-message {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  text-align: center;
  pointer-events: none;
}

.bot-text.streaming > *:last-child::after {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-left: 6px;
  border-radius: 50%;
  vertical-align: middle;
  background-color: var(--techwave-hover-color);
  animation: pulseDot 1s ease-in-out infinite;
}

@keyframes pulseDot {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.4);
    opacity: 0.4;
  }
}

@keyframes thinkingDot {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
    opacity: 0.4;
  }
  40% {
    transform: translateY(-8px);
    opacity: 1;
  }
}

.animate-thinking-dot {
  animation: thinkingDot 1.4s ease-in-out infinite;
}

.editable-wrapper {
  display: inline-block;
  vertical-align: middle;
  min-width: 100%;
}

.editable-question-textarea {
  all: unset;
  flex: 1;
  font-family: inherit;
  line-height: 1.4;
  padding: 8px;
  border-radius: 5px;
  resize: none;
  background: var(--techwave-some-r-bg-color);
  min-width: 90%;
  min-height: calc(1.4em * 1);
  max-height: calc(1.4em * 7);
}

.user-text-content {
  display: inline;
  line-height: 1.4;
  word-break: break-word;
}

.edit-buttons {
  display: inline-flex;
  flex-direction: row;
  gap: 4px;
  align-items: center;
  margin-left: 10px;
  vertical-align: top;
}

.edit-button {
  border: none;
  background: white;
  border-radius: 8px;
  width: 32px;
  height: 32px;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #155e63;
}

.edit-button.accept {
  background-color: #2e858c;
  color: var(--techwave-site-bg-color);
  fill: currentColor;
}

.edit-button.cancel:hover,
.edit-button.edit:hover {
  background-color: #f0f0f0;
}

.hover-only {
  opacity: 0;
  transition: opacity 0.2s ease-in-out;
}

.hover-target:hover .hover-only {
  opacity: 1;
}

.edit-button-faded {
  position: absolute;
  right: 0;
  background: white;
  border: none;
  border-radius: 8px;
  width: 32px;
  height: 32px;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #155e63;
}

.edit-button-faded:hover {
  background-color: #f0f0f0;
  opacity: 1;
}

.clamp-text {
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.fade-text::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0) 60%,
    var(--techwave-site-bg-color) 100%
  );
  pointer-events: none;
}

.show-more-button {
  padding-left: 0;
}

.techwave_fn_leftpanel .juridex-chat-wrapper .sidebar_header .icon {
  position: absolute;
  left: 10px;
  top: 50%;
  margin-top: -11px;
  display: block;
}

.doc_chat__sidebar {
  flex: 0 0 auto;
  width: 0;
  overflow: hidden;
  transition: width 250ms ease;
  position: relative;
  order: 999;
  /* tving kolonnen til å ligge helt til høyre i flex-raden */
}

.doc_group__title {
  margin-left: 20px;
}

.doc_chat__sidebar.open {
  width: 15vw;
  /* ekspander fra høyre */
}

/* doc-side-submenu skal bare fylle kolonnen sin */
.doc_chat__sidebar .doc-side-submenu {
  position: relative;
  height: 100%;
  width: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  border-left: 1px solid var(--techwave-border-color);
  background: var(--techwave-site-bg-color);
  transform: none;
  transition: none;
  inset: unset;
  z-index: auto;
}

.doc_side-submenu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.doc_sidebar_header {
  text-decoration: none;
  display: block;
  height: 40px;
  line-height: 40px;
  padding: 0 0px 0 44px;
  position: relative;
  font-weight: 500;
  text-transform: uppercase;
  font-size: 14px;
  color: var(--techwave-heading-color);
  font-family: var(--techwave-heading-font-family);
  border-radius: 5px;
  margin-top: 1vh;
  margin-left: 10px;
}

.doc_sidebar_header:hover {
  background-color: var(--techwave-some-a-bg-color);
}

.doc_sidebar_header .text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  position: relative;
  top: 1px;
}

.doc_sidebar_header .icon {
  position: absolute;
  width: 24px;
  height: 24px;
  display: block;
  border-radius: 100%;
  background-color: var(--techwave-body-color);
  left: 10px;
  top: 50%;
  margin-top: -12px;
}

.doc_sidebar_header .icon:before,
.doc_sidebar_header .icon:after {
  content: "";
  position: absolute;
  background-color: var(--techwave-site-bg-color);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Vertikal strek */
.doc_sidebar_header .icon:before {
  width: 2px;
  height: 8px;
}

/* Horisontal strek */
.doc_sidebar_header .icon:after {
  width: 8px;
  height: 2px;
}

.project-icon {
  width: 20px;
  height: 20px;
  margin-right: 6px;
  /* litt luft mellom ikon og tekst */
  flex-shrink: 0;
  vertical-align: middle;
}

.doc_group__list.nested {
  padding-left: 14px;
  margin-top: 6px;
}

.doc_group__item.muted .text {
  opacity: 0.6;
}

.doc_group__list {
  list-style: none;
  margin: 15px;
}

.doc_group__item:hover .fn__chat_link .options,
.fn__chat_link.active .options {
  opacity: 1;
  pointer-events: auto;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 15, 20, 0.55);
  display: grid;
  place-items: center;
  z-index: 1000;
}

.modal-card {
  width: min(560px, 92vw);
  background: #fff;
  color: #111;
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  padding: 22px 22px 18px;
}

.modal-card h2 {
  margin: 0 0 12px 0;
  font-size: 1.25rem;
}

.modal-form {
  display: grid;
  gap: 14px;
  margin-top: 4px;
}

.modal-label {
  display: grid;
  gap: 8px;
  font-weight: 600;
}

.modal-input,
.modal-textarea {
  width: 100%;
  border: 1px solid #d5d7de;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
  outline: none;
}

.modal-input:focus,
.modal-textarea:focus {
  border-color: #4f46e5;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

input.modal-input {
  width: 100%;
  border: 1px solid #d5d7de;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
  outline: none;
  height: auto;
}

.modal-error {
  color: #b00020;
  background: #fdecec;
  border: 1px solid #f6caca;
  padding: 8px 10px;
  border-radius: 8px;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 4px;
}

.btn {
  padding: 8px 14px;
  border-radius: 0;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 600;
}

.btn-primary {
  background: transparent;
  color: var(--techwave-body-color);
  border: 1px solid var(--techwave-some-a-bg-color);
}

.btn.btn-primary {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-radius: 5px;
}

.btn.btn-primary h4 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
}

.btn.btn-primary p {
  font-size: 12px;
  margin: 0;
  line-height: 1.3;
}

.btn-primary:disabled {
  opacity: 0.7;
  cursor: default;
}

.btn-ghost {
  background: transparent;
  border-color: #d5d7de;
  color: #111;
}

.project-placeholder {
  align-items: center;
  display: flex;
  flex-direction: column;
}

.project-actions {
  margin-top: 60px;
}

.project-chats {
  margin-top: 1.5rem;
  padding: 1rem 0;
  width: 50%;
  text-align: center;
}

.project-chats h3 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  font-weight: 600;
  color: #444;
  margin-bottom: 20px;
}

.project-chat-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
  margin: 0;
}

.project-chat-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0;
  /* fjern venstre/høyre padding */
  border-radius: 0;
  cursor: pointer;
  transition: background 0.2s ease;
  width: 100%;
}

.project-chat-item:hover {
  background: var(--techwave-some-a-bg-color);
}

.project-chat-item .title {
  flex: 1;
  text-align: left;
  margin-left: 0;
  /* sørg for at ingen margin dytter teksten */
  font-size: 0.95rem;
  color: #333;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-chat-item button {
  all: unset;
  /* resetter alle default button styles */
  cursor: pointer;
  margin: 0;
  padding: 0;
  display: flex;
  /* for å holde ikonet sentrert */
  align-items: center;
  margin: 0 10px 0 10px;
}

.project-text {
  display: inline-block;
  vertical-align: middle;
  max-width: calc(100% - 40px);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.new-project {
  vertical-align: middle;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* eksisterende */
.chat-spinner {
  display: inline-block;
  width: 90%;
  height: 1.5em;
  border-radius: 0.25em;
  background: linear-gradient(90deg, #eee 25%, #ddd 37%, #eee 63%);
  background-size: 400% 100%;
  animation: shimmer 2.8s ease-in-out infinite;
}

/* 3 identiske striper, én DOM-node */
.chat-spinner.tripled {
  --line-h: 1.5em;
  /* høyde per stripe */
  --gap: 18px;
  /* avstand mellom stripene */

  display: block;
  width: 90%;
  height: calc(2 * var(--line-h) + 2 * var(--gap));

  /* tre like shimmer-lag posisjonert vertikalt */
  background: linear-gradient(90deg, #eee 25%, #ddd 37%, #eee 63%) 0 0 / 400%
      var(--line-h) no-repeat,
    linear-gradient(90deg, #eee 25%, #ddd 37%, #eee 63%) 0
      calc(var(--line-h) + var(--gap)) / 400% var(--line-h) no-repeat;

  animation: shimmerX 2.8s ease-in-out infinite;
}

@keyframes shimmer {
  0% {
    background-position: 0% 0;
  }

  100% {
    background-position: 100% 0;
  }
}

@keyframes shimmerX {
  0% {
    background-position-x: 0%, 0%, 0%;
  }

  100% {
    background-position-x: 100%, 100%, 100%;
  }
}

.pro-send-button-wrapper {
  display: flex;
  justify-content: space-between;
  position: relative;
}

.model-button {
  display: inline-flex;
  gap: 6px;
  padding: 6px 10px;
  background: #f6f7fb;
  border-radius: 4px;
  font-size: 13px;
  cursor: pointer;
  border: none;
  background-color: var(--techwave-some-a-bg-color);
  align-items: center;
  justify-content: center;
  color: var(--techwave-heading-color);
}

.model-button .chev {
  opacity: 0.7;
}

/* Popover */
.model-popover {
  position: absolute;
  bottom: calc(100% + 8px);
  /* over knappen */
  left: 0;
  min-width: 240px;
  background: var(--techwave-site-bg-color);
  border: 1px solid #e6e6e6;
  border-radius: 10px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.12);
  padding: 8px;
  z-index: 50;
}

.model-popover-header {
  font-weight: 600;
  font-size: 13px;
  padding: 6px 8px 10px;
  border-bottom: 1px solid #f0f0f0;
  margin-bottom: 6px;
}

.model-list {
  list-style: none;
  margin: 0;
  padding: 4px 0;
}

.model-list li + li {
  margin-top: 2px;
}

.model-item {
  width: 100%;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  background: transparent;
  border: none;
  text-align: left;
}

.model-icon {
  width: 32px;
  height: 18px;
  flex: 0 0 auto;
  opacity: 0.85;
}

.model-item:hover {
  background: #f7f7fb;
}

.model-item.active {
  background: #eef0ff;
}

.mi-text {
  display: flex;
  flex-direction: column;
}

.mi-title {
  font-size: 13px;
  font-weight: 600;
}

.mi-desc {
  font-size: 12px;
  color: #6b7280;
}

.model-columns {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 12px;
  min-width: 480px;
  /* gjør popup bred nok */
}

/* Layout for venstre liste + høyre detaljer i popoveren */
.model-popover-body {
  display: grid;
  grid-template-columns: 1fr 240px;
  /* venstre liste / høyre panel */
  gap: 12px;
  align-items: start;
}

/* Høyrepanelet */
.model-details {
  border-left: 1px solid #f0f0f0;
  padding-left: 12px;
}

.md-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.md-title {
  font-size: 13px;
  font-weight: 600;
}

.md-sub {
  font-size: 12px;
  color: #6b7280;
}

/* Metrikk-seksjon (barene) */
.md-metrics {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 8px 0;
}

.md-metric {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  color: #555;
}

/* Selve "meteret": 5 små blokker side om side */
.meter {
  display: inline-grid;
  grid-auto-flow: column;
  gap: 4px;
}

/* Uutfylte ruter (grå base, fast høyde/bredde så de synes) */
.meter > span {
  width: 16px;
  height: 8px;
  border-radius: 3px;
  background: #e7e7ee;
}

/* Fylte ruter – rene CSS-regler for 1..5 */
.meter[data-filled="1"] > span:nth-child(-n + 1),
.meter[data-filled="2"] > span:nth-child(-n + 2),
.meter[data-filled="3"] > span:nth-child(-n + 3),
.meter[data-filled="4"] > span:nth-child(-n + 4),
.meter[data-filled="5"] > span:nth-child(-n + 5) {
  background: var(--techwave-main-color);
  /* blå fyll */
}

/* Litt pynt nederst i panelet (valgfritt) */
.md-capacity {
  font-size: 12px;
  color: #6b7280;
  margin: 8px 0 4px;
}

.md-bullet {
  font-size: 12px;
  color: #474b57;
  margin: 6px 0 0;
}

.doc-toggle-history-button {
  position: fixed;
  top: 30px;
  right: 55px;
  padding: 7px 11px;
  border-radius: 0;
  background: var(--techwave-site-bg-color);
  color: var(--techwave-body-color);
  border: 1px solid var(--techwave-some-a-bg-color);
  cursor: pointer;
  transition: transform 0.3s ease;
  font-weight: 500;
  font-family: system-ui;
  font-size: 10px;
  z-index: 70;
}

.doc-toggle-history-button.open {
  transform: translateX(-14vw);
}

.skeleton-box {
  position: relative;
  background: #e9ecef;
  overflow: hidden;
}

.skeleton-box::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.6) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  animation: skeleton-shimmer 1.2s infinite;
}

@keyframes skeleton-shimmer {
  100% {
    transform: translateX(100%);
  }
}

.skeleton-convo .chat-message {
  margin-bottom: 16px;
}

/* Fullscreen overlay som ikke blokkerer klikk utenfor selve popup */
.alert-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  /* lar brukeren klikke på appen under */
  z-index: 9999;
  /* over alt annet */
}

/* Selve kortet – øverst og midtstilt, uten å pushe layout */
.alert-popup {
  position: absolute;
  top: 24px;
  /* "øverst", men ikke helt inntil kanten */
  left: 50%;
  transform: translateX(-50%);
  max-width: min(720px, 90vw);
  border-radius: 8px;
  padding: 12px 14px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
  border: 1px solid transparent;
  pointer-events: auto;
  /* kortet kan klikkes (for close-knapp) */
  backdrop-filter: blur(6px);
  animation: alert-slide-in 0.2s ease-out;
}

/* Temaer (ingen success) */
.alert-popup.error {
  background: #ffe8ea;
  color: #6b0007;
  border-color: #ffc2c9;
}

.alert-popup.info {
  background: #eef5ff;
  color: #0b3d91;
  border-color: #b3d1ff;
}

.alert-popup__content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.alert-popup__text {
  flex: 1;
  font-weight: 500;
  line-height: 1.3;
  word-break: break-word;
}

.alert-popup__close {
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  border: none;
  background: transparent;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  color: inherit;
  padding: 2px 4px;
  border-radius: 6px;
}

.alert-popup__close:hover {
  background: rgba(0, 0, 0, 0.06);
}

@keyframes alert-slide-in {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-6px);
  }

  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

.documents-row.file-row .documents-button:not(.file-badge),
.folder-header .documents-button:not(.file-badge) {
  display: none;
}

.documents-row.file-row:hover .documents-button:not(.file-badge),
.folder-header:hover .documents-button:not(.file-badge) {
  display: inline-flex;
  align-items: center;
}

.font-light {
font-weight: 300;
}


@keyframes spin-slow {
  to {
    transform: rotate(360deg);
  }
}

@keyframes ellipsis {
  0% {
    content: "";
  }
  33% {
    content: ".";
  }
  66% {
    content: "..";
  }
  100% {
    content: "...";
  }
}

.animate-spin-slow {
  animation: spin-slow 1.25s linear infinite;
}

.animate-ellipsis::after {
  content: "";
  animation: ellipsis 1.25s steps(4, end) infinite;
}


@keyframes pulse-smooth {
  0%, 100% {
    opacity: 0.4;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.25);
  }
}

.animate-pulse-smooth {
  animation: pulse-smooth 1.2s ease-in-out infinite;
}

