/*!
 * RETTIGHETSMERKNAD / COPYRIGHT NOTICE – FELTPORTAL
 * © 2026 Nicolay Aass Saga – Feltportal. Rettigheter forbeholdes / Rights reserved.
 *
 * Kopiering, bearbeiding og videreformidling krever tillatelse når ikke annet
 * følger av lov, lisens eller avtale. Rettighetsinngrep kan følges opp med
 * rettslige krav og politianmeldelse der vilkårene er oppfylt.
 * Copying, modification and redistribution require permission unless allowed
 * by law, licence or agreement. Infringements may be subject to civil claims
 * and reported to the police where the legal conditions are met.
 *
 * Merknaden gjelder bare rettigheter som tilkommer den angitte rettighetshaveren.
 * Tredjepartsrettigheter og lisensvilkår beholdes, herunder for logoer og ikoner.
 * This notice covers only rights held by the named rights holder. Third-party
 * rights and licences, including those for logos and icons, remain unaffected.
 * Se / See RETTIGHETER.txt.
 */
:root {
  color-scheme: light;
  --background: #f5f6f7;
  --ink: #152449;
  --muted: #54627a;
  --border: #dfe4e8;
  --blue: #22346a;
  --navy: #14254e;
  --sky: #80bdff;
  --green: #136247;
  font-family: "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--background);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 16px;
  padding: 16px 20px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
  text-align: center;
}
.dashboard-body {
  display: flex;
  flex-direction: column;
  min-height: 100svh;
}
.error-page {
  display: flex;
  flex-direction: column;
  min-height: 100svh;
}
.error-page > main {
  flex: 1;
  min-height: 0;
}
.person-with-avatar {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  vertical-align: middle;
}
.person-avatar {
  position: relative;
  display: inline-grid;
  place-items: center;
  flex: 0 0 27px;
  width: 27px;
  height: 27px;
  overflow: hidden;
  border-radius: 50%;
  background: #e9eef7;
  color: var(--blue);
  font-size: 11px;
  font-weight: 600;
}
.person-avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-width: 0;
}
button,
input,
textarea,
select {
  font: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.65;
}
button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid #639cf0;
  outline-offset: 2px;
}
img,
svg {
  display: block;
  flex-shrink: 0;
}
h1,
h2,
h3,
p {
  margin: 0;
}
small {
  font-size: 12px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.eyebrow {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: var(--muted);
}
.feltportal-logo {
  width: 143px;
  height: auto;
  aspect-ratio: 193 / 60;
  object-fit: contain;
  object-position: left center;
}
.button,
.icon-button,
.text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  background: none;
  color: inherit;
}
.button {
  min-height: 42px;
  border-radius: 9px;
  padding: 0 15px;
  font-size: 13px;
  font-weight: 750;
}
.button.primary {
  background: var(--blue);
  color: #fff;
  border: 1px solid transparent;
}
.button.primary:hover {
  background: #304987;
}
.button.outline {
  border: 1px solid var(--border);
  color: var(--ink);
}
.button.outline:hover {
  background: #eef3fa;
}
.icon-button {
  padding: 7px;
  border-radius: 7px;
  color: var(--muted);
}
.icon-button:hover {
  background: #eef3fa;
  color: var(--navy);
}
.text-button {
  padding: 4px 0;
  font-weight: 750;
  font-size: 12px;
  color: var(--blue);
  white-space: nowrap;
}
.text-button:hover {
  color: #2466ac;
}
input,
select,
textarea {
  min-width: 0;
  color: var(--ink);
}
input::placeholder,
textarea::placeholder {
  color: #66748a;
}
input:not([type="checkbox"]),
select,
textarea {
  border: 1px solid #d9e1ee;
  border-radius: 8px;
  background: #fff;
}
input:not([type="checkbox"]),
select {
  min-height: 42px;
  padding: 0 11px;
}
textarea {
  padding: 10px 11px;
  resize: vertical;
}
label {
  display: grid;
  gap: 7px;
  font-size: 13px;
  font-weight: 700;
}
.form-error {
  padding: 9px 11px;
  border-radius: 8px;
  color: #9b2539;
  background: #fff0f2;
  font-size: 13px;
}
.signal-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #21916d;
}
.loading {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 16px;
  min-height: 100dvh;
  color: var(--muted);
}

