/* Legacy grid/flex rules override the browser's default [hidden] styling.
   Keep the old editor outside the session flow, including during async loads. */
#view-module-4.ws-session-mode > :not(#workSessionRoot),
#view-module-4 > [hidden],
#view-module-5 > [hidden],
#view-module-6 > [hidden],
#view-module-7 > [hidden] {
  display: none !important;
}
.ws-origin:empty,
.ws-status:empty {
  display: none;
}
.ws-field-error {
  display: block;
  color: #a22b24;
  font-weight: 600;
}
.ws-field [aria-invalid="true"] {
  border: 2px solid #a22b24;
}
.ws-field {
  scroll-margin-top: 90px;
}
.ws-session-bar > .ws-status {
  margin: 0;
  font-size: 0.9rem;
}
#workSessionRoot [hidden] {
  display: none !important;
}
.ws-entry {
  max-width: 1240px;
  margin: 44px auto 56px;
  padding: 0 16px;
}
.ws-entry > h2 {
  margin: 0 0 28px;
  color: #29302b;
  font-size: clamp(2rem, 3.2vw, 3rem);
  line-height: 1.15;
  text-align: center;
}
.ws-entry-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.ws-entry-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  padding: 26px;
  background: #fffdf8;
  border: 1px solid #d9cfbe;
  border-top: 6px solid #8d9a87;
  border-radius: 8px;
  box-shadow: 0 10px 26px rgb(45 49 40 / 7%);
}
.ws-entry-card:first-child {
  border-top-color: #ef8d55;
}
.ws-entry-card:last-child {
  border-top-color: #29302b;
}
.ws-entry-card h3 {
  margin: 0 0 12px;
  color: #29302b;
  font-size: 1.3rem;
}
.ws-entry-card p {
  flex: 1;
  margin: 0 0 24px;
  line-height: 1.55;
}
.ws-entry-card .btn.secondary {
  min-width: 155px;
  border-color: #29302b;
  background: #29302b;
  color: #fff;
  font-weight: 700;
}
.ws-entry-card .btn.secondary:hover:not([disabled]),
.ws-entry-card .btn.secondary:focus-visible {
  border-color: #45594b;
  background: #45594b;
  color: #fff;
}
.ws-view-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 14px;
  background: #f5f1e9;
  border-bottom: 1px solid #d4cabb;
}
.ws-view-nav .ws-back {
  margin-right: auto;
}
.ws-session-bar,
.ws-title,
.ws-chooser {
  background: #fffdf8;
  border: 1px solid #d9cfbe;
  border-left: 7px solid #f28c56;
  border-radius: 5px;
  padding: 20px;
  margin: 12px 0;
}
.ws-quick-choice {
  max-width: 900px;
  margin: 32px auto;
}
.ws-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}
.ws-quick-actions .btn {
  min-width: 220px;
  box-sizing: border-box;
  padding: 16px 22px;
  font-weight: 700;
}
.ws-existing-dialog {
  width: min(980px, 94vw);
  box-sizing: border-box;
}
.ws-existing-dialog .ws-dialog-toolbar {
  flex-wrap: wrap;
}
.ws-existing-dialog .ws-dialog-toolbar h2 {
  flex: 1 1 440px;
}
.ws-existing-group {
  margin-top: 20px;
  padding: 18px;
  background: #faf7f0;
  border: 1px solid #d9cfbe;
  border-left: 5px solid #8d9a87;
  border-radius: 7px;
}
.ws-existing-group:nth-of-type(1) {
  border-left-color: #ef8d55;
}
.ws-existing-group:nth-of-type(3) {
  border-left-color: #29302b;
}
.ws-existing-group h3 {
  margin: 0 0 8px;
}
.ws-existing-explanation {
  margin: 0 0 14px;
  color: #555a51;
  line-height: 1.5;
}
.ws-existing-list {
  max-height: 230px;
  overflow: auto;
}
.ws-existing-list > button,
.ws-existing-list .ws-legacy-choice {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin: 4px 0;
  text-align: left;
}
.ws-existing-list .ws-choice-row {
  display: grid;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: #fffdf8;
}
.ws-existing-list .ws-choice-row:hover,
.ws-existing-list .ws-choice-row:focus-visible {
  border-color: #8d9a87;
  background: #f1f1e9;
}
.ws-session-row {
  grid-template-columns: 1.3fr 1.4fr .85fr .85fr 1.3fr 1.1fr;
}
.ws-customer-row,
.ws-legacy-card-row {
  grid-template-columns: 1.5fr 1fr 1fr;
}
.ws-choice-cell {
  min-width: 0;
  overflow-wrap: anywhere;
}
.ws-choice-cell small {
  display: block;
  margin-bottom: 4px;
  color: #61675d;
  font-size: .76rem;
  font-weight: 600;
}
.ws-choice-cell strong {
  display: block;
  color: #29302b;
  font-size: .92rem;
}
.ws-legacy-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ws-legacy-row .ws-legacy-choice {
  flex: 1;
  min-width: 0;
}
.ws-legacy-row button:last-child {
  flex: none;
}
.ws-session-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}
.ws-session-bar small {
  margin-right: auto;
}
.ws-ai-import-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}
.ws-ai-import-list {
  display: grid;
  gap: 8px;
  max-height: 45vh;
  overflow: auto;
}
.ws-ai-import-item {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 2px 8px;
  padding: 10px;
  border: 1px solid #d9cfbe;
  border-radius: 5px;
}
.ws-ai-import-item input {
  grid-row: span 2;
}
.ws-ai-import-item small {
  overflow-wrap: anywhere;
}
.ws-ai-import-unmapped {
  margin: 16px 0;
}
.ws-ai-import-unmapped p {
  margin: 7px 0;
}
.ws-dialog [hidden] {
  display: none !important;
}
.ws-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 22px;
}
.ws-sections {
  background: #fffdf8;
  padding: 14px;
  align-self: start;
  position: sticky;
  top: 80px;
  max-height: 80vh;
  overflow: auto;
}
.ws-sections button {
  display: block;
  text-align: left;
  border: 0;
  width: 100%;
  margin: 7px 0;
}
.ws-sections .ws-section-link {
  padding: 10px 12px;
  border-radius: 5px;
  line-height: 1.3;
}
.ws-section-link .ws-section-progress {
  display: block;
  margin-top: 3px;
  font-size: .76rem;
  font-weight: 600;
  opacity: .9;
}
.ws-section-link .ws-section-progress.is-complete {
  color: #176b39;
}
.ws-sections .ws-section-link.is-active {
  background: #222925;
  color: white;
}
.ws-sections .ws-section-link.is-active .ws-section-progress.is-complete {
  color: #8de1a2;
}
.ws-section {
  border: 1px solid #d8cfbf;
  border-radius: 8px;
  margin-bottom: 18px;
  background: #fffdf8;
}
.ws-section > summary {
  background: #eae4d8;
  padding: 18px;
  cursor: pointer;
  border-radius: 8px;
}
.ws-section summary small {
  display: block;
  margin: 5px 0 0 20px;
  color: #65685e;
}
.ws-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: 20px;
}
.ws-field label {
  display: block;
  font-weight: 600;
  margin-bottom: 5px;
}
.ws-field input:not([type="checkbox"]),
.ws-field select,
.ws-field textarea,
.ws-dialog input:not([type="checkbox"]),
.ws-dialog select,
.ws-dialog textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 9px;
  border: 1px solid #bab7ac;
  border-radius: 4px;
  background: white;
  color: #262b26;
}
.ws-field textarea {
  min-height: 100px;
  resize: vertical;
}
.ws-field:has(textarea),
.ws-field:has(.ws-scope) {
  grid-column: 1/-1;
}
.ws-field small {
  display: block;
  color: #6a6d63;
  margin-top: 6px;
}
.ws-origin {
  font-size: 0.8rem;
}
.ws-actions {
  padding: 14px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.ws-actions p {
  width: 100%;
}
.ws-table {
  overflow: auto;
  padding: 16px;
}
.ws-table fieldset {
  display: flex;
  gap: 12px;
  margin-bottom: 15px;
  flex-wrap: wrap;
}
.ws-table .ws-field {
  min-width: 180px;
  flex: 1;
}
.ws-scope-row {
  display: grid;
  grid-template-columns: 1fr 1fr 2fr;
  gap: 12px;
  margin: 10px 0;
}
.ws-status {
  min-height: 1.5em;
}
.ws-status.error {
  color: #9e2d20;
}
.ws-session-choice {
  display: block;
  width: 100%;
  text-align: left;
  margin: 10px 0;
}
.ws-chooser > input,
.ws-chooser > select {
  padding: 10px;
  margin: 12px;
}
.ws-dialog {
  width: min(850px, 90vw);
  max-height: 85vh;
  overflow: auto;
  padding: 24px;
  border: 1px solid #aaa493;
  border-radius: 10px;
  background: #fffdf8;
}
.ws-dialog::backdrop {
  background: #0006;
}
.ws-dialog-toolbar {
  position: sticky;
  top: -24px;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background: #fffdf8;
  padding: 8px 0;
}
.ws-dialog-toolbar h2 {
  margin: 0;
}
.ws-dialog-toolbar button {
  flex-shrink: 0;
}
.ws-dialog label {
  display: block;
  margin: 12px 0;
}
.ws-dialog button {
  margin: 8px 8px 8px 0;
}
.ws-dialog input[type="checkbox"] {
  margin-right: 12px;
}
.ws-dialog form {
  margin-top: 15px;
}
.ws-dialog p {
  overflow-wrap: anywhere;
}
.ws-isk-embedded {
  position: static !important;
  display: block !important;
  padding: 0 !important;
  background: transparent !important;
  z-index: auto !important;
}
.ws-isk-embedded.hidden {
  display: none !important;
}
.ws-isk-embedded .isk2-shell {
  width: 100%;
  max-width: none;
  max-height: none;
  box-shadow: none;
}
.ws-isk-embedded .isk2-main {
  max-height: none;
}
.ws-isk-embedded #iskV2Close {
  display: none;
}
.ws-isk-embedded .isk2-layout {
  min-height: 0;
}
.ws-isk-embedded .isk2-shell {
  min-height: 0;
  background: transparent;
  color: #29302b;
  font-family: inherit;
}
.ws-isk-embedded .isk2-topbar,
.ws-isk-embedded .isk2-progress,
.ws-isk-embedded .isk2-feedback-trigger {
  display: none;
}
.ws-isk-embedded .isk2-layout {
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 24px;
  max-width: none;
  padding: 0;
}
.ws-isk-embedded .isk2-steps {
  position: sticky;
  top: 16px;
  max-height: calc(100vh - 32px);
  overflow: auto;
  padding: 16px;
  background: #fffdf8;
}
.ws-isk-embedded .isk2-steps::before {
  content: "SEKTIONER";
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
}
.ws-isk-embedded .isk2-steps li {
  padding: 0;
  border: 0;
}
.ws-isk-embedded .isk2-steps .ws-section-link {
  width: 100%;
  padding: 11px 12px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #29302b;
  text-align: left;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.ws-isk-embedded .isk2-steps .ws-section-link[aria-current="true"] {
  background: #29302b;
  color: #fff;
}
.ws-isk-embedded .isk2-main {
  padding: 22px;
  border: 1px solid #d9cfbe;
  border-radius: 5px;
  background: #fffdf8;
}
.ws-isk-embedded .isk2-main h1 {
  font-size: 1.5rem;
}
.ws-isk-embedded #iskV2Title:focus {
  outline: none;
}
.ws-isk-embedded .isk2-card {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.ws-isk-embedded .isk2-eyebrow,
.ws-isk-embedded .isk2-fund-total {
  color: #29302b;
}
.ws-isk-embedded .isk2-details,
.ws-isk-embedded .isk2-order-account,
.ws-isk-embedded .isk2-review-summary {
  border-left-color: #f28c56;
  background: #f3eee5;
}
.ws-isk-embedded .isk2-button {
  border-color: #29302b;
  background: #29302b;
  color: #fff;
}
.ws-isk-embedded .isk2-button.secondary {
  background: #fffdf8;
  color: #29302b;
}
.ws-isk-embedded .isk2-field input:focus,
.ws-isk-embedded .isk2-field select:focus,
.ws-isk-embedded .isk2-button:focus-visible,
.ws-isk-embedded .ws-section-link:focus-visible {
  outline: 3px solid #f28c56;
  outline-offset: 2px;
}
.ws-isk-embedded #iskV2Status:not(:empty) {
  border-left-color: #f28c56;
  background: #f3eee5;
}
.ws-isk-embedded #iskV2Status.error {
  border-left-color: #9e2d20;
  background: #f8e8e2;
}
@media (max-width: 800px) {
  .ws-isk-embedded .isk2-layout {
    display: block;
  }
  .ws-isk-embedded .isk2-steps {
    position: static;
    max-height: none;
    margin-bottom: 16px;
  }
  .ws-isk-embedded .isk2-steps ol {
    display: grid;
    min-width: 0;
  }
  .ws-session-row,
  .ws-customer-row,
  .ws-legacy-card-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ws-existing-group {
    padding: 14px;
  }
  .ws-quick-actions .btn {
    width: 100%;
  }
  .ws-legacy-row {
    flex-wrap: wrap;
  }
  .ws-entry {
    margin-top: 28px;
  }
  .ws-entry-options {
    grid-template-columns: 1fr;
  }
  .ws-entry-card {
    padding: 22px;
  }
  .ws-layout {
    grid-template-columns: 1fr;
  }
  .ws-sections {
    position: static;
    max-height: 180px;
  }
  .ws-field-grid {
    grid-template-columns: 1fr;
  }
  .ws-scope-row {
    grid-template-columns: 1fr;
  }
  .ws-view-nav {
    gap: 4px;
  }
  .ws-view-nav button {
    flex: 1;
    padding: 10px 6px;
  }
  .ws-view-nav .ws-back {
    flex: 0 0 100%;
    text-align: left;
  }
}
#workSessionRoot > .ws-session-bar {
  position: sticky;
  top: 78px;
  z-index: 19;
}
#workSessionRoot .ws-section {
  scroll-margin-top: 180px;
}