/* Innlogging */
.login-form {
  display: grid;
  gap: 16px;
  margin-top: 25px;
}
.login-form input {
  min-height: 46px;
  font-weight: 450;
}
.password-wrap {
  display: grid;
  position: relative;
}
.password-wrap input {
  padding-right: 46px;
}
.password-wrap button {
  position: absolute;
  inset: 0 5px 0 auto;
  padding: 0 9px;
  display: grid;
  place-items: center;
  border: 0;
  background: none;
  color: var(--muted);
}
.login-submit {
  justify-content: space-between;
  min-height: 46px;
  margin-top: 2px;
}
/* Oversikt og navigasjon */
.dashboard {
  display: grid;
  grid-template-columns: 225px minmax(0, 1fr);
  min-height: 100dvh;
}
.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-self: start;
  min-height: 560px;
  height: 100dvh;
  padding: 23px 15px 16px;
  background: #fff;
  border-right: 1px solid var(--border);
}
.sidebar-logo {
  padding: 0 12px 20px;
  border-bottom: 1px solid var(--border);
}
/* Bruk sideplassen rundt logoen uten å endre høyden på logofeltet. */
.sidebar-logo .feltportal-logo {
  width: calc(100% + 24px);
  max-width: none;
  height: calc(143px * 60 / 193);
  margin-inline: -12px;
}
.location-picker {
  margin: 19px 0 22px;
}
.location-picker > .eyebrow {
  margin: 0 0 7px 9px;
}
.location-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: #f1f5fb;
}
.location-options a {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  min-height: 36px;
  padding: 3px 5px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--blue);
  font-size: 11px;
  font-weight: 750;
  transition:
    background-color 170ms ease,
    color 170ms ease;
}
.location-options a:hover {
  background: #e3ebfa;
}
.location-options a[aria-current="true"] {
  background: var(--blue);
  color: #fff;
}
.sidebar-account b {
  display: block;
  font-size: 13px;
  white-space: nowrap;
}
.sidebar-account small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}
.navigation {
  display: grid;
  gap: 4px;
}
.navigation > .eyebrow {
  margin: 0 0 6px 9px;
}
.navigation a {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 43px;
  padding: 0 9px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  text-align: left;
  white-space: nowrap;
}
.navigation a:hover {
  background: #f3f6fb;
}
.navigation a.selected {
  background: #eaf0f5;
  color: var(--blue);
  font-weight: 600;
}
.navigation a small {
  margin-left: auto;
  border-radius: 5px;
  padding: 1px 5px;
  background: #ecf0f7;
  font-size: 10px;
}
.sidebar-account {
  display: flex;
  align-items: center;
  gap: 8px;
  border-top: 1px solid var(--border);
  padding: 14px 1px 0;
}
.sidebar-account button {
  margin-left: auto;
}
.avatar {
  display: inline-grid;
  place-items: center;
  width: 33px;
  height: 33px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #e6edfc;
  color: #2d4b83;
  font-size: 11px;
  font-weight: 800;
}
.avatar.tiny {
  width: 24px;
  height: 24px;
  font-size: 9px;
}
.avatar.alt {
  background: #e3f2ed;
  color: #226650;
}
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 0 clamp(18px, 3vw, 42px);
  height: 62px;
  border-bottom: 1px solid var(--border);
  background: #fff;
}
.breadcrumb,
.topbar-end {
  display: flex;
  align-items: center;
  gap: 9px;
}
.breadcrumb {
  font-size: 12px;
  color: var(--muted);
}
.breadcrumb b {
  color: var(--ink);
}
.env-badge,
.read-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid #e9e1bc;
  padding: 6px 9px;
  border-radius: 6px;
  background: #fff8dd;
  color: #645011;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
}
.env-badge span,
.page-kicker span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #bb891c;
}
.read-badge {
  padding: 8px 11px;
  color: var(--blue);
  background: #e8effa;
  border-color: #d8e4f7;
  font-size: 12px;
  letter-spacing: 0;
}
/* Hold selve arbeidsflaten uten transform- og opacity-animasjoner. */
.dashboard-main {
  /* Behold full bredde når sidefoten ligger i en flex-beholder. */
  flex: 1;
  width: 100%;
  max-width: 1560px;
  margin: 0 auto;
  padding: 25px clamp(18px, 3vw, 42px) 45px;
}
.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 20px;
}
.page-kicker {
  display: flex;
  align-items: center;
  gap: 7px;
}
.page-head h1 {
  margin: 4px 0 5px;
  font-size: clamp(25px, 3vw, 32px);
  letter-spacing: -0.025em;
  line-height: 1.1;
}
.page-head p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}
.new-button {
  white-space: nowrap;
}
.work-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 18px;
}
.work-summary h2 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0;
}
.status-nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 10px 0 17px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: #fff;
}
.status-nav button {
  display: grid;
  grid-template-columns: 8px 1fr auto;
  align-items: center;
  gap: 9px;
  padding: 12px;
  border: 0;
  border-right: 1px solid var(--border);
  background: transparent;
  color: var(--ink);
  font-size: 12px;
  text-align: left;
}
.status-nav button:last-child {
  border-right: 0;
}
.status-nav button:hover {
  background: #edf3fe;
}
.status-nav button:focus-visible {
  outline-offset: -3px;
}
.status-nav b {
  font-variant-numeric: tabular-nums;
}
.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #657794;
}
.progress .status-dot {
  background: #3367aa;
}
.ordered .status-dot,
.waiting .status-dot {
  background: #aa7710;
}
.done .status-dot {
  background: #248062;
}
.activity-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  background: #e6efff;
  color: #335d9d;
}
.workspace-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}
.workspace-grid.with-aside {
  grid-template-columns: minmax(0, 1fr) minmax(228px, 0.34fr);
}
.panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 5px;
  overflow: hidden;
}
.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 16px 12px;
}
.panel-header h2 {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 17px;
  line-height: 1.25;
  letter-spacing: -0.025em;
}
.panel-header h2 svg {
  color: #42659a;
}
.panel-header p {
  color: var(--muted);
  font-size: 11px;
  margin-top: 3px;
}
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 16px 11px;
}
.search,
.status-filter {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 9px;
  border: 1px solid var(--border);
  border-radius: 7px;
  color: var(--muted);
}
.search {
  flex: 1;
  min-width: 0;
  max-width: 420px;
}
.sync-time {
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.refreshing {
  animation: refresh-spin 700ms linear infinite;
}
@keyframes refresh-spin {
  to {
    transform: rotate(360deg);
  }
}
.filters input,
.filters select {
  width: 100%;
  min-height: 34px;
  border: 0;
  padding: 0;
  font-size: 12px;
  font-weight: 550;
}
.filters select:focus-visible {
  outline-offset: -2px;
}
.search:focus-within {
  border-color: #4b74bf;
  outline: 2px solid #4b74bf;
  outline-offset: 1px;
}
.search input:focus-visible {
  outline: none;
}
.search .icon-button {
  padding: 3px;
}
.table-wrap {
  overflow-x: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
  font-size: 12px;
}
thead {
  background: #f4f7fc;
  color: #536681;
}
th {
  padding: 8px;
  font-size: 10px;
  font-weight: 800;
}
td {
  padding: 9px 8px;
  border-top: 1px solid #eef1f6;
}
th:first-child,
td:first-child {
  padding-left: 16px;
  width: 50%;
}
th:last-child,
td:last-child {
  padding-right: 15px;
}
tbody tr {
  cursor: pointer;
}
tbody tr:hover {
  background: #f7f9fd;
}
.job-name {
  padding: 0;
  border: 0;
  color: var(--ink);
  background: transparent;
  font-weight: 600;
  text-align: left;
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.job-name:hover {
  color: #2c5b9e;
  text-decoration: underline;
}
.job-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
  overflow-wrap: anywhere;
}
.priority-flag {
  padding: 0 4px;
  border-radius: 3px;
  background: #fff0f0;
  color: #a52b42;
  font-weight: 750;
}
.table-person {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  overflow-wrap: anywhere;
}
.mobile-assignee {
  display: none;
  overflow-wrap: anywhere;
}
.row-arrow {
  color: #788bad;
}
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 7px;
  border-radius: 5px;
  background: #eef1f7;
  color: #465878;
  font-size: 10px;
  font-weight: 500;
  white-space: nowrap;
}
.status-pill b {
  font-weight: inherit;
}
.job-date {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}
.status-pill > span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}
.status-pill.progress {
  background: #e6efff;
  color: #244d91;
}
.status-pill.ordered,
.status-pill.waiting {
  background: #fff2cd;
  color: #735309;
}
.status-pill.done {
  background: #e0f3e9;
  color: #196448;
}
.muted {
  color: var(--muted);
}
.panel-footer {
  border-top: 1px solid #eef1f6;
  padding: 9px 16px;
}
.overview-aside {
  display: grid;
  gap: 13px;
}
.activity-row {
  display: flex;
  align-items: center;
  text-align: left;
  gap: 8px;
  width: 100%;
  padding: 9px 13px;
  background: #fff;
  border: 0;
  border-top: 1px solid #eef1f6;
  color: var(--ink);
}
.activity-row:hover {
  background: #f7f9fd;
}
.activity-row b {
  display: block;
  font-size: 11px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.activity-row small {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 3px;
}
.activity-row b small {
  display: inline;
  font-weight: 550;
}
.activity-icon {
  width: 29px;
  height: 29px;
  border-radius: 7px;
}
.empty-state {
  display: grid;
  place-items: center;
  gap: 6px;
  padding: 33px 15px;
  color: var(--muted);
  font-size: 13px;
}

/* Jobbskjema og historikk */
.modal {
  width: min(95%, 590px);
  max-height: 90dvh;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 16px;
  color: var(--ink);
  background: #fff;
  box-shadow: 0 18px 65px #11234245;
  overflow: auto;
  overscroll-behavior: contain;
}
.modal::backdrop {
  background: #14234588;
}
.modal-inner {
  padding: 21px;
}
.modal-head {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  background: #fff;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 15px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.modal-head h2 {
  font-size: 24px;
  letter-spacing: -0.038em;
  margin-top: 4px;
  overflow-wrap: anywhere;
}
.job-form,
.job-details,
.finish-form {
  display: grid;
  gap: 14px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.modal-actions,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}
.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: #f6f8fc;
}
.detail-grid > div {
  min-width: 0;
  display: grid;
  gap: 5px;
  justify-items: start;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.detail-grid .status-pill {
  max-width: 100%;
  white-space: normal;
}
.detail-grid .status-pill > span {
  flex: none;
}
.detail-grid > div > span:first-child {
  color: var(--muted);
  font-size: 11px;
}
.detail-assignment {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 13px;
}
.detail-assignment select {
  min-height: 35px;
}
.detail-copy h3,
.detail-history h3 {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
}
.detail-copy p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  margin-top: 5px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.detail-copy.completion {
  background: #eaf6ef;
  padding: 11px;
  border-radius: 8px;
  color: var(--green);
}
.detail-copy.waiting-note {
  padding: 11px;
  border-radius: 8px;
  background: #fff5d9;
  color: #735309;
}
.detail-actions .edit-button {
  margin-right: auto;
}
.detail-history {
  padding-top: 13px;
  border-top: 1px solid var(--border);
}
.timeline {
  margin: 11px 0 0;
  padding: 0;
  list-style: none;
}
.timeline li {
  display: grid;
  grid-template-columns: 15px 1fr;
  gap: 7px;
  min-height: 33px;
  font-size: 12px;
}
.timeline-dot {
  width: 7px;
  height: 7px;
  margin-top: 5px;
  background: #5d84bd;
  border-radius: 50%;
}
.timeline small,
.timeline p {
  color: var(--muted);
  font-size: 11px;
}
.timeline p {
  margin: 3px 0 8px;
  overflow-wrap: anywhere;
}
.toast {
  position: fixed;
  z-index: 20;
  bottom: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 9px 7px 13px;
  max-width: calc(100% - 32px);
  border: 1px solid #c9e5d8;
  border-radius: 9px;
  background: #ecf8f1;
  color: #15543c;
  font-weight: 750;
  font-size: 13px;
  box-shadow: 0 8px 30px #12244420;
}

.order-number {
  overflow-wrap: anywhere;
  color: var(--blue);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}
.job-form-hint {
  color: var(--muted);
  font-size: 12px;
}
.button,
.icon-button,
.quick-accounts button,
.navigation a,
.status-nav button,
.activity-row,
tbody tr {
  transition:
    background-color 170ms ease,
    color 170ms ease,
    border-color 170ms ease;
}
.auth-card,
.completion-field {
  animation: content-enter 210ms ease-out both;
}
.modal[open]::backdrop {
  animation: backdrop-enter 180ms ease-out both;
}
@keyframes content-enter {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes backdrop-enter {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 1090px) {
  .workspace-grid.with-aside {
    grid-template-columns: 1fr;
  }
  .overview-aside {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }
}
@media (max-width: 760px) {
  .dashboard {
    grid-template-columns: minmax(0, 1fr);
  }
  .dashboard-main {
    padding: 17px 13px 28px;
  }
  .page-head {
    margin-bottom: 14px;
  }
  .page-head p {
    font-size: 12px;
  }
}
@media (max-width: 520px) {
  .status-nav {
    grid-template-columns: 1fr;
  }
  .status-nav button:not(:last-child) {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }
  .overview-aside {
    grid-template-columns: 1fr;
  }
  .new-button,
  .read-badge {
    padding: 0 8px;
    min-height: 33px;
    font-size: 11px;
    gap: 5px;
  }
  .new-button svg,
  .read-badge svg {
    width: 14px;
  }
  .filters {
    padding-inline: 10px;
  }
  .filters .search {
    flex-basis: 100%;
    max-width: none;
  }
  .filters .status-filter {
    flex: 1;
    min-width: 0;
  }
  .filters input,
  .filters select {
    font-size: 11px;
  }
  .panel-header {
    padding-left: 10px;
    padding-right: 10px;
  }
  th:first-child,
  td:first-child {
    padding-left: 10px;
    width: 64%;
  }
  th:last-child,
  td:last-child {
    padding-right: 5px;
  }
  th,
  td {
    padding-left: 4px;
    padding-right: 4px;
  }
  .job-name {
    font-size: 13px;
  }
  .assignee-column,
  .arrow-column {
    display: none;
  }
  .mobile-assignee {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 10px;
  }
  .refresh-button {
    padding: 5px;
  }
  .detail-grid {
    grid-template-columns: 1fr 1fr;
  }
  .modal-inner {
    padding: 14px;
  }
}
@media (max-width: 360px) {
  .job-form .form-grid {
    grid-template-columns: 1fr;
  }
}

.location-banner {
  --location-photo: url("../bilder/jotun-vedlikehold.webp");
  display: flex;
  align-items: flex-end;
  min-height: 112px;
  padding: 20px;
  border-radius: 5px;
  background-color: var(--blue);
  background-image:
    linear-gradient(90deg, #182a58 3%, #182a58ed 37%, #182a5866 76%, #182a5838),
    var(--location-photo);
  background-size: cover;
  background-position:
    center,
    center 61%;
  color: white;
}
.location-banner--gimle {
  --location-photo: url("../bilder/jotun-gimle.jpg");
  background-position:
    center,
    center 56%;
}
.location-banner h1 {
  color: white;
}
.location-banner p,
.location-banner .page-kicker {
  color: #e2edff;
}
.location-banner .new-button {
  color: var(--blue);
  background: #fff;
}
.location-banner .new-button:hover {
  background: #eaf0ff;
}
.location-banner .page-kicker span {
  background: #a8c4ff;
}

.stock-panel-header,
.stock-actions,
.stock-quantity,
.job-materials-heading {
  display: flex;
  align-items: center;
  gap: 8px;
}
.stock-panel-header,
.job-materials-heading {
  justify-content: space-between;
}
.stock-panel-header h2 {
  display: flex;
  align-items: center;
  gap: 8px;
}
.stock-error {
  margin: 0 16px 10px;
}
.stock-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  padding: 11px 16px;
  border-top: 1px solid var(--border);
}
.stock-item-name,
.material-draft > div {
  display: grid;
  gap: 4px;
  overflow-wrap: anywhere;
}
.stock-item-name small,
.stock-picker small,
.job-materials p {
  color: var(--muted);
}
.stock-quantity {
  font-size: 12px;
  color: var(--muted);
}
.stock-quantity input,
.material-draft input {
  width: 78px;
  min-width: 0;
}
.stock-picker {
  min-width: 0;
  display: grid;
  gap: 9px;
  padding: 10px;
  margin: 0;
  border: 1px solid var(--border);
  border-radius: 9px;
}
.stock-picker legend {
  padding: 0 5px;
  font-weight: 750;
  font-size: 13px;
}
.stock-picker legend svg {
  display: inline-block;
  vertical-align: middle;
  margin-right: 4px;
}
.stock-picker .stock-search {
  max-width: none;
}
.stock-search input {
  width: 100%;
  border: 0;
  padding: 0;
}
.stock-candidates {
  display: grid;
  gap: 3px;
}
.stock-candidates button {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  text-align: left;
  padding: 5px 7px;
  border: 0;
  border-radius: 6px;
  background: #f4f7fc;
  color: var(--ink);
}
.stock-candidates button:hover {
  background: #eaf0fd;
}
.material-draft {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px;
}
.stock-form-details summary {
  cursor: pointer;
  color: var(--blue);
  font-weight: 750;
  margin-bottom: 7px;
}
.job-materials {
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 9px;
}
.job-materials h3,
.job-materials p {
  margin: 0;
  font-size: 13px;
}
.job-materials ul {
  display: grid;
  gap: 6px;
  padding: 0;
  list-style: none;
}
.job-materials li {
  display: flex;
  gap: 10px;
  justify-content: space-between;
  font-size: 13px;
}
.job-materials .job-form {
  margin-top: 10px;
}
@media (max-width: 520px) {
  .location-banner {
    padding: 15px;
    background-image:
      linear-gradient(90deg, #182a58 0%, #182a58c7 58%, #182a5870), var(--location-photo);
  }
  .stock-panel-header,
  .stock-actions {
    flex-wrap: wrap;
  }
  .stock-row {
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 9px 12px;
  }
  .stock-quantity {
    grid-row: 2;
    grid-column: 1 / -1;
  }
}

/* Portal og jobbskjema */
:is(.dashboard, .modal) .button,
:is(.dashboard, .modal) .navigation a,
:is(.dashboard, .modal) .location-options a,
:is(.dashboard, .modal) .status-nav button {
  min-height: 44px;
  font-size: 14px;
}
:is(.dashboard, .modal) .location-options a {
  font-size: 13px;
}
:is(.dashboard, .modal) .text-button,
:is(.dashboard, .modal) .breadcrumb,
:is(.dashboard, .modal) .work-summary .text-button {
  font-size: 14px;
}
:is(.dashboard, .modal) .panel-header h2 {
  font-size: 19px;
}
:is(.dashboard, .modal) .panel-header p,
:is(.dashboard, .modal) .sync-time,
:is(.dashboard, .modal) .job-meta,
:is(.dashboard, .modal) .status-pill,
:is(.dashboard, .modal) .mobile-assignee,
:is(.dashboard, .modal) .timeline small,
:is(.dashboard, .modal) .timeline p,
:is(.dashboard, .modal) .stock-quantity {
  font-size: 13px;
}
:is(.dashboard, .modal) table,
:is(.dashboard, .modal) .detail-grid > div,
:is(.dashboard, .modal) .detail-assignment,
:is(.dashboard, .modal) .detail-copy p,
:is(.dashboard, .modal) .job-materials p,
:is(.dashboard, .modal) .job-materials li,
:is(.dashboard, .modal) .job-form label,
:is(.dashboard, .modal) .finish-form label,
:is(.dashboard, .modal) .form-error {
  font-size: 15px;
}
:is(.dashboard, .modal) th,
:is(.dashboard, .modal) .detail-grid > div > span:first-child {
  font-size: 12px;
}
:is(.dashboard, .modal) td {
  padding-top: 12px;
  padding-bottom: 12px;
}
:is(.dashboard, .modal) .job-name {
  font-size: inherit;
}
:is(.dashboard, .modal) input,
:is(.dashboard, .modal) select,
:is(.dashboard, .modal) textarea {
  font-size: 16px;
}
:is(.dashboard, .modal) .filters input,
:is(.dashboard, .modal) .filters select,
:is(.dashboard, .modal) .stock-search input {
  min-height: 42px;
}
:is(.dashboard, .modal) .stock-step {
  width: 40px;
  min-width: 40px;
  padding: 0;
}
:is(.dashboard, .modal) .stock-quantity input {
  text-align: center;
}
:is(.dashboard, .modal) .stock-candidates button {
  min-height: 42px;
}
@media (max-width: 520px) {
  :is(.dashboard, .modal) th:first-child,
  :is(.dashboard, .modal) td:first-child {
    width: 55%;
  }
  .jobs-panel .filters .status-filter {
    flex: 1 0 auto;
  }
  .jobs-panel td .status-pill {
    white-space: normal;
  }
  .jobs-panel td .status-pill > span {
    flex: none;
  }
  :is(.dashboard, .modal) .stock-quantity {
    flex-wrap: wrap;
  }
}

[hidden] {
  display: none !important;
}

a.brand-link {
  display: inline-block;
}

.status-pill [data-status-text] {
  font-weight: inherit;
}

.dialog-error {
  margin-top: 14px;
}

/* Korte overganger for lasteskjerm, dialoger og bekreftelser. */
.loading-motion {
  display: grid;
  justify-items: center;
  gap: 19px;
}
.loading-icon {
  display: block;
  object-fit: contain;
}

/* SVG-filen fader fra blått til grønt. Selve merket står stille. */
#loading {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--background);
}
#loading,
.login-loading {
  transition: opacity 150ms ease-out;
}
.loading-fading {
  opacity: 0;
  pointer-events: none;
}
.loading-finished .loading-track::after {
  width: 100%;
  animation: none;
  transform: none;
}
.loading-track {
  position: relative;
  width: 148px;
  height: 4px;
  overflow: hidden;
  border-radius: 10px;
  background: #dfe7f2;
}
.loading-track::after {
  content: "";
  position: absolute;
  width: 50%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #1d58a2, #28a178);
  animation: loading-progress 1.2s ease-in-out infinite alternate;
}
.modal[open] .modal-inner,
.toast:not([hidden]) {
  animation: portal-enter 190ms ease-out both;
}
@keyframes loading-progress {
  from {
    transform: translateX(-65%);
  }
  to {
    transform: translateX(165%);
  }
}
@keyframes portal-enter {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.location-banner--vindal {
  background-size:
    cover,
    max(68%, 460px) auto;
  background-position:
    center,
    right 53%;
  background-repeat: no-repeat;
}
@media (max-width: 760px) {
  :is(.dashboard, .modal) .stock-step,
  :is(.dashboard, .modal) .stock-quantity input,
  :is(.dashboard, .modal) .stock-quantity button {
    min-height: 44px;
  }
  :is(.dashboard, .modal) .stock-step {
    min-width: 44px;
  }
  :is(.dashboard, .modal) .job-form input,
  :is(.dashboard, .modal) .job-form textarea,
  :is(.dashboard, .modal) .job-form select,
  :is(.dashboard, .modal) .filters input,
  :is(.dashboard, .modal) .stock-quantity input {
    font-size: 16px;
  }
  .location-banner {
    min-height: 100px;
  }
  .location-banner--vindal {
    background-size:
      cover,
      max(100%, 340px) auto;
    background-position:
      center,
      right 52%;
  }
}
@media (prefers-reduced-motion: reduce) {
  #loading,
  .login-loading {
    transition: none;
  }
  .loading-icon,
  .loading-track::after,
  .modal[open] .modal-inner,
  .toast:not([hidden]) {
    animation: none;
  }
  .loading-track::after {
    left: 25%;
  }
}

.job-team {
  display: grid;
  gap: 10px;
  padding-block: 12px;
  border-top: 1px solid var(--border);
}

.job-team h3,
.job-team p,
.job-team ul {
  margin: 0;
}

.job-team ul:not(:empty) {
  display: grid;
  gap: 5px;
  padding-inline-start: 20px;
}

.job-team-form {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 8px;
}

.job-team-form label {
  display: grid;
  flex: 1 1 200px;
  gap: 4px;
}

.take-job {
  justify-self: start;
}

.customer-empty {
  margin: 0;
  padding: 16px;
  color: var(--muted);
}

.customer-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.customer-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 8px 16px;
  padding: 16px;
  border-top: 1px solid var(--border);
  overflow-wrap: anywhere;
}

.customer-meta,
.customer-person {
  display: block;
  margin-top: 3px;
  font-size: 0.85rem;
}

.customer-meta {
  color: var(--muted);
}

@media (max-width: 400px) {
  .customer-list li {
    grid-template-columns: 1fr;
  }

  .customer-list .status-pill {
    justify-self: start;
  }
}

.job-afa {
  display: grid;
  gap: 10px;
  padding-block: 12px;
  border-top: 1px solid var(--border);
}

.job-afa h3,
.job-afa p {
  margin: 0;
}

.stock-balance {
  display: grid;
  gap: 5px;
  padding-block: 10px;
  border-block: 1px solid var(--border);
}

.stock-balance p {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 5px 12px;
  margin: 0;
}

.navigation a[aria-disabled="true"],
.location-options a[aria-disabled="true"] {
  cursor: wait;
  opacity: 0.65;
}

.job-reference {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 4px;
  font-size: 13px;
}
.jobs-panel .filters .search {
  flex: 1 1 240px;
  min-width: min(100%, 220px);
  max-width: none;
}
.job-row-content .job-meta {
  color: #46536a;
}
.overview-aside .panel {
  border: 0;
  border-radius: 0;
  background: transparent;
}
.overview-aside .panel-header {
  padding-top: 4px;
}
