/* Porto-Systeem page styling. Shared variables/base live in shared.css. */
/* Porto systeem startpagina */
.nav-spacer {
  height: 14px;
}

.nav-external {
  font-weight: 900;
}

.porto-blank {
  height: 100dvh;
  min-height: 100dvh;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(8, 12, 17, 0.42), rgba(8, 12, 17, 0.78)),
    url("assets/lockscreen-defensie.png") center / cover fixed;
  color: var(--text);
}

.porto-topbar {
  height: 76px;
  min-height: 76px;
  padding: 14px 28px;
  display: flex;
  gap: 14px;
  justify-content: flex-end;
  align-items: center;
}

/* Nieuwe Porto test-UI. De klassieke UI blijft intact en wordt alleen verborgen in deze modus. */
body[data-porto-ui="modern"].porto-duty-workspace .porto-duty-panel > :not(#portoModernDutyDashboard),
body[data-porto-ui="modern"].porto-ops-workspace .porto-ops-panel > :not(#portoModernOpsDashboard) {
  display: none !important;
}

body[data-porto-ui="modern"].porto-duty-workspace .porto-status-center,
body[data-porto-ui="modern"].porto-ops-workspace .porto-status-center {
  place-items: start center;
  align-content: start;
  padding: clamp(82px, 8vh, 112px) clamp(16px, 3vw, 48px) 28px;
}

body[data-porto-ui="modern"].porto-ops-workspace .porto-status-center {
  padding: clamp(72px, 6vh, 84px) clamp(10px, 1vw, 18px) 16px;
}

body[data-porto-ui="modern"].porto-duty-workspace .porto-duty-panel,
body[data-porto-ui="modern"].porto-ops-workspace .porto-ops-panel {
  width: min(1940px, calc(100vw - 18px));
  min-height: 0;
  height: auto;
  padding-top: 0;
  margin: 0;
}

body[data-porto-ui="modern"].porto-ops-workspace .porto-ops-panel {
  overflow: visible;
}

body[data-porto-ui="modern"]:not(.porto-duty-workspace):not(.porto-ops-workspace) {
  background:
    radial-gradient(circle at 50% 34%, rgba(245, 158, 11, 0.11), transparent 35%),
    linear-gradient(180deg, rgba(5, 8, 13, 0.12), rgba(5, 8, 13, 0.78) 66%, rgba(3, 5, 10, 0.94)),
    url("assets/porto-status-modern-background.png") center / cover fixed;
}

body[data-porto-ui="modern"]:not(.porto-duty-workspace):not(.porto-ops-workspace) .porto-topbar {
  position: fixed;
  inset: 14px 0 auto;
  z-index: 8;
  height: 78px;
  min-height: 78px;
  padding: 0 28px;
  background: transparent;
  pointer-events: none;
}

body[data-porto-ui="modern"]:not(.porto-duty-workspace):not(.porto-ops-workspace) .porto-ui-switch,
body[data-porto-ui="modern"]:not(.porto-duty-workspace):not(.porto-ops-workspace) .profile-chip {
  pointer-events: auto;
}

body[data-porto-ui="modern"]:not(.porto-duty-workspace):not(.porto-ops-workspace) .porto-ui-switch {
  min-height: 36px;
  border: 0;
  background: transparent;
  box-shadow: none;
}

body[data-porto-ui="modern"]:not(.porto-duty-workspace):not(.porto-ops-workspace) .porto-ui-switch button {
  min-width: 64px;
  border-radius: 999px;
}

body[data-porto-ui="modern"]:not(.porto-duty-workspace):not(.porto-ops-workspace) .porto-ui-switch button.is-active {
  background: linear-gradient(135deg, #1f6fb8, #3b82c4);
  box-shadow: 0 0 20px rgba(59, 130, 196, 0.34);
}

body[data-porto-ui="modern"]:not(.porto-duty-workspace):not(.porto-ops-workspace) .profile-chip {
  min-height: 74px;
  padding: 12px 14px;
  border: 1px solid rgba(96, 165, 250, 0.24);
  border-radius: 18px;
  background: rgba(5, 13, 26, 0.58);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px);
}

body[data-porto-ui="modern"]:not(.porto-duty-workspace):not(.porto-ops-workspace) .profile-chip img {
  width: 50px;
  height: 50px;
  border: 2px solid #d99a37;
  box-shadow: 0 0 22px rgba(217, 154, 55, 0.32);
}

body[data-porto-ui="modern"]:not(.porto-duty-workspace):not(.porto-ops-workspace) .porto-empty {
  height: 100dvh;
  min-height: 720px;
  display: grid;
  align-items: start;
  background: transparent;
  overflow: auto;
}

body[data-porto-ui="modern"]:not(.porto-duty-workspace):not(.porto-ops-workspace) .porto-wall-brand {
  top: 108px;
  gap: 34px;
  opacity: 1;
  filter: drop-shadow(0 18px 34px rgba(0, 0, 0, 0.58));
}

body[data-porto-ui="modern"]:not(.porto-duty-workspace):not(.porto-ops-workspace) .porto-wall-logo {
  width: 118px;
}

body[data-porto-ui="modern"]:not(.porto-duty-workspace):not(.porto-ops-workspace) .porto-wall-title {
  color: #f8fafc;
  font-size: 76px;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.16), 0 10px 34px rgba(0, 0, 0, 0.58);
}

body[data-porto-ui="modern"]:not(.porto-duty-workspace):not(.porto-ops-workspace) .porto-wall-subtitle {
  color: rgba(217, 154, 55, 0.96);
  font-size: 40px;
  letter-spacing: 0.16em;
  text-shadow: 0 0 18px rgba(217, 154, 55, 0.28), 0 8px 28px rgba(0, 0, 0, 0.54);
}

body[data-porto-ui="modern"]:not(.porto-duty-workspace):not(.porto-ops-workspace) .porto-status-center {
  height: auto;
  min-height: 100dvh;
  place-items: start center;
  align-content: start;
  transform: none;
  padding: 286px 28px 40px;
}

body[data-porto-ui="modern"]:not(.porto-duty-workspace):not(.porto-ops-workspace) .porto-status-intro {
  width: min(820px, 100%);
  max-width: calc(100vw - 56px);
  gap: 18px;
}

body[data-porto-ui="modern"]:not(.porto-duty-workspace):not(.porto-ops-workspace) .porto-status-intro h1 {
  margin: 0;
  color: #f8fafc;
  font-size: 44px;
  line-height: 1.05;
  text-shadow: 0 8px 32px rgba(0, 0, 0, 0.54);
}

body[data-porto-ui="modern"]:not(.porto-duty-workspace):not(.porto-ops-workspace) .porto-status-intro p {
  max-width: 760px;
  color: rgba(226, 232, 240, 0.86);
  font-size: 18px;
}

body[data-porto-ui="modern"]:not(.porto-duty-workspace):not(.porto-ops-workspace) .porto-status-zero-card {
  width: min(640px, 100%);
  gap: 16px;
  padding: 26px;
  border: 1px solid rgba(226, 232, 240, 0.16);
  border-radius: 22px;
  background:
    radial-gradient(circle at 50% 0%, rgba(217, 154, 55, 0.12), transparent 36%),
    rgba(7, 11, 18, 0.76);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
}

body[data-porto-ui="modern"]:not(.porto-duty-workspace):not(.porto-ops-workspace) .porto-status-request-label {
  gap: 10px;
  font-size: 19px;
}

body[data-porto-ui="modern"]:not(.porto-duty-workspace):not(.porto-ops-workspace) .porto-status-request-label textarea {
  min-height: 84px;
  border-color: rgba(226, 232, 240, 0.2);
  border-radius: 14px;
  background: rgba(3, 7, 14, 0.68);
  font-size: 16px;
  font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

body[data-porto-ui="modern"]:not(.porto-duty-workspace):not(.porto-ops-workspace) .porto-status-zero-card .porto-status-button {
  min-height: 64px;
  display: grid;
  place-items: center;
  gap: 4px;
  border: 1px solid rgba(125, 165, 204, 0.5);
  border-radius: 16px;
  background:
    radial-gradient(circle at 50% 0%, rgba(226, 232, 240, 0.18), transparent 40%),
    linear-gradient(135deg, #315d84, #173a59);
  color: #fff;
  font-size: 22px;
  box-shadow: 0 0 30px rgba(49, 93, 132, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

body[data-porto-ui="modern"]:not(.porto-duty-workspace):not(.porto-ops-workspace) .porto-status-zero-card .porto-status-button::after {
  content: "Aanmelden in dienst";
  color: rgba(226, 232, 240, 0.82);
  font-size: 14px;
  font-weight: 800;
}

body[data-porto-ui="modern"]:not(.porto-duty-workspace):not(.porto-ops-workspace) .porto-current-ops {
  gap: 16px;
  color: rgba(248, 250, 252, 0.96);
  font-size: 20px;
}

body[data-porto-ui="modern"]:not(.porto-duty-workspace):not(.porto-ops-workspace) .porto-current-ops .porto-ops-action {
  min-height: 46px;
  padding: 0 24px;
  border: 1px solid rgba(125, 165, 204, 0.5);
  background: linear-gradient(135deg, #315d84, #173a59);
  box-shadow: 0 0 24px rgba(49, 93, 132, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  font-size: 16px;
}

@media (max-width: 1120px), (max-height: 820px) {
  body[data-porto-ui="modern"]:not(.porto-duty-workspace):not(.porto-ops-workspace) .porto-wall-brand {
    top: 92px;
    gap: 24px;
  }

  body[data-porto-ui="modern"]:not(.porto-duty-workspace):not(.porto-ops-workspace) .porto-wall-logo {
    width: 86px;
  }

  body[data-porto-ui="modern"]:not(.porto-duty-workspace):not(.porto-ops-workspace) .porto-wall-title {
    font-size: 56px;
  }

  body[data-porto-ui="modern"]:not(.porto-duty-workspace):not(.porto-ops-workspace) .porto-wall-subtitle {
    font-size: 30px;
  }

  body[data-porto-ui="modern"]:not(.porto-duty-workspace):not(.porto-ops-workspace) .porto-status-center {
    padding-top: 224px;
  }
}

@media (max-width: 760px) {
  body[data-porto-ui="modern"]:not(.porto-duty-workspace):not(.porto-ops-workspace) .porto-topbar {
    position: static;
    height: auto;
    min-height: 0;
    padding: 12px 14px;
    justify-content: center;
    flex-wrap: wrap;
  }

  body[data-porto-ui="modern"]:not(.porto-duty-workspace):not(.porto-ops-workspace) .porto-wall-brand {
    position: relative;
    top: auto;
    margin: 24px auto 0;
    gap: 16px;
  }

  body[data-porto-ui="modern"]:not(.porto-duty-workspace):not(.porto-ops-workspace) .porto-wall-logo {
    width: 62px;
  }

  body[data-porto-ui="modern"]:not(.porto-duty-workspace):not(.porto-ops-workspace) .porto-wall-title {
    font-size: 38px;
  }

  body[data-porto-ui="modern"]:not(.porto-duty-workspace):not(.porto-ops-workspace) .porto-wall-subtitle {
    font-size: 20px;
  }

  body[data-porto-ui="modern"]:not(.porto-duty-workspace):not(.porto-ops-workspace) .porto-status-center {
    min-height: 0;
    padding: 28px 14px 34px;
  }

  body[data-porto-ui="modern"]:not(.porto-duty-workspace):not(.porto-ops-workspace) .porto-status-intro {
    max-width: 100%;
  }

  body[data-porto-ui="modern"]:not(.porto-duty-workspace):not(.porto-ops-workspace) .porto-status-intro h1 {
    font-size: 32px;
  }

  body[data-porto-ui="modern"]:not(.porto-duty-workspace):not(.porto-ops-workspace) .porto-status-zero-card {
    padding: 20px;
  }
}

.porto-modern-duty-dashboard,
.porto-modern-ops-dashboard {
  width: 100%;
  color: #f8fafc;
}

.porto-modern-duty-card,
.porto-modern-ops-dashboard {
  border: 1px solid rgba(59, 130, 246, 0.32);
  border-radius: 22px;
  background:
    radial-gradient(circle at 28% 0%, rgba(59, 130, 246, 0.22), transparent 34%),
    linear-gradient(180deg, rgba(9, 24, 45, 0.88), rgba(5, 13, 26, 0.84));
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px);
}

.porto-modern-duty-card {
  width: min(1240px, 100%);
  margin: 0 auto;
  padding: clamp(20px, 2.5vw, 34px);
}

.porto-modern-duty-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
}

.porto-modern-duty-avatars,
.porto-modern-ops-avatars {
  display: flex;
  align-items: center;
}

.porto-modern-duty-avatars .porto-modern-member-avatar,
.porto-modern-duty-avatars .porto-modern-member-initial {
  width: 82px;
  height: 82px;
  margin-right: -18px;
  border: 2px solid #0b8cff;
  box-shadow: 0 0 22px rgba(37, 99, 235, 0.42);
}

.porto-modern-duty-title span {
  color: #82b8ff;
  font-size: 13px;
  font-weight: 1000;
  letter-spacing: 0;
  text-transform: uppercase;
}

.porto-modern-duty-title h1 {
  margin: 8px 0;
  color: #f8fafc;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.1;
}

.porto-modern-duty-title h1 b {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin: 0 14px 4px;
  border-radius: 50%;
  background: #1688ff;
  box-shadow: 0 0 18px rgba(22, 136, 255, 0.8);
}

.porto-modern-duty-title > strong {
  color: #35f36f;
  font-size: 18px;
}

.porto-modern-radio-icon {
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(22, 136, 255, 0.42);
  border-radius: 50%;
  color: #1688ff;
  font-size: 40px;
  box-shadow: 0 0 0 14px rgba(22, 136, 255, 0.08);
}

.porto-modern-duty-meta-grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid rgba(59, 130, 246, 0.22);
  border-radius: 18px;
  overflow: hidden;
  background: rgba(5, 13, 26, 0.48);
}

.porto-modern-duty-meta-grid article {
  min-height: 86px;
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 18px 22px;
  border-right: 1px solid rgba(59, 130, 246, 0.18);
}

.porto-modern-duty-meta-grid article:last-child {
  border-right: 0;
}

.porto-modern-duty-meta-grid span,
.porto-modern-duty-member > span,
.porto-modern-selected-unit dt {
  color: #84b4e8;
  font-size: 12px;
  font-weight: 1000;
  text-transform: uppercase;
}

.porto-modern-duty-meta-grid strong,
.porto-modern-duty-member dd,
.porto-modern-selected-unit dd {
  color: #f8fafc;
  font-weight: 900;
}

.porto-modern-duty-meta-grid div {
  display: flex;
  gap: 8px;
}

.porto-modern-duty-meta-grid div span {
  width: 32px;
  height: 7px;
  border-radius: 999px;
  background: rgba(30, 64, 175, 0.7);
}

.porto-modern-duty-meta-grid div span.filled {
  background: #1688ff;
}

.porto-modern-vehicle-select {
  display: grid;
  gap: 8px;
}

.porto-modern-vehicle-select select {
  min-height: 42px;
  width: 100%;
  border: 1px solid rgba(59, 130, 246, 0.34);
  border-radius: 10px;
  background: rgba(2, 6, 23, 0.82);
  color: #f8fafc;
  padding: 0 12px;
  font-weight: 900;
}

.porto-modern-duty-members {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.porto-modern-duty-member {
  position: relative;
  min-height: 160px;
  display: grid;
  gap: 12px;
  padding: 18px 104px 18px 18px;
  border: 1px solid rgba(59, 130, 246, 0.28);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(0, 49, 92, 0.52), rgba(5, 13, 26, 0.6));
}

.porto-modern-duty-member[data-modern-duty-self-card] {
  cursor: context-menu;
}

.porto-modern-duty-member-number,
.porto-unit-service-number {
  position: absolute;
  top: 14px;
  right: 14px;
  min-width: 58px;
  max-width: 92px;
  padding: 5px 10px;
  border: 1px solid rgba(56, 189, 248, 0.5);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(14, 116, 144, 0.32), rgba(30, 64, 175, 0.28));
  box-shadow: 0 10px 26px rgba(14, 165, 233, 0.12), inset 0 0 18px rgba(96, 165, 250, 0.08);
  color: #bfe1ff;
  font-size: 12px;
  font-weight: 1000;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.porto-modern-duty-member-main,
.porto-modern-selected-member {
  display: flex;
  gap: 12px;
  align-items: center;
}

.porto-modern-member-avatar,
.porto-modern-member-initial {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  object-fit: cover;
  background: rgba(37, 99, 235, 0.28);
  color: #eaf4ff;
  font-weight: 1000;
}

.porto-modern-duty-member dl,
.porto-modern-selected-unit dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.porto-modern-duty-member dl div,
.porto-modern-selected-unit dl div {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 10px;
}

.porto-modern-duty-card h2 {
  margin: 18px 0 12px;
  color: #82b8ff;
  font-size: 16px;
  text-align: center;
  text-transform: uppercase;
}

.porto-modern-status-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.porto-modern-status-button {
  min-height: 92px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  background:
    radial-gradient(circle at 22% 20%, rgba(255, 255, 255, 0.24), transparent 28%),
    linear-gradient(135deg, rgba(0, 83, 174, 0.55), rgba(6, 22, 45, 0.78));
  color: #07111f;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.24);
  transition: transform 140ms ease, box-shadow 140ms ease, filter 140ms ease;
}

.porto-modern-status-button span {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(7, 17, 31, 0.28);
  background: rgba(7, 17, 31, 0.08);
  font-size: 24px;
  font-weight: 1000;
}

.porto-modern-status-button strong {
  font-size: 16px;
}

.porto-modern-status-button.available {
  background:
    radial-gradient(circle at 24% 20%, rgba(255, 255, 255, 0.24), transparent 28%),
    linear-gradient(135deg, #7bbf5b, #4d9b3e);
  border-color: rgba(123, 191, 91, 0.76);
  box-shadow: 0 0 28px rgba(123, 191, 91, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.porto-modern-status-button.driving {
  background:
    radial-gradient(circle at 24% 20%, rgba(255, 255, 255, 0.24), transparent 28%),
    linear-gradient(135deg, #48c9d9, #1eabc2);
  border-color: rgba(72, 201, 217, 0.76);
  box-shadow: 0 0 28px rgba(72, 201, 217, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.porto-modern-status-button.onscene {
  background:
    radial-gradient(circle at 24% 20%, rgba(255, 255, 255, 0.22), transparent 28%),
    linear-gradient(135deg, #5a99ed, #3f7fdc);
  border-color: rgba(90, 153, 237, 0.78);
  color: #fff;
  box-shadow: 0 0 28px rgba(90, 153, 237, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}
.porto-modern-status-button.unavailable {
  background:
    radial-gradient(circle at 24% 20%, rgba(255, 255, 255, 0.34), transparent 28%),
    linear-gradient(135deg, #e5e7eb, #b8c0ca);
  border-color: rgba(229, 231, 235, 0.78);
  box-shadow: 0 0 24px rgba(229, 231, 235, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.42);
}
.porto-modern-status-button.transport {
  background:
    radial-gradient(circle at 24% 20%, rgba(255, 255, 255, 0.3), transparent 28%),
    linear-gradient(135deg, #c8dcff, #91b7f1);
  border-color: rgba(200, 220, 255, 0.78);
  box-shadow: 0 0 26px rgba(145, 183, 241, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.38);
}
.porto-modern-status-button.speech {
  background:
    radial-gradient(circle at 24% 20%, rgba(255, 255, 255, 0.22), transparent 28%),
    linear-gradient(135deg, #f5a343, #e17000);
  border-color: rgba(245, 163, 67, 0.78);
  box-shadow: 0 0 28px rgba(225, 112, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}
.porto-modern-status-button.urgent {
  background:
    radial-gradient(circle at 24% 20%, rgba(255, 255, 255, 0.2), transparent 28%),
    linear-gradient(135deg, #ff3030, #d60000);
  border-color: rgba(255, 48, 48, 0.82);
  color: #fff;
  box-shadow: 0 0 30px rgba(255, 48, 48, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.26);
}
.porto-modern-status-button.offduty {
  background:
    radial-gradient(circle at 24% 20%, rgba(255, 255, 255, 0.28), transparent 28%),
    linear-gradient(135deg, #bababa, #8d8d8d);
  border-color: rgba(186, 186, 186, 0.78);
  box-shadow: 0 0 24px rgba(186, 186, 186, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.38);
}

.porto-modern-status-button.onscene span,
.porto-modern-status-button.urgent span {
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.08);
}

.porto-modern-status-button:hover,
.porto-modern-status-button.active {
  transform: translateY(-2px);
  filter: saturate(1.08) brightness(1.03);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.34), 0 0 0 2px rgba(255, 255, 255, 0.18) inset;
}

.porto-modern-status4-choices {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 14px;
  background: rgba(5, 13, 26, 0.58);
}

.porto-modern-status4-choices > span {
  display: block;
  margin-bottom: 10px;
  color: #b7d5f7;
  font-size: 12px;
  font-weight: 1000;
  text-transform: uppercase;
}

.porto-modern-status4-choices div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.porto-modern-status4-choices button {
  min-height: 40px;
  border: 1px solid rgba(148, 163, 184, 0.32);
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.82);
  color: #f8fafc;
  padding: 0 14px;
  font-weight: 900;
  cursor: pointer;
}

.porto-modern-status4-choices button:hover {
  border-color: rgba(96, 165, 250, 0.86);
}

.porto-modern-duty-actions {
  margin-top: 20px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.porto-modern-primary,
.porto-modern-secondary {
  min-height: 50px;
  border: 1px solid rgba(59, 130, 246, 0.34);
  border-radius: 12px;
  background: rgba(8, 23, 44, 0.82);
  color: #f8fafc;
  padding: 0 18px;
  font-weight: 1000;
  cursor: pointer;
}

.porto-modern-primary {
  background: linear-gradient(135deg, #1457a8, #0d69c8);
}

.porto-modern-ops-dashboard {
  display: grid;
  gap: clamp(12px, 0.95vw, 18px);
  padding: clamp(16px, 1.15vw, 24px);
  min-height: calc(100dvh - 28px);
  overflow: hidden;
}

.porto-modern-ops-header,
.porto-modern-ops-actions,
.porto-modern-brand,
.porto-modern-ops-title {
  display: flex;
  align-items: center;
}

.porto-modern-ops-header {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(300px, 1fr) minmax(500px, auto);
  gap: clamp(18px, 1.45vw, 32px);
  min-height: 56px;
  align-items: center;
}

.porto-modern-brand {
  min-width: 0;
  gap: 12px;
  padding-right: clamp(16px, 1.35vw, 28px);
  border-right: 1px solid rgba(148, 163, 184, 0.2);
}

.porto-modern-brand-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(96, 165, 250, 0.42);
  border-radius: 14px;
  background:
    radial-gradient(circle at 45% 28%, rgba(59, 130, 246, 0.36), transparent 34%),
    rgba(9, 31, 61, 0.68);
  color: #cfe7ff;
  font-size: 17px;
  font-weight: 1000;
  box-shadow: 0 0 28px rgba(37, 99, 235, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.porto-modern-brand-mark img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(96, 165, 250, 0.38));
}

.porto-modern-brand-letter {
  font-size: 16px;
}

.porto-modern-brand strong,
.porto-modern-ops-title h1 {
  color: #f8fafc;
}

.porto-modern-brand span,
.porto-modern-ops-title p {
  color: #a7bad1;
}

.porto-modern-brand div {
  display: grid;
  gap: 2px;
}

.porto-modern-brand strong {
  font-size: 14px;
}

.porto-modern-brand span {
  font-size: 12px;
}

.porto-modern-ops-title {
  align-items: flex-start;
  flex-direction: column;
  flex: 1;
  padding-left: 0;
  border-left: 0;
}

.porto-modern-ops-title h1 {
  margin: 0;
  font-size: clamp(24px, 1.25vw, 30px);
  letter-spacing: 0;
}

.porto-modern-ops-title h1 span {
  display: inline-flex;
  margin-left: 8px;
  padding: 2px 7px;
  border: 1px solid rgba(59, 130, 246, 0.48);
  border-radius: 8px;
  color: #7cc1ff;
  font-size: 12px;
}

.porto-modern-ops-title p {
  font-size: 13px;
}

.porto-modern-ops-actions {
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.porto-modern-ops-actions .porto-ops-action,
.porto-modern-ops-actions .porto-ops-duration-badge,
.porto-modern-ops-profile {
  min-height: 42px;
  border-radius: 8px;
  border: 1px solid rgba(96, 165, 250, 0.24);
  background: rgba(4, 16, 31, 0.62);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
}

.porto-modern-ops-actions .porto-ops-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 15px;
  color: #f8fafc;
  font-size: 12px;
}

.porto-modern-ops-actions .porto-ops-action span {
  color: #38bdf8;
  font-size: 14px;
}

.porto-modern-ops-actions .porto-ops-action.danger {
  border-color: rgba(239, 68, 68, 0.28);
  color: #ff6b72;
}

.porto-modern-ops-actions .porto-ops-action.danger span {
  color: #ff3b45;
}

.porto-modern-ops-actions .porto-ops-duration-badge {
  gap: 8px;
  padding: 0 15px;
  border-color: rgba(245, 158, 11, 0.38);
  background: rgba(45, 28, 8, 0.56);
  color: #facc15;
  font-size: 12px;
}

.porto-modern-ops-profile {
  display: grid;
  grid-template-columns: 34px minmax(84px, 1fr) auto;
  align-items: center;
  gap: 9px;
  min-width: 152px;
  padding: 4px 10px;
  color: #f8fafc;
  cursor: pointer;
}

.porto-modern-ops-profile .avatar,
.porto-modern-ops-profile img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
}

.porto-modern-ops-profile .porto-modern-member-initial {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(96, 165, 250, 0.5);
  background: rgba(15, 68, 128, 0.72);
  color: #dbeafe;
  font-weight: 1000;
}

.porto-modern-ops-profile span {
  display: grid;
  gap: 2px;
  text-align: left;
}

.porto-modern-ops-profile strong {
  color: #f8fafc;
  font-weight: 1000;
  font-size: 13px;
}

.porto-modern-ops-profile small {
  color: #a7bad1;
  font-size: 11px;
}

.porto-modern-ops-profile b {
  color: #cbd5e1;
  font-size: 11px;
}

.porto-modern-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: clamp(12px, 1vw, 18px);
}

.porto-modern-stat-grid article {
  position: relative;
  min-height: 0;
  height: clamp(76px, 7vh, 96px);
  display: grid;
  align-content: center;
  gap: 5px;
  overflow: hidden;
  padding: 14px clamp(86px, 7vw, 128px) 14px 76px;
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 12px;
  background:
    radial-gradient(circle at 18% 50%, rgba(59, 130, 246, 0.22), transparent 25%),
    linear-gradient(135deg, rgba(3, 32, 62, 0.78), rgba(7, 15, 30, 0.72));
}

.porto-modern-stat-grid article strong {
  color: #f8fafc;
  font-size: clamp(25px, 1.45vw, 32px);
  line-height: 1;
}

.porto-modern-stat-grid article span {
  color: #a7bad1;
  font-size: 12px;
  line-height: 1.2;
}

.porto-modern-stat-grid article::before {
  content: "\1F465";
  position: absolute;
  left: 22px;
  top: 50%;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  transform: translateY(-50%);
  background: rgba(59, 130, 246, 0.24);
  color: rgba(219, 234, 254, 0.95);
  font-size: 18px;
  line-height: 1;
  box-shadow: 0 0 34px rgba(59, 130, 246, 0.42);
}

.porto-modern-stat-grid article::after {
  content: "";
  position: absolute;
  right: 22px;
  top: 50%;
  width: clamp(74px, 6vw, 108px);
  height: 36px;
  transform: translateY(-50%);
  background: center / contain no-repeat url("data:image/svg+xml,%3Csvg width='122' height='42' viewBox='0 0 122 42' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 29C12 29 15 20 24 23C31 25 34 33 43 30C52 27 53 13 62 14C70 15 73 25 82 22C91 19 94 8 103 11C111 14 113 21 120 16' stroke='%2360A5FA' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M2 29C12 29 15 20 24 23C31 25 34 33 43 30C52 27 53 13 62 14C70 15 73 25 82 22C91 19 94 8 103 11C111 14 113 21 120 16' stroke='%2360A5FA' stroke-opacity='.25' stroke-width='8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  opacity: 0.85;
}

.porto-modern-stat-grid article.available {
  background:
    radial-gradient(circle at 18% 50%, rgba(34, 197, 94, 0.24), transparent 25%),
    linear-gradient(135deg, rgba(2, 50, 42, 0.72), rgba(7, 15, 30, 0.74));
  box-shadow: inset 0 0 46px rgba(34, 197, 94, 0.14);
}
.porto-modern-stat-grid article.available::before { content: "\2713"; background: #5ee866; color: #052e16; box-shadow: 0 0 38px rgba(34, 197, 94, 0.62); }
.porto-modern-stat-grid article.available::after { background-image: url("data:image/svg+xml,%3Csvg width='122' height='42' viewBox='0 0 122 42' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 29C12 29 15 20 24 23C31 25 34 33 43 30C52 27 53 13 62 14C70 15 73 25 82 22C91 19 94 8 103 11C111 14 113 21 120 16' stroke='%235EE866' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M2 29C12 29 15 20 24 23C31 25 34 33 43 30C52 27 53 13 62 14C70 15 73 25 82 22C91 19 94 8 103 11C111 14 113 21 120 16' stroke='%235EE866' stroke-opacity='.22' stroke-width='8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.porto-modern-stat-grid article.onscene {
  background:
    radial-gradient(circle at 18% 50%, rgba(168, 85, 247, 0.25), transparent 25%),
    linear-gradient(135deg, rgba(38, 22, 78, 0.76), rgba(7, 15, 30, 0.74));
  box-shadow: inset 0 0 46px rgba(168, 85, 247, 0.16);
}
.porto-modern-stat-grid article.onscene::before { content: "\2316"; background: rgba(168, 85, 247, 0.78); color: #f5f3ff; box-shadow: 0 0 38px rgba(168, 85, 247, 0.58); }
.porto-modern-stat-grid article.onscene::after { background-image: url("data:image/svg+xml,%3Csvg width='122' height='42' viewBox='0 0 122 42' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 29C12 29 15 20 24 23C31 25 34 33 43 30C52 27 53 13 62 14C70 15 73 25 82 22C91 19 94 8 103 11C111 14 113 21 120 16' stroke='%23C084FC' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M2 29C12 29 15 20 24 23C31 25 34 33 43 30C52 27 53 13 62 14C70 15 73 25 82 22C91 19 94 8 103 11C111 14 113 21 120 16' stroke='%23C084FC' stroke-opacity='.22' stroke-width='8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.porto-modern-stat-grid article.urgent {
  background:
    radial-gradient(circle at 18% 50%, rgba(239, 68, 68, 0.24), transparent 25%),
    linear-gradient(135deg, rgba(67, 17, 29, 0.76), rgba(7, 15, 30, 0.74));
  box-shadow: inset 0 0 46px rgba(239, 68, 68, 0.16);
}
.porto-modern-stat-grid article.urgent::before { content: "\26A0"; background: rgba(239, 68, 68, 0.82); color: #fff7ed; box-shadow: 0 0 38px rgba(239, 68, 68, 0.58); }
.porto-modern-stat-grid article.urgent::after { background-image: url("data:image/svg+xml,%3Csvg width='122' height='42' viewBox='0 0 122 42' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 29C12 29 15 20 24 23C31 25 34 33 43 30C52 27 53 13 62 14C70 15 73 25 82 22C91 19 94 8 103 11C111 14 113 21 120 16' stroke='%23F87171' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M2 29C12 29 15 20 24 23C31 25 34 33 43 30C52 27 53 13 62 14C70 15 73 25 82 22C91 19 94 8 103 11C111 14 113 21 120 16' stroke='%23F87171' stroke-opacity='.22' stroke-width='8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }

.porto-modern-ops-layout {
  display: grid;
  grid-template-columns: minmax(620px, 1fr) minmax(340px, 0.42fr);
  gap: clamp(20px, 1.7vw, 32px);
  min-width: 0;
}

.porto-modern-ops-list,
.porto-modern-selected-unit,
.porto-modern-ops-footer {
  border: 1px solid rgba(59, 130, 246, 0.26);
  border-radius: 16px;
  background: rgba(6, 18, 35, 0.58);
}

.porto-modern-ops-list {
  min-height: clamp(520px, 60vh, 760px);
  padding: clamp(22px, 1.55vw, 32px);
  min-width: 0;
}

.porto-modern-ops-list > header {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto;
  align-items: end;
  gap: 16px;
  margin-bottom: 22px;
}

.porto-modern-ops-list > header h2 {
  margin: 0;
}

.porto-modern-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.porto-modern-filter-row span {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(59, 130, 246, 0.28);
  border-radius: 10px;
  background: rgba(10, 35, 68, 0.62);
  padding: 0 14px;
  color: #dbeafe;
  font-weight: 900;
}

.porto-modern-filter-row span:nth-child(1) { border-color: rgba(59, 130, 246, 0.48); background: rgba(15, 68, 128, 0.58); }
.porto-modern-filter-row span:nth-child(2) { border-color: rgba(34, 197, 94, 0.34); background: rgba(20, 83, 45, 0.34); }
.porto-modern-filter-row span:nth-child(3) { border-color: rgba(168, 85, 247, 0.38); background: rgba(76, 29, 149, 0.32); }
.porto-modern-filter-row span:nth-child(4) { border-color: rgba(239, 68, 68, 0.38); background: rgba(127, 29, 29, 0.32); }

.porto-modern-requests {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.porto-modern-request-row,
.porto-modern-ops-row {
  display: grid;
  align-items: center;
  gap: 14px;
  border: 1px solid rgba(59, 130, 246, 0.18);
  border-radius: 12px;
  background: rgba(5, 13, 26, 0.52);
}

.porto-modern-request-row {
  grid-template-columns: minmax(200px, 1fr) minmax(240px, 1.05fr) minmax(260px, 1.12fr) minmax(282px, auto);
  padding: 14px;
}

.porto-modern-request-row > div:first-child,
.porto-modern-request-row label {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.porto-modern-request-row > div:first-child strong,
.porto-modern-request-row > div:first-child span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.porto-modern-request-row label span {
  color: #84b4e8;
  font-size: 11px;
  font-weight: 1000;
  text-transform: uppercase;
}

.porto-modern-request-row select {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  border: 1px solid rgba(59, 130, 246, 0.32);
  border-radius: 10px;
  background: rgba(2, 6, 23, 0.86);
  color: #e5eefc;
  padding: 0 10px;
  font-weight: 900;
}

.porto-modern-request-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  min-width: 0;
}

.porto-modern-request-actions .porto-ops-assign {
  min-width: 94px;
}

.porto-modern-unit-rows {
  display: grid;
  gap: 8px;
}

.porto-modern-ops-row {
  grid-template-columns: 24px minmax(84px, 118px) minmax(148px, 260px) minmax(104px, 136px) minmax(74px, 112px) minmax(156px, 1fr) 38px;
  min-height: 64px;
  padding: 9px 16px;
  cursor: pointer;
  min-width: 0;
}

.porto-modern-ops-row.selected {
  border-color: rgba(96, 165, 250, 0.92);
  box-shadow: inset 4px 0 0 #22c55e;
}

.porto-modern-ops-row strong {
  font-size: 22px;
}

.porto-modern-ops-row > * {
  min-width: 0;
}

.porto-modern-status-light {
  width: 15px;
  height: 15px;
  display: inline-block;
  border-radius: 50%;
  background: #64748b;
  box-shadow: 0 0 0 5px rgba(100, 116, 139, 0.14);
}

.porto-modern-status-light.available { background: #5ee866; box-shadow: 0 0 0 5px rgba(34, 197, 94, 0.18); }
.porto-modern-status-light.driving { background: #2ea8ff; box-shadow: 0 0 0 5px rgba(59, 130, 246, 0.18); }
.porto-modern-status-light.onscene { background: #a855f7; box-shadow: 0 0 0 5px rgba(168, 85, 247, 0.18); }
.porto-modern-status-light.speech,
.porto-modern-status-light.urgent { background: #ef4444; box-shadow: 0 0 0 5px rgba(239, 68, 68, 0.18); }

.porto-modern-ops-avatars .porto-modern-member-avatar,
.porto-modern-ops-avatars .porto-modern-member-initial {
  margin-right: -8px;
  border: 1px solid rgba(59, 130, 246, 0.55);
}

.porto-modern-ops-avatars > span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.92);
  font-size: 12px;
  font-weight: 1000;
}

.porto-modern-row-arrow {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(96, 165, 250, 0.24);
  border-radius: 12px;
  background: rgba(8, 19, 36, 0.72);
  color: transparent;
  font-size: 0;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.porto-modern-row-arrow::before {
  content: "\22EE";
  color: #b9cbe2;
  font-size: 20px;
  line-height: 1;
}

.porto-modern-row-arrow:hover {
  border-color: rgba(96, 165, 250, 0.48);
  background: rgba(17, 38, 68, 0.82);
}

.porto-modern-selected-unit {
  display: grid;
  gap: 22px;
  align-content: start;
  padding: clamp(26px, 1.7vw, 34px);
  min-width: 0;
  box-shadow: inset 4px 0 0 #22c55e;
  background:
    radial-gradient(circle at 18% 0%, rgba(34, 197, 94, 0.12), transparent 30%),
    rgba(6, 18, 35, 0.62);
}

.porto-modern-selected-unit header {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.porto-modern-selected-unit h2 {
  flex: 1;
  margin: 0;
  font-size: 28px;
  min-width: 0;
  overflow-wrap: anywhere;
}

.porto-modern-selected-unit h2 small {
  color: #dbeafe;
  font-size: 18px;
}

.porto-modern-selected-unit dl {
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
}

.porto-modern-selected-unit dl div {
  grid-template-columns: 94px minmax(0, 1fr);
  align-items: center;
}

.porto-modern-selected-unit section {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(59, 130, 246, 0.18);
  border-radius: 14px;
  background: rgba(4, 12, 24, 0.36);
}

.porto-modern-selected-unit h3 {
  margin: 0;
  color: #82b8ff;
}

.porto-modern-selected-member {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 18px 28px;
  gap: 12px;
  align-items: center;
  min-height: 56px;
  padding: 8px 0;
}

.porto-modern-selected-member > div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.porto-modern-selected-member .porto-modern-member-avatar,
.porto-modern-selected-member .porto-modern-member-initial {
  width: 34px;
  height: 34px;
}

.porto-modern-selected-member strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.porto-modern-selected-member span:not(.porto-modern-status-light) {
  display: block;
  color: #9fb8d6;
  font-size: 12px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.porto-modern-ops-footer {
  min-height: 68px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  padding: 12px 18px;
  color: #a7bad1;
}

.porto-modern-ops-footer span {
  padding-right: 22px;
  border-right: 1px solid rgba(148, 163, 184, 0.16);
}

.porto-modern-ops-footer span:last-of-type {
  border-right: 0;
}

.porto-modern-ops-footer button {
  margin-left: auto;
}

@media (max-width: 1520px) {
  .porto-modern-ops-header {
    grid-template-columns: minmax(260px, 0.72fr) minmax(280px, 1fr);
  }

  .porto-modern-ops-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .porto-modern-stat-grid {
    grid-template-columns: repeat(4, minmax(150px, 1fr));
    gap: 12px;
  }

  .porto-modern-ops-row {
    grid-template-columns: 22px minmax(78px, 108px) minmax(138px, 220px) minmax(104px, 128px) minmax(52px, 82px) minmax(124px, 1fr) 30px;
    min-height: 62px;
    padding-inline: 14px;
  }
}

@media (max-width: 1280px) {
  body[data-porto-ui="modern"].porto-ops-workspace .porto-status-center {
    padding-inline: 6px;
  }

  body[data-porto-ui="modern"].porto-duty-workspace .porto-duty-panel,
  body[data-porto-ui="modern"].porto-ops-workspace .porto-ops-panel {
    width: min(100% - 10px, 1940px);
  }

  .porto-modern-ops-dashboard {
    padding: 18px;
  }

  .porto-modern-ops-layout {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.44fr);
    gap: 18px;
  }

  .porto-modern-ops-list,
  .porto-modern-selected-unit {
    padding: 22px;
  }

  .porto-modern-ops-row {
    grid-template-columns: 22px 86px minmax(120px, 184px) minmax(100px, 122px) minmax(44px, 60px) minmax(104px, 1fr) 28px;
    gap: 10px;
    min-height: 60px;
    padding: 8px 12px;
  }

  .porto-modern-ops-row strong {
    font-size: 20px;
  }

  .porto-modern-stat-grid article {
    height: 74px;
    padding: 12px 62px 12px 58px;
  }

  .porto-modern-stat-grid article::before {
    left: 16px;
    width: 34px;
    height: 34px;
  }

  .porto-modern-stat-grid article::after {
    right: 12px;
    width: 58px;
    height: 28px;
  }
}

@media (max-width: 1180px) {
  .porto-modern-ops-layout {
    grid-template-columns: 1fr;
  }

  .porto-modern-ops-header {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

  .porto-modern-ops-title {
    padding-left: 0;
    border-left: 0;
  }

  .porto-modern-brand {
    border-right: 0;
    padding-right: 0;
  }

  .porto-modern-ops-actions {
    grid-column: auto;
    justify-content: flex-start;
  }

  .porto-modern-request-row {
    grid-template-columns: minmax(220px, 1fr) minmax(220px, 1fr);
  }

  .porto-modern-request-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .porto-modern-ops-row {
    grid-template-columns: 22px 88px minmax(130px, 180px) minmax(108px, 126px) minmax(116px, 1fr) 32px;
  }

  .porto-modern-ops-row .porto-modern-ops-avatars {
    display: none;
  }

  .porto-modern-selected-unit {
    min-height: 0;
  }
}

@media (max-width: 760px) {
  body[data-porto-ui="modern"].porto-duty-workspace .porto-duty-panel,
  body[data-porto-ui="modern"].porto-ops-workspace .porto-ops-panel {
    width: min(100% - 20px, 560px);
  }

  .porto-modern-ops-row,
  .porto-modern-request-row {
    grid-template-columns: 1fr;
  }

  .porto-modern-stat-grid {
    grid-template-columns: 1fr;
  }

  .porto-modern-stat-grid article {
    height: 82px;
    padding: 14px 78px 14px 70px;
  }

  .porto-modern-stat-grid article::before {
    left: 20px;
  }

  .porto-modern-stat-grid article::after {
    right: 18px;
    width: 70px;
  }

  .porto-modern-ops-list > header {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .porto-modern-status-grid {
    grid-template-columns: 1fr;
  }

  .porto-modern-duty-actions,
  .porto-modern-ops-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .porto-modern-ops-actions .porto-ops-action,
  .porto-modern-ops-actions .porto-ops-duration-badge,
  .porto-modern-ops-profile {
    width: 100%;
    justify-content: center;
  }

  .porto-modern-ops-profile {
    justify-content: stretch;
  }
}

.porto-ui-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 42px;
  padding: 5px 6px 5px 10px;
  border: 1px solid rgba(96, 165, 250, 0.24);
  border-radius: 10px;
  background: rgba(8, 14, 26, 0.7);
  color: #e5eefc;
  pointer-events: auto;
  backdrop-filter: blur(12px);
}

.porto-ui-switch span {
  color: #9fb8d6;
  font-size: 11px;
  font-weight: 1000;
  text-transform: uppercase;
}

.porto-ui-switch button {
  min-height: 30px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #c7d6ea;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 1000;
  cursor: pointer;
}

.porto-ui-switch button:hover,
.porto-ui-switch button.is-active {
  border-color: rgba(59, 130, 246, 0.62);
  background: rgba(59, 130, 246, 0.18);
  color: #f8fafc;
}

.porto-empty {
  position: relative;
  height: calc(100dvh - 76px);
  min-height: 0;
  overflow: hidden;
}

@media (max-width: 720px) {
  .porto-topbar {
    height: 66px;
    min-height: 66px;
    padding: 10px 16px;
  }

  .porto-empty {
    height: calc(100dvh - 66px);
  }

  .porto-topbar .profile-chip {
    width: 100%;
  }

  .porto-ui-switch {
    order: 2;
  }
}

body.porto-locked .porto-topbar,
body.porto-locked .porto-empty {
  overflow: hidden;
}
body:not(.porto-locked) .porto-lockscreen {
  display: none;
}
body.porto-locked .porto-lockscreen {
  display: grid;
}
/* Porto profiel pop-up */
.porto-profile-dialog {
  width: min(620px, calc(100vw - 28px));
}

.porto-profile-head {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-2);
}

.porto-profile-head img {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--orange);
}

.porto-profile-head h3 {
  margin: 0;
  color: var(--text);
  font-size: 26px;
  line-height: 1.1;
}

.porto-training-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 38px;
  align-items: center;
}

.porto-training-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  border: 1px solid rgba(52, 168, 83, 0.52);
  border-radius: 999px;
  background: rgba(52, 168, 83, 0.14);
  color: #d9f8e1;
  font-size: 12px;
  font-weight: 900;
}

.porto-profile-form input[type="tel"] {
  width: 100%;
}

@media (max-width: 560px) {
  .porto-profile-head {
    align-items: flex-start;
  }

  .porto-profile-head h3 {
    font-size: 22px;
  }
}

.porto-status-center {
  height: 100%;
  display: grid;
  place-items: center;
  padding: clamp(14px, 2.4vh, 28px);
  transform: translateY(clamp(-58px, -7vh, -28px));
}

.porto-status-button {
  margin-top: 22px;
  width: min(118px, 38vw);
  min-height: 48px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--green), var(--green-strong));
  color: #fff;
  font-size: 16px;
  font-weight: 900;
  box-shadow: none;
}

.porto-status-button:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, #ff8a00, #f59e0b);
}
.porto-status-intro {
  display: grid;
  justify-items: center;
  gap: 14px;
  max-width: 620px;
  text-align: center;
}

.porto-status-intro h1 {
  font-size: clamp(30px, 4vw, 48px);
  text-shadow: none;
}


.porto-current-ops {
  margin-top: 8px;
  color: rgba(229, 231, 235, 0.86);
  font-size: 15px;
  font-weight: 700;
  text-shadow: none;
}

.porto-status-intro p {
  max-width: 520px;
  color: rgba(229, 231, 235, 0.86);
  font-size: 16px;
  line-height: 1.5;
  text-shadow: none;
}

.porto-status-zero-card {
  width: min(560px, 94vw);
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(59, 130, 246, 0.34);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.86);
  box-shadow: 0 18px 45px rgba(2, 6, 23, 0.28);
}

.porto-status-request-label {
  display: grid;
  gap: 8px;
  color: #f8fafc;
  text-align: left;
  font-size: 14px;
  font-weight: 900;
}

.porto-status-request-label textarea {
  width: 100%;
  min-height: 96px;
  resize: vertical;
  border: 1px solid rgba(96, 165, 250, 0.42);
  border-radius: 12px;
  background: rgba(2, 6, 23, 0.82);
  color: #f8fafc;
  padding: 12px 13px;
  font: inherit;
  font-weight: 700;
}

.porto-status-request-label textarea::placeholder {
  color: rgba(203, 213, 225, 0.68);
}

.porto-status-zero-card .porto-status-button {
  width: 100%;
  margin: 0;
}



body.porto-workspace {
  background: #0f172a;
}

body.porto-workspace .porto-empty {
  background: #0f172a;
}

body.porto-workspace .porto-wall-brand,
body.porto-workspace .porto-status-intro,
body.porto-workspace .porto-pending-panel {
  display: none;
}

body.porto-workspace .porto-status-center {
  place-items: start center;
  align-content: start;
  transform: none;
  padding: clamp(16px, 2.4vw, 28px);
}

body.porto-workspace .porto-duty-panel {
  width: min(1320px, calc(100vw - 56px));
  margin-top: 0;
}

body.porto-workspace .porto-duty-card {
  background: #1e293b;
  box-shadow: none;
  backdrop-filter: none;
}

body.porto-ops-workspace .porto-status-center {
  align-content: start;
  padding: clamp(84px, 9vh, 112px) clamp(16px, 2.4vw, 28px) 28px;
}

body.porto-ops-workspace .porto-ops-panel {
  height: calc(100dvh - clamp(112px, 13vh, 140px));
  overflow: hidden;
}

body.porto-ops-workspace .porto-ops-grid {
  display: grid;
  grid-template-columns: minmax(760px, 0.9fr) minmax(980px, 1.1fr);
  gap: 20px;
  height: 100%;
}

body.porto-ops-workspace.porto-map-disabled .porto-ops-grid {
  grid-template-columns: minmax(0, 1fr);
}

body.porto-ops-workspace .porto-ops-left-stack {
  max-height: 100%;
  overflow: auto;
  padding-right: 6px;
}

body.porto-ops-workspace .porto-map-card {
  height: 100%;
  min-height: 0;
}

body.porto-ops-workspace .porto-map-surface {
  position: relative;
  height: calc(100dvh - 188px);
  min-height: min(760px, calc(100dvh - 188px));
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 16px;
  background: #07111f;
  --porto-map-marker-scale: 1;
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.porto-map-viewport {
  position: absolute;
  inset: 0;
  overflow: hidden;
  cursor: grab;
  touch-action: none;
  background: #144873;
}

.porto-map-viewport.is-dragging,
body.porto-ops-workspace .porto-map-surface.is-dragging {
  cursor: grabbing;
}

.porto-map-layer {
  position: absolute;
  inset: 0;
  transform-origin: center center;
  will-change: transform;
}

.porto-map-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  user-select: none;
  pointer-events: none;
  background: #144873;
}

.porto-map-markers {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.porto-map-controls {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 8;
  display: flex;
  gap: 8px;
  max-width: calc(100% - 32px);
  padding: 8px;
  border: 1px solid rgba(245, 158, 11, 0.42);
  border-radius: 999px;
  background: rgba(7, 17, 31, 0.94);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(10px);
}

.porto-map-controls button {
  min-width: 42px;
  min-height: 40px;
  border: 1px solid rgba(245, 158, 11, 0.42);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.98);
  color: #f8fafc;
  padding: 0 14px;
  font-size: 15px;
  font-weight: 1000;
  line-height: 1;
  cursor: pointer;
}

.porto-map-controls button:hover {
  border-color: rgba(245, 158, 11, 0.88);
  background: #f59e0b;
  color: #07111f;
}

.porto-map-marker {
  position: absolute;
  z-index: 4;
  transform: translate(-50%, -50%) scale(var(--porto-map-marker-scale));
  transform-origin: center;
  border: 1px solid rgba(245, 158, 11, 0.88);
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.96);
  color: #07111f;
  padding: 6px 9px;
  font-size: 12px;
  font-weight: 1000;
  cursor: default;
  pointer-events: auto;
  box-shadow: 0 0 0 5px rgba(245, 158, 11, 0.16), 0 10px 22px rgba(0, 0, 0, 0.28);
}
@media (max-width: 1120px) {
  .porto-ops-grid {
    grid-template-columns: 1fr;
  }

  .porto-map-card,
  .porto-map-surface {
    min-height: 360px;
  }
}

@media (max-width: 760px) {
  .porto-ops-unit-actions {
    grid-template-columns: 1fr;
  }
}
.porto-ops-panel {
  width: min(2160px, calc(100vw - 16px));
  margin-top: 0;
}

body.porto-ops-workspace .porto-duty-panel:not(.porto-ops-panel),
body.porto-duty-workspace .porto-ops-panel {
  display: none;
}

body.porto-duty-workspace,
body.porto-ops-workspace {
  background:
    radial-gradient(circle at center, rgba(15, 23, 42, 0.18), rgba(15, 23, 42, 0.76) 58%, rgba(8, 12, 17, 0.92) 100%),
    linear-gradient(180deg, rgba(8, 12, 17, 0.18), rgba(8, 12, 17, 0.58)),
    url("assets/porto-dispatch-background.png") center / cover fixed;
}

body.porto-ops-workspace .porto-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 6;
  background: transparent;
  pointer-events: none;
}

body.porto-ops-workspace .porto-topbar .profile-chip {
  pointer-events: auto;
}

body[data-porto-ui="modern"].porto-ops-workspace .porto-topbar {
  inset: 12px 0 auto;
  height: 46px;
  min-height: 46px;
  padding: 0 clamp(18px, 2vw, 34px);
}

body[data-porto-ui="modern"].porto-ops-workspace .porto-topbar .profile-chip {
  display: none;
}

body.porto-ops-workspace .porto-empty {
  height: 100dvh;
  background: transparent;
}
body.porto-duty-workspace .porto-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 6;
  background: transparent;
  pointer-events: none;
}

body.porto-duty-workspace .porto-topbar .profile-chip {
  pointer-events: auto;
}

body.porto-duty-workspace .porto-empty {
  height: 100dvh;
  background: transparent;
}

body.porto-duty-workspace .porto-duty-card,
body.porto-duty-workspace .porto-unit-member-bar,
body.porto-duty-workspace .porto-callsign-card,
body.porto-duty-workspace .porto-vehicle-choice {
  backdrop-filter: blur(10px);
}
body.porto-duty-workspace .porto-empty {
  overflow: hidden;
}

body[data-porto-ui="modern"].porto-duty-workspace .porto-topbar .profile-chip {
  display: none;
}

body[data-porto-ui="modern"].porto-duty-workspace .porto-topbar {
  height: 54px;
  min-height: 54px;
  padding: 12px clamp(330px, 24vw, 380px) 0 28px;
}

body[data-porto-ui="modern"].porto-duty-workspace .porto-topbar .porto-ui-switch {
  pointer-events: auto;
}

body[data-porto-ui="modern"].porto-duty-workspace .porto-status-center {
  padding-top: clamp(74px, 7vh, 98px);
}

body[data-porto-ui="modern"].porto-duty-workspace .porto-modern-duty-dashboard {
  position: relative;
  min-height: min(860px, calc(100dvh - 92px));
  display: grid;
  place-items: center;
}

.porto-modern-duty-user-chip {
  position: fixed;
  top: 16px;
  right: clamp(18px, 2.1vw, 36px);
  z-index: 8;
  display: inline-grid;
  grid-template-columns: 38px minmax(0, auto) 16px;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  max-width: min(310px, calc(100vw - 210px));
  border: 1px solid rgba(59, 130, 246, 0.32);
  border-radius: 10px;
  background: rgba(8, 23, 44, 0.72);
  color: #f8fafc;
  padding: 8px 12px;
  box-shadow: 0 16px 46px rgba(0, 0, 0, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  cursor: pointer;
  backdrop-filter: blur(14px);
}

.porto-modern-duty-user-chip .porto-modern-member-avatar,
.porto-modern-duty-user-chip .porto-modern-member-initial {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(59, 130, 246, 0.7);
  box-shadow: 0 0 16px rgba(37, 99, 235, 0.38);
}

.porto-modern-duty-user-chip span {
  min-width: 0;
  display: grid;
  gap: 1px;
  text-align: left;
}

.porto-modern-duty-user-chip strong,
.porto-modern-duty-user-chip small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.porto-modern-duty-user-chip strong {
  font-size: 14px;
  line-height: 1.1;
}

.porto-modern-duty-user-chip small {
  color: #b8d3f2;
  font-size: 12px;
}

.porto-modern-duty-user-chip b {
  color: #c7dbf4;
  font-size: 18px;
  line-height: 1;
}

body[data-porto-ui="modern"].porto-duty-workspace .porto-modern-duty-card {
  width: min(1240px, calc(100vw - 88px));
  display: grid;
  gap: 18px;
  padding: clamp(22px, 2vw, 30px);
  border-radius: 18px;
  background:
    radial-gradient(circle at 24% 0%, rgba(20, 86, 165, 0.34), transparent 34%),
    linear-gradient(180deg, rgba(9, 26, 49, 0.86), rgba(4, 12, 25, 0.84));
}

.porto-modern-duty-shell-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 54px;
}

.porto-modern-duty-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.porto-modern-duty-brand > span {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(96, 165, 250, 0.42);
  border-radius: 14px;
  background: rgba(8, 31, 60, 0.68);
  box-shadow: 0 0 28px rgba(37, 99, 235, 0.24);
}

.porto-modern-duty-brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.porto-modern-duty-brand div {
  display: grid;
  gap: 3px;
}

.porto-modern-duty-brand strong {
  color: #f8fafc;
  font-size: 14px;
  text-transform: uppercase;
}

.porto-modern-duty-brand small {
  color: #a9bed7;
  font-size: 13px;
}

body[data-porto-ui="modern"].porto-duty-workspace .porto-modern-duty-head {
  grid-template-columns: minmax(210px, auto) minmax(0, 1fr) 90px;
  gap: clamp(16px, 2.2vw, 30px);
  align-items: center;
  padding: 8px 0 0;
}

body[data-porto-ui="modern"].porto-duty-workspace .porto-modern-duty-avatars .porto-modern-member-avatar,
body[data-porto-ui="modern"].porto-duty-workspace .porto-modern-duty-avatars .porto-modern-member-initial {
  width: clamp(62px, 5.2vw, 86px);
  height: clamp(62px, 5.2vw, 86px);
  margin-right: -16px;
}

body[data-porto-ui="modern"].porto-duty-workspace .porto-modern-duty-title {
  min-width: 0;
}

body[data-porto-ui="modern"].porto-duty-workspace .porto-modern-duty-title h1 {
  max-width: 100%;
  margin: 5px 0 4px;
  font-size: clamp(26px, 2.35vw, 38px);
  overflow-wrap: anywhere;
}

.porto-modern-duty-linked {
  display: inline-block;
  margin-left: 18px;
  color: #1688ff;
  font-size: 15px;
  font-weight: 900;
}

.porto-modern-duty-title .status-available { color: #35f36f; }
.porto-modern-duty-title .status-driving { color: #36d7e6; }
.porto-modern-duty-title .status-onscene { color: #60a5fa; }
.porto-modern-duty-title .status-unavailable { color: #d5dde8; }
.porto-modern-duty-title .status-transport { color: #b9d4ff; }
.porto-modern-duty-title .status-speech { color: #ffae3c; }
.porto-modern-duty-title .status-urgent { color: #ff4545; }
.porto-modern-duty-title .status-offduty { color: #c4c4c4; }

body[data-porto-ui="modern"].porto-duty-workspace .porto-modern-radio-icon {
  width: 78px;
  height: 78px;
  font-size: 32px;
}

body[data-porto-ui="modern"].porto-duty-workspace .porto-modern-duty-meta-grid {
  margin-top: 0;
  grid-template-columns: minmax(178px, 0.9fr) minmax(260px, 1.35fr) minmax(168px, 0.9fr) minmax(168px, 0.9fr);
}

body[data-porto-ui="modern"].porto-duty-workspace .porto-modern-duty-meta-grid article {
  min-height: 72px;
  min-width: 0;
  grid-template-columns: 42px minmax(0, 1fr);
  grid-template-areas:
    "icon label"
    "icon value";
  column-gap: 14px;
  padding: 14px 18px;
}

.porto-modern-duty-meta-grid article > i {
  grid-area: icon;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  align-self: center;
  border: 1px solid rgba(22, 136, 255, 0.32);
  border-radius: 50%;
  background: rgba(12, 53, 102, 0.5);
  color: #1688ff;
  font-style: normal;
}

.porto-modern-duty-meta-grid article > .porto-modern-vehicle-select {
  grid-column: 1 / -1;
  width: 100%;
  min-width: 0;
  justify-self: stretch;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  grid-template-areas:
    "icon label"
    "icon value";
  column-gap: 14px;
  align-items: center;
}

.porto-modern-vehicle-select > i {
  grid-area: icon;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(22, 136, 255, 0.32);
  border-radius: 50%;
  background: rgba(12, 53, 102, 0.5);
  color: #1688ff;
  font-style: normal;
}

.porto-modern-duty-meta-grid article > span,
.porto-modern-vehicle-select > span {
  grid-area: label;
}

.porto-modern-duty-meta-grid article > strong,
.porto-modern-vehicle-select select,
.porto-modern-vehicle-select > strong {
  grid-area: value;
  min-width: 0;
  max-width: 100%;
  justify-self: stretch;
}

.porto-modern-vehicle-select select {
  min-width: min(220px, 100%);
}

.porto-modern-duty-members {
  margin-top: 0;
}

body[data-porto-ui="modern"].porto-duty-workspace .porto-modern-duty-member {
  min-height: 132px;
  gap: 10px;
  padding: 15px 96px 15px 16px;
}

.porto-modern-duty-member.empty {
  opacity: 0.52;
  border-style: dashed;
}

body[data-porto-ui="modern"].porto-duty-workspace .porto-modern-duty-member dl div {
  grid-template-columns: 108px minmax(0, 1fr);
}

body[data-porto-ui="modern"].porto-duty-workspace .porto-modern-duty-card h2 {
  margin: 2px 0 -2px;
  letter-spacing: 0.08em;
}

body[data-porto-ui="modern"].porto-duty-workspace .porto-modern-status-button {
  position: relative;
  min-height: 80px;
  gap: 16px;
  padding: 14px 18px;
  color: #08111e;
}

body[data-porto-ui="modern"].porto-duty-workspace .porto-modern-status-button span {
  width: 44px;
  height: 44px;
  font-size: 20px;
}

.porto-modern-status-button em {
  color: inherit;
  font-size: 28px;
  font-style: normal;
  font-weight: 1000;
}

body[data-porto-ui="modern"].porto-duty-workspace .porto-modern-status-button strong {
  font-size: 15px;
}

body[data-porto-ui="modern"].porto-duty-workspace .porto-modern-duty-actions {
  margin-top: 0;
  align-items: center;
}

@media (max-width: 1280px) {
  body[data-porto-ui="modern"].porto-duty-workspace .porto-modern-duty-card {
    width: min(1120px, calc(100vw - 42px));
  }
}

@media (max-width: 980px) {
  body[data-porto-ui="modern"].porto-duty-workspace .porto-modern-duty-head,
  body[data-porto-ui="modern"].porto-duty-workspace .porto-modern-duty-meta-grid,
  body[data-porto-ui="modern"].porto-duty-workspace .porto-modern-duty-members,
  body[data-porto-ui="modern"].porto-duty-workspace .porto-modern-status-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body[data-porto-ui="modern"].porto-duty-workspace .porto-modern-radio-icon {
    display: none;
  }

  body[data-porto-ui="modern"].porto-duty-workspace .porto-modern-duty-head {
    grid-template-columns: auto minmax(0, 1fr);
  }

  body[data-porto-ui="modern"].porto-duty-workspace .porto-modern-duty-meta-grid article:nth-child(2n) {
    border-right: 0;
  }

  body[data-porto-ui="modern"].porto-duty-workspace .porto-modern-duty-meta-grid article:nth-child(n+3) {
    border-top: 1px solid rgba(59, 130, 246, 0.18);
  }
}

@media (max-width: 720px) {
  body[data-porto-ui="modern"].porto-duty-workspace .porto-topbar {
    padding: 12px 18px 0;
  }

  .porto-modern-duty-user-chip {
    position: static;
    justify-self: end;
    margin-bottom: 12px;
    max-width: 100%;
  }

  body[data-porto-ui="modern"].porto-duty-workspace .porto-status-center {
    padding-top: 74px;
  }

  body[data-porto-ui="modern"].porto-duty-workspace .porto-modern-duty-card {
    width: min(100%, calc(100vw - 20px));
    padding: 18px;
  }

  body[data-porto-ui="modern"].porto-duty-workspace .porto-modern-duty-head,
  body[data-porto-ui="modern"].porto-duty-workspace .porto-modern-duty-meta-grid,
  body[data-porto-ui="modern"].porto-duty-workspace .porto-modern-duty-members,
  body[data-porto-ui="modern"].porto-duty-workspace .porto-modern-status-grid {
    grid-template-columns: 1fr;
  }

  body[data-porto-ui="modern"].porto-duty-workspace .porto-modern-duty-meta-grid article {
    border-right: 0;
    border-top: 0;
    border-bottom: 1px solid rgba(59, 130, 246, 0.18);
  }

  body[data-porto-ui="modern"].porto-duty-workspace .porto-modern-duty-meta-grid article:last-child {
    border-bottom: 0;
  }
}

.porto-pending-panel {
  position: fixed;
  inset: 0;
  z-index: 8;
  display: grid;
  place-items: center;
  padding: clamp(18px, 3vw, 48px);
  background:
    radial-gradient(circle at 50% 45%, rgba(30, 64, 175, 0.2), transparent 38%),
    rgba(3, 7, 14, 0.48);
  backdrop-filter: blur(11px);
}

.porto-pending-panel[hidden] {
  display: none;
}

.porto-pending-card {
  width: min(610px, calc(100vw - 36px));
  display: grid;
  justify-items: center;
  gap: clamp(14px, 1.8vw, 20px);
  padding: clamp(32px, 3.8vw, 50px) clamp(24px, 4.2vw, 52px);
  border: 1px solid rgba(125, 165, 204, 0.5);
  border-radius: clamp(20px, 2.2vw, 28px);
  background:
    radial-gradient(circle at 50% 0%, rgba(59, 130, 246, 0.16), transparent 38%),
    linear-gradient(180deg, rgba(4, 13, 27, 0.9), rgba(3, 9, 20, 0.86));
  color: #e5e7eb;
  text-align: center;
  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.48),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 0 1px rgba(96, 165, 250, 0.05);
  backdrop-filter: blur(18px);
}

.porto-pending-card h2 {
  margin: 0;
  max-width: 470px;
  color: #f8fafc;
  font-size: clamp(34px, 4.2vw, 54px);
  line-height: 1.06;
  letter-spacing: 0;
  text-shadow: 0 8px 32px rgba(0, 0, 0, 0.42);
}

.porto-pending-card p {
  max-width: 430px;
  margin: -2px 0 clamp(6px, 1vw, 12px);
  color: #a8b3c7;
  font-size: clamp(16px, 1.7vw, 21px);
  line-height: 1.42;
}


.porto-pending-cancel,
.porto-management-bypass,
.porto-dev-bypass {
  width: min(380px, 100%);
  min-height: 60px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-radius: 14px;
  color: #fff;
  padding: 10px 18px;
  font-size: clamp(18px, 1.65vw, 23px);
  font-weight: 1000;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.porto-pending-cancel span,
.porto-management-bypass span,
.porto-dev-bypass span {
  color: inherit;
  font-size: 1.05em;
}

.porto-pending-cancel {
  border: 1px solid rgba(251, 146, 60, 0.88);
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.18), transparent 46%),
    linear-gradient(135deg, #f59e0b, #d97706);
  box-shadow: 0 0 34px rgba(245, 158, 11, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.porto-pending-cancel:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 44px rgba(245, 158, 11, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.porto-dev-bypass {
  border: 1px solid rgba(203, 213, 225, 0.72);
  background: rgba(3, 10, 23, 0.52);
  color: #d7deea;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.porto-dev-bypass:hover {
  transform: translateY(-2px);
  border-color: rgba(226, 232, 240, 0.94);
  background: rgba(10, 22, 42, 0.64);
}

.porto-management-bypass {
  border: 1px solid rgba(245, 158, 11, 0.82);
  background:
    linear-gradient(135deg, rgba(245, 158, 11, 0.16), rgba(120, 53, 15, 0.26)),
    rgba(3, 10, 23, 0.58);
  color: #fb923c;
}

.porto-management-bypass:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(245, 158, 11, 0.22);
}

.porto-dev-bypass[hidden],
.porto-management-bypass[hidden] {
  display: none;
}

.porto-spinner {
  width: clamp(74px, 6.8vw, 98px);
  height: clamp(74px, 6.8vw, 98px);
  border-radius: 50%;
  border: 6px solid rgba(96, 165, 250, 0.18);
  border-top-color: #60a5fa;
  border-right-color: #7bb6ff;
  border-bottom-color: #fb923c;
  animation: porto-spin 0.95s linear infinite;
  box-shadow: 0 0 24px rgba(96, 165, 250, 0.22);
}

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

.porto-duty-panel {
  width: min(1120px, calc(100vw - 56px));
  display: grid;
  gap: 16px;
  margin-top: clamp(120px, 18vh, 210px);
}

.porto-duty-card {
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.72);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(8px);
  padding: 18px;
}


.porto-duty-assignment {
  width: min(820px, 100%);
  justify-self: center;
  display: grid;
  grid-template-columns: minmax(190px, 0.72fr) minmax(260px, 1fr);
  gap: 14px;
  align-items: stretch;
}

.porto-callsign-card,
.porto-vehicle-choice {
  display: grid;
  gap: 6px;
  padding: 16px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.96), rgba(15, 23, 42, 0.9));
}

.porto-callsign-card span,
.porto-vehicle-choice span {
  color: #9fb8d6;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.porto-callsign-card strong {
  color: #f8fafc;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1;
}

.porto-callsign-card small {
  color: #f59e0b;
  font-size: 13px;
  font-weight: 900;
}

.porto-vehicle-choice select {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(148, 163, 184, 0.32);
  border-radius: 12px;
  background: rgba(10, 17, 30, 0.88);
  color: #e5e7eb;
  padding: 10px 12px;
  font-weight: 900;
}

.porto-vehicle-choice select:focus {
  border-color: rgba(245, 158, 11, 0.8);
  outline: none;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.16);
}
.porto-unit-member-bar {
  width: min(1120px, 100%);
  justify-self: center;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 14px;
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.94), rgba(15, 23, 42, 0.94));
}

.porto-unit-member {
  position: relative;
  display: grid;
  gap: 10px;
  min-height: 132px;
  padding: 16px 100px 16px 16px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.64);
}

.porto-unit-member.empty {
  opacity: 0.5;
  border-style: dashed;
}

.porto-unit-slot {
  color: #f59e0b;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.porto-unit-member div {
  display: grid;
  grid-template-columns: 134px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.porto-unit-member div span {
  color: #9fb8d6;
  font-size: 12px;
  font-weight: 900;
}

.porto-unit-member div strong {
  min-width: 0;
  color: #f8fafc;
  font-size: 15px;
  overflow-wrap: anywhere;
}

.porto-member-name.duty-ovd,
.porto-modern-member strong.porto-member-name.duty-ovd,
.porto-unit-member div strong.porto-member-name.duty-ovd {
  color: #4ade80;
}

.porto-member-name.duty-opco,
.porto-modern-member strong.porto-member-name.duty-opco,
.porto-unit-member div strong.porto-member-name.duty-opco {
  color: #facc15;
}

.porto-member-name.duty-k9,
.porto-member-name.duty-k9-begeleider,
.porto-modern-member strong.porto-member-name.duty-k9,
.porto-modern-member strong.porto-member-name.duty-k9-begeleider,
.porto-unit-member div strong.porto-member-name.duty-k9,
.porto-unit-member div strong.porto-member-name.duty-k9-begeleider {
  color: #fbbf24;
}

.porto-member-name.no-ibt,
.porto-modern-member strong.porto-member-name.no-ibt,
.porto-unit-member div strong.porto-member-name.no-ibt {
  color: #ff3b3b;
}

body.porto-duty-workspace .porto-status-center {
  place-items: center;
  align-content: center;
  transform: none;
  padding: clamp(16px, 2.4vw, 28px);
}

body.porto-duty-workspace .porto-duty-panel {
  width: min(1120px, calc(100vw - 56px));
  min-height: 100dvh;
  align-self: stretch;
  justify-self: center;
  align-content: start;
  gap: 20px;
  padding-top: clamp(84px, 9vh, 116px);
  position: relative;
}

body.porto-duty-workspace .porto-duty-layout {
  position: fixed;
  top: 50%;
  left: 50%;
  width: min(1120px, calc(100vw - 56px));
  display: grid;
  transform: translate(-50%, -50%);
  z-index: 2;
}

body.porto-duty-workspace .porto-duty-assignment,
body.porto-duty-workspace .porto-unit-member-bar {
  position: relative;
  z-index: 3;
}

body.porto-duty-workspace .porto-number-card {
  display: none;
}

body.porto-duty-workspace .porto-duty-card {
  border-radius: 18px;
  background: rgba(30, 41, 59, 0.94);
}

body.porto-duty-workspace .porto-status-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(82px, 1fr));
  gap: 12px;
}

body.porto-duty-workspace .porto-status-tile {
  min-height: 76px;
  border-radius: 14px;
}

body.porto-duty-workspace .porto-status-tile:nth-child(1) {
  grid-column: 1 / span 3;
}

body.porto-duty-workspace .porto-status-tile:nth-child(2) {
  grid-column: 4 / span 3;
}

body.porto-duty-workspace .porto-status-tile:nth-child(n+3) {
  grid-column: span 2;
}

body.porto-duty-workspace .porto-status-choices {
  justify-content: center;
}

@media (max-width: 760px) {
  body.porto-duty-workspace .porto-duty-panel {
    width: min(100% - 28px, 520px);
    padding-top: 84px;
  }

  body.porto-duty-workspace .porto-duty-layout {
    width: min(100% - 28px, 520px);
  }

  body.porto-duty-workspace .porto-status-grid {
    grid-template-columns: repeat(2, minmax(120px, 1fr));
  }

  body.porto-duty-workspace .porto-status-tile,
  body.porto-duty-workspace .porto-status-tile:nth-child(n) {
    grid-column: auto;
  }

  .porto-unit-member div {
    grid-template-columns: 1fr;
    gap: 3px;
  }
}
.porto-member-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.porto-kicker {
  display: block;
  margin-bottom: 6px;
  color: #9fb8d6;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.porto-member-card h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1;
}

.porto-member-card p {
  margin: 8px 0 0;
  color: #b9c7d8;
  font-weight: 800;
}

.porto-duty-meta {
  min-width: min(320px, 100%);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 14px;
  align-items: center;
  color: #9fb8d6;
  font-size: 13px;
}

.porto-duty-meta strong {
  justify-self: end;
  color: #e5e7eb;
  font-size: 15px;
}

.porto-duty-layout {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr) 260px;
  gap: 16px;
  align-items: start;
}

.porto-duty-role-card {
  min-width: 0;
}

.porto-duty-role-actions {
  display: grid;
  gap: 10px;
}

.porto-duty-role-button {
  display: grid;
  gap: 4px;
  width: 100%;
  min-height: 62px;
  padding: 11px 12px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.72);
  color: #dbeafe;
  text-align: left;
  cursor: pointer;
}

.porto-duty-role-button strong {
  color: #f8fafc;
  font-size: 13px;
  font-weight: 1000;
  text-transform: uppercase;
}

.porto-duty-role-button span {
  color: #9fb8d6;
  font-size: 11px;
  font-weight: 850;
  line-height: 1.25;
}

.porto-duty-role-button:hover {
  border-color: rgba(245, 158, 11, 0.72);
  background: rgba(120, 53, 15, 0.24);
}

.porto-duty-role-button.active {
  border-color: rgba(34, 197, 94, 0.72);
  background: rgba(20, 83, 45, 0.34);
}

.porto-status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(8, 112, 154, 0.20);
  border: 1px solid rgba(8, 112, 154, 0.45);
  color: #d8f1ff;
  font-size: 12px;
  font-weight: 900;
}

.porto-status-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(128px, 1fr));
  gap: 12px;
}

.porto-status-tile {
  min-height: 84px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  display: grid;
  place-items: center;
  gap: 3px;
  padding: 12px;
  color: #07111f;
  cursor: pointer;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.22);
}

.porto-status-tile strong {
  font-size: 18px;
  line-height: 1;
}

.porto-status-tile span {
  font-size: 12px;
  font-weight: 800;
  line-height: 1.05;
  text-align: center;
}

.porto-status-tile:hover,
.porto-status-tile.active {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.34), 0 0 0 2px rgba(255, 255, 255, 0.18) inset;
}

.porto-status-pill.pending { background: rgba(148, 163, 184, 0.18); border-color: rgba(148, 163, 184, 0.38); color: #e5e7eb; }
.porto-status-pill.available { background: linear-gradient(135deg, #7bbf5b, #4d9b3e); border-color: rgba(123, 191, 91, 0.72); color: #07111f; }
.porto-status-pill.driving { background: linear-gradient(135deg, #48c9d9, #1eabc2); border-color: rgba(72, 201, 217, 0.72); color: #07111f; }
.porto-status-pill.onscene { background: linear-gradient(135deg, #5a99ed, #3f7fdc); border-color: rgba(90, 153, 237, 0.72); color: #fff; }
.porto-status-pill.unavailable { background: linear-gradient(135deg, #e5e7eb, #b8c0ca); border-color: rgba(229, 231, 235, 0.72); color: #07111f; }
.porto-status-pill.transport { background: linear-gradient(135deg, #c8dcff, #91b7f1); border-color: rgba(200, 220, 255, 0.72); color: #07111f; }
.porto-status-pill.speech { background: linear-gradient(135deg, #f5a343, #e17000); border-color: rgba(245, 163, 67, 0.72); color: #07111f; }
.porto-status-pill.urgent { background: linear-gradient(135deg, #ff3030, #d60000); border-color: rgba(255, 48, 48, 0.72); color: #fff; }
.porto-status-pill.offduty { background: linear-gradient(135deg, #bababa, #8d8d8d); border-color: rgba(186, 186, 186, 0.72); color: #07111f; }
.porto-status-tile.available { background: linear-gradient(135deg, #7bbf5b, #4d9b3e); }
.porto-status-tile.driving { background: linear-gradient(135deg, #48c9d9, #1eabc2); }
.porto-status-tile.onscene { background: linear-gradient(135deg, #5a99ed, #3f7fdc); }
.porto-status-tile.unavailable { background: linear-gradient(135deg, #e5e7eb, #b8c0ca); }
.porto-status-tile.transport { background: linear-gradient(135deg, #c8dcff, #91b7f1); }
.porto-status-tile.speech { background: linear-gradient(135deg, #f5a343, #e17000); }
.porto-status-tile.urgent { background: linear-gradient(135deg, #ff3030, #d60000); color: #fff; }
.porto-status-tile.offduty { background: linear-gradient(135deg, #bababa, #8d8d8d); }

.porto-status-choices {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: #b9c7d8;
  font-weight: 900;
}

.porto-status-choices[hidden] {
  display: none;
}

.porto-status-choices button {
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.82);
  color: #e5e7eb;
  padding: 8px 12px;
  font-weight: 900;
  cursor: pointer;
}

.porto-status-choices button:hover {
  border-color: rgba(245, 158, 11, 0.75);
  color: #f8c471;
}

.porto-number-table {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid rgba(52, 168, 83, 0.45);
  background: rgba(255, 255, 255, 0.92);
  color: #08111f;
  font-size: 13px;
  text-align: center;
}

.porto-number-table > div {
  background: #34a853;
  color: #06110b;
  font-weight: 900;
  padding: 7px 8px;
}

.porto-number-table strong,
.porto-number-table span {
  padding: 6px 8px;
  font-weight: 900;
}

.porto-number-table strong:nth-of-type(even),
.porto-number-table strong:nth-of-type(even) + span {
  background: #b7d8aa;
}

@media (max-width: 980px) {
  .porto-duty-layout {
    grid-template-columns: 1fr;
  }

  .porto-status-grid {
    grid-template-columns: repeat(2, minmax(130px, 1fr));
  }
}

@media (max-width: 620px) {
  .porto-duty-panel {
    width: min(100% - 28px, 520px);
    margin-top: 142px;
  }

  .porto-member-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .porto-duty-meta {
    width: 100%;
  }

  .porto-status-grid {
    grid-template-columns: 1fr;
  }
}


.porto-current-ops {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.porto-ops-log-entry {
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

.porto-ops-action {
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--green), var(--green-strong));
  color: #fff;
  padding: 8px 13px;
  font-weight: 900;
  cursor: pointer;
}

.porto-ops-action.ghost {
  border: 1px solid rgba(148, 163, 184, 0.34);
  background: rgba(15, 23, 42, 0.62);
  color: #e5e7eb;
}

.porto-view-switch-row {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 10px;
}

.porto-status-tile:disabled {
  cursor: not-allowed;
  opacity: 0.48;
  transform: none;
  filter: grayscale(0.32);
}

.porto-ops-panel {
  margin-top: 16px;
}

.porto-ops-requests {
  display: grid;
  gap: 10px;
}


.porto-ops-head-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  align-items: center;
}

.porto-ops-duration-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid rgba(245, 158, 11, 0.48);
  border-radius: 999px;
  background: rgba(120, 53, 15, 0.32);
  color: #fde68a;
  font-size: 13px;
  font-weight: 950;
  white-space: nowrap;
}

.porto-ops-duration-badge[hidden] {
  display: none !important;
}

.porto-ops-choice {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
  min-width: 0;
}

.porto-ops-choice label {
  display: grid;
  gap: 5px;
}

.porto-ops-assign.secondary {
  border: 1px solid rgba(148, 163, 184, 0.34);
  background: rgba(15, 23, 42, 0.72);
  color: #e5e7eb;
}

.porto-ops-assign.secondary:hover {
  border-color: rgba(245, 158, 11, 0.72);
  color: #f8c471;
}

.porto-ops-request {
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(240px, 1fr) minmax(240px, 1fr);
  gap: 12px;
  align-items: end;
  padding: 12px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.58);
}

body.porto-ops-workspace .porto-ops-requests,
body.porto-ops-workspace .porto-ops-request {
  width: 100%;
}

body.porto-ops-workspace .porto-ops-request {
  padding: 16px;
}
body.porto-ops-workspace .porto-ops-request {
  max-width: 100%;
}

body.porto-ops-workspace .porto-ops-choice select {
  min-width: 0;
}
.porto-ops-request strong,
.porto-ops-request span {
  display: block;
}

.porto-ops-request > div > span,
.porto-ops-request label > span {
  color: #9fb8d6;
  font-size: 12px;
  font-weight: 800;
  margin-top: 4px;
}

.porto-ops-request select {
  width: 100%;
  min-height: 40px;
  border: 1px solid rgba(148, 163, 184, 0.32);
  border-radius: 10px;
  background: rgba(10, 17, 30, 0.86);
  color: #e5e7eb;
  padding: 8px 10px;
  font-weight: 800;
}

.porto-ops-assign {
  min-height: 40px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--green), var(--green-strong));
  color: #fff;
  padding: 8px 14px;
  font-weight: 900;
  cursor: pointer;
}

.porto-discord-channels {
  display: grid;
  gap: 10px;
}

.porto-discord-channel {
  border: 1px solid rgba(59, 130, 246, 0.34);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.6);
  padding: 12px;
  container-type: inline-size;
}

.porto-discord-channel.drag-over {
  border-color: rgba(245, 158, 11, 0.9);
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.18);
}

.porto-discord-channel.readonly {
  border-color: rgba(148, 163, 184, 0.26);
}

.porto-discord-channel-head {
  display: grid;
  grid-template-columns: minmax(140px, auto) minmax(180px, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.porto-discord-channel-head strong {
  color: #f8c471;
  font-size: 15px;
}

.porto-discord-channel-head input {
  min-height: 38px;
  border: 1px solid rgba(148, 163, 184, 0.32);
  border-radius: 10px;
  background: rgba(10, 17, 30, 0.86);
  color: #e5e7eb;
  padding: 8px 10px;
  font-weight: 800;
}

.porto-discord-channel-note {
  grid-column: span 2;
  color: #bfdbfe;
  font-size: 13px;
  font-weight: 800;
}

.porto-discord-channel-units {
  --porto-channel-unit-min: 420px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--porto-channel-unit-min)), 1fr));
  gap: 10px;
  margin-top: 10px;
}

.porto-discord-channels.list .porto-discord-channel-units {
  grid-template-columns: 1fr;
}

.porto-ops-assign.danger {
  border: 1px solid rgba(248, 113, 113, 0.42);
  background: rgba(127, 29, 29, 0.78);
  color: #fecaca;
}

.porto-ops-assign.danger:hover {
  border-color: rgba(248, 113, 113, 0.76);
  background: rgba(185, 28, 28, 0.88);
  color: #fff;
}

.porto-ops-empty {
  padding: 18px;
  border: 1px dashed rgba(148, 163, 184, 0.26);
  border-radius: 12px;
  color: #9fb8d6;
  text-align: center;
  font-weight: 800;
}

@media (max-width: 840px) {
  .porto-ops-request {
    grid-template-columns: 1fr;
    align-items: stretch;
  }
}

.porto-wall-brand {
  position: absolute;
  top: clamp(54px, 9vh, 108px);
  left: 50%;
  display: flex;
  align-items: center;
  gap: clamp(24px, 3vw, 48px);
  transform: translateX(-50%);
  opacity: 0.82;
  pointer-events: none;
  user-select: none;
}

.porto-wall-brand-politie {
  display: none;
}

body.porto-org-politie .porto-wall-brand-defensie {
  display: none;
}

body.porto-org-politie .porto-wall-brand-politie {
  display: grid;
  width: min(980px, 86vw);
  place-items: center;
  gap: clamp(12px, 2vh, 22px);
  opacity: 0.76;
}

body.porto-workspace .porto-wall-brand,
body.porto-ops-workspace .porto-wall-brand,
body.porto-duty-workspace .porto-wall-brand {
  display: none;
}

.porto-wall-logo {
  width: clamp(122px, 13vw, 210px);
  filter: saturate(0.96) contrast(0.98);
}

.porto-wall-text {
  display: grid;
  justify-items: start;
  line-height: 0.86;
  color: #08709a;
  letter-spacing: 0;
  text-transform: uppercase;
  text-shadow: none;
}

.porto-wall-title {
  font-size: clamp(48px, 8vw, 118px);
  font-weight: 500;
}

.porto-wall-subtitle {
  justify-self: center;
  font-size: clamp(24px, 3.7vw, 56px);
  font-weight: 500;
  letter-spacing: 0.08em;
}

.porto-police-wall-mark {
  display: grid;
  place-items: center;
  gap: clamp(18px, 3vh, 34px);
  width: 100%;
  color: rgba(232, 239, 244, 0.82);
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.42));
}

.porto-police-motto {
  color: rgba(5, 87, 145, 0.88);
  font-size: clamp(32px, 5.6vw, 86px);
  font-weight: 900;
  line-height: 0.95;
  text-align: center;
  text-shadow:
    0 1px 0 rgba(171, 215, 247, 0.48),
    0 -1px 0 rgba(0, 10, 22, 0.68),
    0 12px 32px rgba(0, 0, 0, 0.54);
}

.porto-police-main {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: clamp(22px, 3vw, 46px);
}

.porto-police-emblem {
  position: relative;
  width: clamp(98px, 11vw, 176px);
  aspect-ratio: 0.82;
}

.porto-police-emblem::before,
.porto-police-emblem::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.porto-police-emblem::before {
  top: 0;
  width: 72%;
  height: 68%;
  border-radius: 58% 42% 52% 48% / 64% 44% 56% 36%;
  background:
    radial-gradient(circle at 42% 70%, rgba(12, 17, 18, 0.96) 0 11%, transparent 12%),
    linear-gradient(140deg, rgba(245, 247, 245, 0.88), rgba(179, 185, 184, 0.82));
  clip-path: polygon(48% 0, 79% 17%, 63% 38%, 72% 58%, 53% 100%, 25% 86%, 39% 60%, 18% 45%, 34% 27%);
}

.porto-police-emblem::after {
  bottom: 0;
  width: 82%;
  height: 62%;
  border-radius: 50%;
  border: clamp(13px, 1.6vw, 24px) solid rgba(222, 226, 224, 0.86);
  border-top-color: transparent;
  border-right-color: transparent;
  rotate: -18deg;
}

.porto-police-word {
  color: rgba(232, 236, 235, 0.86);
  font-size: clamp(54px, 9vw, 154px);
  font-weight: 950;
  letter-spacing: 0.24em;
  line-height: 0.8;
  text-transform: uppercase;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.38),
    0 -1px 0 rgba(0, 0, 0, 0.74),
    0 18px 38px rgba(0, 0, 0, 0.44);
}


@media (max-height: 760px) {
  .porto-wall-brand {
    top: clamp(34px, 5vh, 58px);
    transform: translateX(-50%) scale(0.82);
  }

  .porto-status-center {
    transform: translateY(-18px);
  }

  .porto-status-intro {
    gap: 10px;
  }

  .porto-status-intro h1 {
    font-size: clamp(24px, 4vh, 36px);
  }

  .porto-status-button {
    margin-top: 10px;
    min-height: 42px;
  }

  .porto-duty-panel {
    margin-top: clamp(84px, 14vh, 128px);
    gap: 10px;
  }

  .porto-duty-card {
    padding: 12px;
  }

  .porto-status-tile {
    min-height: 66px;
  }
}

@media (max-width: 720px) {
  .porto-wall-brand {
    top: clamp(82px, 13vh, 128px);
    gap: 14px;
  }

  .porto-wall-logo {
    width: clamp(86px, 22vw, 128px);
  }

  .porto-wall-title {
    font-size: clamp(30px, 10vw, 52px);
  }

  .porto-wall-subtitle {
    font-size: clamp(15px, 4.8vw, 25px);
  }

  .porto-police-motto {
    font-size: clamp(24px, 8vw, 44px);
  }

  .porto-police-main {
    gap: 14px;
  }

  .porto-police-emblem {
    width: clamp(54px, 16vw, 92px);
  }

  .porto-police-word {
    font-size: clamp(34px, 12vw, 66px);
    letter-spacing: 0.14em;
  }
}
.porto-ops-context-menu label > span {
  color: #9fb8d6;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.porto-specialty-pill {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 3px 7px;
  border: 1px solid rgba(8, 112, 154, 0.44);
  border-radius: 999px;
  background: rgba(8, 112, 154, 0.16);
  color: #d8f1ff;
  font-size: 11px;
  font-weight: 900;
}

.porto-ops-context-menu {
  min-width: min(320px, calc(100vw - 28px));
  gap: 0;
  overflow: visible;
  padding: 14px;
  border: 1px solid rgba(96, 165, 250, 0.3);
  border-radius: 14px;
  background:
    radial-gradient(circle at 100% 0%, rgba(96, 165, 250, 0.12), transparent 44%),
    linear-gradient(180deg, rgba(17, 31, 52, 0.98), rgba(10, 19, 33, 0.98));
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.48), inset 0 1px 0 rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(18px);
}

.porto-ops-context-menu::before {
  content: "";
  position: absolute;
  top: -8px;
  right: 16px;
  width: 16px;
  height: 16px;
  border-left: 1px solid rgba(96, 165, 250, 0.26);
  border-top: 1px solid rgba(96, 165, 250, 0.26);
  background: rgba(15, 27, 46, 0.98);
  transform: rotate(45deg);
}

.porto-ops-context-menu > strong {
  padding: 8px 8px 3px;
  color: #f8fafc;
  font-size: 15px;
  line-height: 1.25;
  font-weight: 950;
}

.porto-ops-context-phone {
  display: block;
  padding: 0 8px 13px;
  border: 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 0;
  background: transparent;
  color: #8fb2db;
  font-size: 13px;
  font-weight: 800;
}

.porto-ops-context-menu label {
  display: grid;
  gap: 6px;
  padding: 6px;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.52);
}

.porto-ops-context-menu select {
  width: 100%;
  min-height: 34px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 8px;
  background: rgba(8, 13, 22, 0.92);
  color: #e5e7eb;
  padding: 7px 9px;
  font-weight: 800;
}

.porto-ops-context-menu button {
  min-height: 52px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 13px;
  border: 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
  border-radius: 10px;
  background: transparent;
  color: #dbeafe;
  margin-top: 2px;
  padding: 0 10px;
  text-align: left;
  font-size: 14px;
  font-weight: 875;
}

.porto-ops-context-menu button:hover,
.porto-ops-context-menu button:focus-visible {
  outline: none;
  background: rgba(96, 165, 250, 0.08);
  color: #fff;
  transform: none;
  box-shadow: inset 3px 0 0 rgba(96, 165, 250, 0.64);
}

.porto-ops-context-menu button::before {
  justify-self: center;
  color: #9fb8d6;
  font-size: 18px;
  line-height: 1;
}

.porto-ops-context-menu button[data-ops-context-action="copy-phone"]::before { content: "\260E"; }
.porto-ops-context-menu button[data-ops-context-action="discord-channel"]::before { content: "\2315"; }
.porto-ops-context-menu button[data-ops-context-action="link"]::before,
.porto-ops-context-menu button[data-ops-context-action="unlink"]::before { content: "\1F517"; }
.porto-ops-context-menu button[data-ops-context-action="offduty"]::before { content: "\23FB"; color: #ff5c63; }

.porto-duty-role-context-menu button[data-duty-context-role]::before {
  content: "\2605";
  color: #fb923c;
}

.porto-duty-role-context-menu button[data-duty-context-role].active::before {
  content: "\2713";
  color: #22c55e;
}

.porto-duty-role-context-menu button[data-duty-context-role].active {
  color: #86efac;
}

.porto-duty-role-context-menu button > span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.porto-duty-role-context-menu button small {
  color: #8fb2db;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
}

.porto-ops-context-menu button.danger-option {
  border-bottom: 0;
  color: #ff5c63;
}

.porto-ops-context-menu button.danger-option:hover,
.porto-ops-context-menu button.danger-option:focus-visible {
  background: rgba(239, 68, 68, 0.1);
  box-shadow: inset 3px 0 0 rgba(239, 68, 68, 0.72);
}

.porto-choice-context-menu {
  min-width: min(500px, calc(100vw - 28px));
  max-width: min(560px, calc(100vw - 28px));
}

.porto-choice-context-menu > strong {
  display: block;
  text-align: center;
  padding: 8px 12px 10px;
}

.porto-choice-context-menu button {
  min-height: 44px;
  grid-template-columns: 1fr;
  justify-items: center;
  gap: 0;
  padding: 9px 18px;
  text-align: center;
  line-height: 1.25;
}

.porto-choice-context-menu button::before {
  content: none;
  display: none;
}

.porto-choice-context-menu button:hover,
.porto-choice-context-menu button:focus-visible {
  box-shadow: 0 0 0 1px rgba(96, 165, 250, 0.22), 0 12px 26px rgba(0, 0, 0, 0.22);
}

.porto-choice-context-menu .ghost {
  color: #cbd5e1;
}

.porto-choice-context-menu .porto-choice-status-option {
  border: 1px solid rgba(148, 163, 184, 0.12);
}

.porto-choice-context-menu .status-available {
  border-color: rgba(34, 197, 94, 0.34);
  background: rgba(34, 197, 94, 0.12);
  color: #86efac;
}

.porto-choice-context-menu .status-driving {
  border-color: rgba(34, 211, 238, 0.34);
  background: rgba(34, 211, 238, 0.12);
  color: #7dd3fc;
}

.porto-choice-context-menu .status-onscene {
  border-color: rgba(96, 165, 250, 0.36);
  background: rgba(59, 130, 246, 0.13);
  color: #93c5fd;
}

.porto-choice-context-menu .status-unavailable {
  border-color: rgba(203, 213, 225, 0.32);
  background: rgba(148, 163, 184, 0.13);
  color: #e2e8f0;
}

.porto-choice-context-menu .status-transport {
  border-color: rgba(147, 197, 253, 0.38);
  background: rgba(147, 197, 253, 0.15);
  color: #bfdbfe;
}

.porto-choice-context-menu .status-speech {
  border-color: rgba(249, 115, 22, 0.38);
  background: rgba(249, 115, 22, 0.14);
  color: #fdba74;
}

.porto-choice-context-menu .status-urgent {
  border-color: rgba(239, 68, 68, 0.42);
  background: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
}

.porto-notice-dialog {
  width: min(520px, calc(100vw - 28px));
  border: 1px solid rgba(96, 165, 250, 0.42);
  border-radius: 20px;
  background: transparent;
}

.porto-notice-dialog::backdrop {
  background: rgba(1, 6, 17, 0.66);
  backdrop-filter: blur(12px);
}

.porto-notice-dialog .site-notice-card {
  border: 1px solid rgba(96, 165, 250, 0.24);
  border-radius: 20px;
  background:
    radial-gradient(circle at 92% 8%, rgba(59, 130, 246, 0.16), transparent 36%),
    linear-gradient(180deg, rgba(20, 35, 57, 0.98), rgba(8, 16, 29, 0.98));
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.07);
  padding: 24px;
}

.porto-notice-dialog .site-notice-card .panel-head h2 {
  font-size: 22px;
  letter-spacing: 0;
}

.porto-notice-dialog .site-notice-card .panel-head .ghost.icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border: 1px solid rgba(147, 197, 253, 0.5);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.72);
  color: #f8fafc;
}

.porto-notice-dialog .site-notice-card p {
  color: #d7e2f1;
}

.porto-notice-dialog .site-notice-card menu button {
  min-height: 46px;
  border-radius: 14px;
  font-weight: 950;
}

.porto-notice-dialog .site-notice-card menu .ghost {
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(15, 23, 42, 0.52);
  color: #e5e7eb;
}

.porto-notice-dialog .site-notice-card .primary.danger {
  background: linear-gradient(135deg, #ff5c63, #ef4444);
  color: #fff;
  box-shadow: 0 14px 34px rgba(239, 68, 68, 0.28);
}

.porto-notice-dialog .site-notice-card .primary:not(.danger) {
  background: linear-gradient(135deg, #ff9f0a, #f97316);
  color: #0f172a;
  box-shadow: 0 14px 34px rgba(249, 115, 22, 0.26);
}

.porto-ops-request-specialties {
  display: grid;
  gap: 5px;
  margin-top: 8px;
}

.porto-ops-request-specialties > span {
  color: #9fb8d6;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.porto-ops-request-specialties > div {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.porto-ops-request-specialties em {
  color: #9fb8d6;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}
.porto-map-controls [data-map-reset] {
  min-width: 68px;
}
.porto-ops-status-button {
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
}

.porto-ops-status-button:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

/* Porto map frame cleanup */
body.porto-ops-workspace .porto-map-card {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
}

body.porto-ops-workspace .porto-map-surface {
  width: 100%;
  height: 100%;
  min-height: 560px;
  isolation: isolate;
  background: #0f4770;
}

.porto-map-viewport {
  border-radius: inherit;
  background: #0f4770;
}

.porto-map-layer {
  overflow: hidden;
}

.porto-map-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  background: #0f4770;
}

@media (max-width: 1120px) {
  body.porto-ops-workspace .porto-map-surface {
    height: min(78dvh, 760px);
    min-height: 420px;
  }
}

/* Porto map hard frame: keep the OPS map inside its card on every viewport. */
body.porto-ops-workspace .porto-ops-grid {
  grid-template-columns: minmax(420px, 0.9fr) minmax(0, 1.4fr);
  min-width: 0;
  overflow: hidden;
}

body.porto-ops-workspace.porto-map-disabled .porto-ops-grid {
  grid-template-columns: minmax(0, 1fr);
}

body.porto-ops-workspace .porto-map-card {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
}

body.porto-ops-workspace .porto-map-card .panel-head {
  min-width: 0;
}

body.porto-ops-workspace .porto-map-surface {
  box-sizing: border-box;
  width: 100%;
  height: auto;
  min-height: 0;
  max-height: 100%;
  align-self: stretch;
  overflow: hidden;
  contain: paint;
  border-radius: 14px;
}

.porto-map-viewport,
.porto-map-layer,
.porto-map-markers {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.porto-map-viewport {
  clip-path: inset(0 round 14px);
}

.porto-map-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

@media (max-width: 1320px) {
  body.porto-ops-workspace .porto-ops-grid {
    grid-template-columns: minmax(360px, 0.86fr) minmax(0, 1.14fr);
  }
}

@media (max-width: 1040px) {
  body.porto-ops-workspace .porto-ops-grid {
    grid-template-columns: 1fr;
    overflow: auto;
  }

  body.porto-ops-workspace .porto-map-surface {
    height: min(70dvh, 720px);
    min-height: 420px;
  }
}
/* Porto OPS layout: vaste verhouding tussen bediening links en kaart rechts. */
@media (min-width: 1041px) {
  body.porto-ops-workspace .porto-ops-panel {
    transform: none;
    width: min(2160px, calc(100vw - 16px));
  }

  body.porto-ops-workspace .porto-ops-grid {
    grid-template-columns: minmax(0, 65fr) minmax(0, 35fr);
  }
}
/* Porto OPS test en eenheden-grid: kaarten vullen links/rechts per rij. */
body.porto-ops-workspace .porto-ops-empty {
  grid-column: 1 / -1;
}

.porto-ops-action.dev-test {
  border-color: rgba(245, 158, 11, 0.42);
  color: #f8c471;
}

.porto-ops-units-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
}

.porto-ops-layout-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 12px;
  background: rgba(8, 13, 22, 0.48);
}

.porto-ops-layout-toggle[hidden] {
  display: none !important;
}

.porto-ops-layout-toggle button {
  min-height: 34px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: #bfdbfe;
  padding: 7px 10px;
  font-family: inherit;
  font-weight: 900;
  cursor: pointer;
}

.porto-ops-layout-toggle button {
  width: 38px;
  padding: 0;
  font-size: 20px;
  line-height: 1;
}

.porto-ops-layout-toggle button.active {
  border-color: rgba(245, 158, 11, 0.62);
  background: rgba(245, 158, 11, 0.15);
  color: #fff7ed;
}

.porto-ops-units-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.porto-ops-units-summary[hidden] {
  display: none !important;
}

.porto-ops-summary-item {
  min-height: 72px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: center;
  gap: 2px 10px;
  padding: 12px 14px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 12px;
  background: rgba(8, 13, 22, 0.4);
}

.porto-ops-summary-item > span:first-child {
  grid-row: span 2;
  color: #9fb8d6;
  font-size: 12px;
  font-weight: 1000;
  text-transform: uppercase;
}

.porto-ops-summary-item strong {
  color: #f8fafc;
  font-size: 25px;
  font-weight: 1000;
  line-height: 1;
}

.porto-ops-summary-item small {
  color: rgba(229, 231, 235, 0.8);
  font-size: 12px;
  font-weight: 800;
}

.porto-ops-summary-dot {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  box-shadow: 0 0 0 5px rgba(148, 163, 184, 0.12);
}

.porto-ops-summary-dot.available { background: #7bbf5b; }
.porto-ops-summary-dot.driving { background: #48c9d9; }
.porto-ops-summary-dot.onscene { background: #5a99ed; }
.porto-ops-summary-dot.unavailable { background: #b8c0ca; }
.porto-ops-summary-dot.transport { background: #91b7f1; }
.porto-ops-summary-dot.speech { background: #e17000; }
.porto-ops-summary-dot.urgent { background: #ff3030; }

.porto-modern-unit-card {
  min-width: 0;
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(8, 112, 154, 0.13), rgba(15, 23, 42, 0.68)),
    rgba(15, 23, 42, 0.76);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.porto-modern-unit-card:hover {
  border-color: rgba(245, 158, 11, 0.42);
}

.porto-modern-unit-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.porto-modern-callsign {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: context-menu;
}

.porto-modern-callsign strong {
  color: #f8fafc;
  font-size: 31px;
  font-weight: 1000;
  line-height: 1;
  letter-spacing: 0;
}

.porto-modern-status-light {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #94a3b8;
  box-shadow: 0 0 0 6px rgba(148, 163, 184, 0.14);
}

.porto-modern-status-light.available { background: #7bbf5b; box-shadow: 0 0 0 6px rgba(123, 191, 91, 0.16); }
.porto-modern-status-light.driving { background: #48c9d9; box-shadow: 0 0 0 6px rgba(72, 201, 217, 0.16); }
.porto-modern-status-light.onscene { background: #5a99ed; box-shadow: 0 0 0 6px rgba(90, 153, 237, 0.16); }
.porto-modern-status-light.unavailable { background: #b8c0ca; box-shadow: 0 0 0 6px rgba(184, 192, 202, 0.16); }
.porto-modern-status-light.transport { background: #91b7f1; box-shadow: 0 0 0 6px rgba(145, 183, 241, 0.16); }
.porto-modern-status-light.speech { background: #e17000; box-shadow: 0 0 0 6px rgba(225, 112, 0, 0.18); }
.porto-modern-status-light.urgent { background: #ff3030; box-shadow: 0 0 0 6px rgba(255, 48, 48, 0.16); }

.porto-modern-vehicle {
  min-width: 0;
  border: 0;
  border-left: 1px solid rgba(148, 163, 184, 0.24);
  background: transparent;
  color: #e5e7eb;
  padding: 4px 0 4px 14px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 850;
  text-align: left;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
  cursor: context-menu;
}

.porto-modern-vehicle:hover {
  color: #f8c471;
}

.porto-modern-status {
  justify-self: end;
  cursor: context-menu;
}

.porto-modern-status .porto-status-pill {
  min-height: 32px;
  padding: 7px 13px;
  font-size: 12px;
}

.porto-modern-unit-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
  color: #bfdbfe;
  font-size: 12px;
  font-weight: 900;
}

.porto-side-task-overview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.porto-side-task-overview[hidden] {
  display: none !important;
}

.porto-side-task-overview-item {
  min-height: 62px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 2px 10px;
  align-items: center;
  padding: 10px 13px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 10px;
  background: rgba(8, 13, 22, 0.4);
}

.porto-side-task-overview-item > span {
  grid-row: span 2;
  color: #f8fafc;
  font-size: 14px;
  font-weight: 1000;
}

.porto-side-task-overview-item strong {
  color: #dbeafe;
  font-size: 13px;
  font-weight: 950;
}

.porto-side-task-overview-item small {
  color: rgba(219, 234, 254, 0.68);
  font-size: 10px;
  font-weight: 850;
}

.porto-side-task-overview-item.available { border-color: rgba(34, 197, 94, 0.48); background: rgba(22, 101, 52, 0.2); }
.porto-side-task-overview-item.available strong { color: #86efac; }
.porto-side-task-overview-item.temporary { border-color: rgba(245, 158, 11, 0.62); background: rgba(146, 64, 14, 0.24); }
.porto-side-task-overview-item.temporary strong { color: #fbbf24; }
.porto-side-task-overview-item.absent { border-color: rgba(239, 68, 68, 0.56); background: rgba(127, 29, 29, 0.22); }
.porto-side-task-overview-item.absent strong { color: #fca5a5; }

.porto-modern-members {
  display: grid;
  gap: 8px;
}

.porto-modern-member {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  cursor: context-menu;
}

.porto-modern-member-avatar,
.porto-modern-member-initial {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border-radius: 999px;
}

.porto-modern-member-avatar {
  display: block;
  object-fit: cover;
  border: 1px solid rgba(147, 197, 253, 0.24);
  background: rgba(8, 13, 22, 0.68);
}

.porto-modern-member-initial {
  display: inline-grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(8, 112, 154, 0.75), rgba(4, 42, 74, 0.92));
  color: #d8f1ff;
  font-weight: 1000;
}

.porto-modern-member strong {
  display: block;
  color: #f8fafc;
  font-size: 15px;
  font-weight: 950;
  overflow-wrap: anywhere;
}

.porto-modern-member-slot {
  display: inline-flex;
  margin-left: 8px;
  padding: 2px 7px;
  border: 1px solid rgba(245, 158, 11, 0.42);
  border-radius: 999px;
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.12);
  font-size: 10px;
  font-weight: 1000;
  line-height: 1.1;
  text-transform: uppercase;
  vertical-align: middle;
}

.porto-modern-member.no-ibt strong {
  color: #ff3b3b;
}

.porto-modern-member-specs {
  display: block;
  margin-top: 2px;
  color: #9fb8d6;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.porto-modern-member-action {
  flex: 0 0 auto;
  margin-left: auto;
  width: 32px;
  height: 34px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #cbd5e1;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
}

.porto-modern-member-action:hover {
  background: rgba(245, 158, 11, 0.14);
  color: #f8c471;
}

.porto-discord-channel .porto-modern-unit-card {
  background:
    linear-gradient(135deg, rgba(8, 112, 154, 0.1), rgba(15, 23, 42, 0.58)),
    rgba(8, 13, 22, 0.42);
}

.porto-discord-channel .porto-modern-vehicle,
.porto-discord-channel .porto-modern-member strong,
.porto-discord-channel .porto-modern-member-specs,
.porto-discord-channel .porto-specialty-pill {
  overflow-wrap: normal;
  word-break: normal;
}

@media (max-width: 1500px) {
  .porto-discord-channel-units {
    --porto-channel-unit-min: 460px;
  }

  .porto-discord-channel-head {
    grid-template-columns: minmax(88px, auto) minmax(0, 1fr) auto;
  }

  .porto-discord-channel .porto-modern-unit-head {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
  }

  .porto-discord-channel .porto-modern-status {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .porto-discord-channel .porto-modern-status .porto-status-pill {
    min-height: 28px;
  }
}

@media (max-width: 1120px) {
  .porto-discord-channel-units {
    grid-template-columns: 1fr;
  }

  .porto-discord-channel-head {
    grid-template-columns: 1fr auto;
  }

  .porto-discord-channel-head strong,
  .porto-discord-channel-note {
    grid-column: 1 / -1;
  }
}

@media (max-width: 920px) {
  .porto-ops-units-toolbar {
    justify-content: flex-start;
  }

  .porto-modern-unit-head {
    grid-template-columns: 1fr;
    justify-items: stretch;
  }

  .porto-modern-vehicle {
    border-left: 0;
    border-top: 1px solid rgba(148, 163, 184, 0.2);
    padding: 9px 0 0;
  }

  .porto-modern-status {
    justify-self: start;
  }

  .porto-modern-callsign strong {
    font-size: 28px;
  }
}
/* Porto OPS IBT signalering */
.porto-specialty-pill.no-ibt {
  border-color: rgba(239, 68, 68, 0.55);
  background: rgba(127, 29, 29, 0.34);
  color: #fecaca;
}

.porto-ops-request-note {
  display: grid;
  gap: 7px;
  margin-top: 10px;
  padding: 11px 12px;
  border: 1px solid rgba(251, 191, 36, 0.5);
  border-radius: 12px;
  background: rgba(120, 53, 15, 0.34);
  box-shadow: inset 3px 0 0 rgba(251, 191, 36, 0.86);
}

.porto-ops-request-note span {
  color: #fde68a;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.porto-ops-request-note p {
  margin: 0;
  color: #fff7ed;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
/* Porto visibility guard: panels met het hidden-attribuut mogen nooit door display:grid/flex regels zichtbaar worden. */
#portoStatusIntro[hidden],
#portoPendingPanel[hidden],
#portoModernDutyDashboard[hidden],
#portoModernOpsDashboard[hidden],
#portoDutyPanel[hidden],
#portoOpsPanel[hidden],
#portoOpsLogPage[hidden],
#portoOpsLogEntry[hidden],
#portoOpenOpsLogBtn[hidden],
#portoOpsClaimBtn[hidden],
#portoOpsReleaseBtn[hidden],
#portoDevBypassBtn[hidden],
#portoMapCard[hidden] {
  display: none !important;
}
/* Porto status header: voorkom overlap tussen titel en huidige-status pill. */
.porto-duty-card .panel-head.compact-head {
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  min-height: 42px;
  margin-bottom: 10px;
}

.porto-duty-card .panel-head.compact-head .porto-status-pill {
  position: static;
  margin-left: 0;
}

body.porto-duty-workspace .porto-status-grid {
  margin-top: 4px;
}

/* OPS context targets: deze velden werken via rechtermuisknop, dus cursor en hint horen daarbij. */
.porto-ops-status-button {
  cursor: context-menu;
}

/* Porto auto-afmelding: na 15 minuten zonder heartbeat blijft de OPS-kaart nog 5 minuten zichtbaar met rood kruis. */
.porto-status-pill.auto-offline {
  background: rgba(127, 29, 29, 0.42);
  border-color: rgba(239, 68, 68, 0.72);
  color: #fecaca;
}

.porto-modern-unit-card.auto-offline,
.porto-modern-member.auto-offline {
  position: relative;
  overflow: hidden;
  border-color: rgba(239, 68, 68, 0.55);
}

.porto-modern-member.auto-offline > div {
  opacity: 0.48;
}

.porto-modern-member.auto-offline::before,
.porto-modern-member.auto-offline::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  top: 50%;
  height: 3px;
  border-radius: 999px;
  background: rgba(239, 68, 68, 0.94);
  pointer-events: none;
  z-index: 3;
}

.porto-modern-member.auto-offline::before {
  transform: rotate(15deg);
}

.porto-modern-member.auto-offline::after {
  transform: rotate(-15deg);
}

/* Porto duty compact layout: voorkomt overlap op kleinere schermen/laptops. */
@media (max-height: 720px), (max-width: 980px) {
  body.porto-duty-workspace .porto-topbar {
    height: 56px;
    min-height: 56px;
    padding: 8px 14px;
  }

  body.porto-duty-workspace .porto-empty {
    height: 100dvh;
    overflow: hidden;
  }

  body.porto-duty-workspace .porto-status-center {
    align-content: start;
    place-items: start center;
    padding: 58px 12px 10px;
  }

  body.porto-duty-workspace .porto-duty-panel {
    width: min(900px, calc(100vw - 24px));
    min-height: 0;
    height: calc(100dvh - 68px);
    gap: 8px;
    padding-top: 0;
    align-content: start;
  }

  body.porto-duty-workspace .porto-duty-assignment {
    width: min(620px, 100%);
    grid-template-columns: minmax(150px, 0.72fr) minmax(220px, 1fr);
    gap: 8px;
  }

  body.porto-duty-workspace .porto-callsign-card,
  body.porto-duty-workspace .porto-vehicle-choice {
    padding: 10px 12px;
    border-radius: 12px;
  }

  body.porto-duty-workspace .porto-callsign-card strong {
    font-size: clamp(26px, 4vw, 34px);
  }

  body.porto-duty-workspace .porto-vehicle-choice select {
    min-height: 38px;
    padding: 8px 10px;
  }

  body.porto-duty-workspace .porto-unit-member-bar {
    width: min(720px, 100%);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 8px;
    border-radius: 14px;
  }

  body.porto-duty-workspace .porto-unit-member {
    min-height: 0;
    gap: 5px;
    padding: 9px 76px 9px 10px;
    border-radius: 12px;
  }

  body.porto-duty-workspace .porto-unit-service-number {
    top: 8px;
    right: 8px;
    max-width: 64px;
    padding: 4px 7px;
    font-size: 10px;
  }

  body.porto-duty-workspace .porto-unit-member div {
    grid-template-columns: minmax(86px, 0.8fr) minmax(0, 1fr);
    gap: 6px;
  }

  body.porto-duty-workspace .porto-unit-slot,
  body.porto-duty-workspace .porto-unit-member div span {
    font-size: 10px;
  }

  body.porto-duty-workspace .porto-unit-member div strong {
    font-size: 12px;
  }

  body.porto-duty-workspace .porto-duty-layout {
    position: relative;
    top: auto;
    left: auto;
    width: min(720px, 100%);
    transform: none;
    z-index: 2;
  }

  body.porto-duty-workspace .porto-duty-card {
    padding: 10px;
    border-radius: 14px;
  }

  body.porto-duty-workspace .porto-duty-card .panel-head {
    margin-bottom: 8px;
  }

  body.porto-duty-workspace .porto-duty-card h2 {
    font-size: 16px;
  }

  body.porto-duty-workspace .porto-status-pill {
    min-height: 26px;
    padding: 5px 9px;
    font-size: 11px;
  }

  body.porto-duty-workspace .porto-status-grid {
    grid-template-columns: repeat(6, minmax(72px, 1fr));
    gap: 8px;
  }

  body.porto-duty-workspace .porto-status-tile {
    min-height: 56px;
    padding: 8px;
    border-radius: 10px;
  }

  body.porto-duty-workspace .porto-status-tile strong {
    font-size: 15px;
  }

  body.porto-duty-workspace .porto-status-tile span {
    font-size: 10px;
  }
}

/* Final responsive overrides - 2026-07-17 */
body[data-porto-ui="modern"] .porto-modern-ops-dashboard,
body[data-porto-ui="modern"] .porto-modern-duty-card,
body[data-porto-ui="modern"] .porto-modern-duty-status-card,
body[data-porto-ui="modern"] .porto-modern-selected-unit,
body[data-porto-ui="modern"] .porto-modern-ops-list,
body[data-porto-ui="modern"] .porto-profile-form,
body[data-porto-ui="modern"] .porto-phonebook-form,
body[data-porto-ui="modern"] .porto-phonebook-row {
  min-width: 0;
}

body[data-porto-ui="modern"] .porto-modern-ops-dashboard {
  width: min(1760px, calc(100vw - 28px));
  max-width: 100%;
}

body[data-porto-ui="modern"] .porto-modern-ops-header,
body[data-porto-ui="modern"] .porto-modern-duty-topbar {
  min-width: 0;
}

body[data-porto-ui="modern"] .porto-modern-ops-actions {
  min-width: 0;
  flex-wrap: wrap;
}

body[data-porto-ui="modern"] .porto-modern-ops-actions > *,
body[data-porto-ui="modern"] .porto-modern-duty-user-chip,
body[data-porto-ui="modern"] .porto-profile-chip {
  min-height: 40px;
}

body[data-porto-ui="modern"] .porto-modern-stat-grid {
  grid-template-columns: repeat(4, minmax(210px, 1fr));
  gap: clamp(12px, 1.2vw, 20px);
}

body[data-porto-ui="modern"] .porto-modern-stat-grid article {
  min-height: 104px;
  height: auto;
  padding-block: clamp(16px, 1.2vw, 22px);
}

body[data-porto-ui="modern"] .porto-modern-ops-row {
  grid-template-columns: minmax(112px, 0.5fr) minmax(150px, 0.82fr) minmax(106px, 132px) minmax(70px, auto) minmax(120px, 0.62fr) 42px;
  min-height: 56px;
}

body[data-porto-ui="modern"] .porto-modern-duty-card {
  width: min(1240px, calc(100vw - 32px));
  max-width: 100%;
}

body[data-porto-ui="modern"] .porto-modern-duty-meta-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

body[data-porto-ui="modern"] .porto-modern-duty-member-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

body[data-porto-ui="modern"] .porto-modern-duty-person,
body[data-porto-ui="modern"] .porto-modern-selected-member,
body[data-porto-ui="modern"] .porto-modern-request-row {
  min-width: 0;
}

body[data-porto-ui="modern"] .porto-modern-duty-person strong,
body[data-porto-ui="modern"] .porto-modern-selected-member strong,
body[data-porto-ui="modern"] .porto-modern-ops-row strong,
body[data-porto-ui="modern"] .porto-modern-ops-row span {
  overflow-wrap: anywhere;
}

body[data-porto-ui="modern"] .porto-profile-dialog {
  width: min(900px, calc(100vw - 30px));
  max-height: min(86dvh, 760px);
}

body[data-porto-ui="modern"] .porto-profile-form {
  max-height: min(86dvh, 760px);
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

body[data-porto-ui="modern"] .porto-profile-head {
  min-height: 0;
}

body[data-porto-ui="modern"] .porto-profile-head h3 {
  font-size: clamp(34px, 4.8vw, 56px);
  overflow-wrap: anywhere;
}

body[data-porto-ui="modern"] .porto-phonebook-dialog {
  width: min(1020px, calc(100vw - 28px));
}

body[data-porto-ui="modern"] .porto-phonebook-form {
  max-height: min(86dvh, 760px);
  overflow: hidden;
}

body[data-porto-ui="modern"] .porto-phonebook-rows {
  max-height: calc(min(86dvh, 760px) - 250px);
  overflow: auto;
  scrollbar-gutter: stable;
}

body[data-porto-ui="modern"] .porto-context-menu {
  max-width: min(340px, calc(100vw - 24px));
}

body[data-porto-ui="modern"] .porto-context-menu button {
  min-height: 38px;
  justify-content: flex-start;
  gap: 10px;
}

@media (max-width: 1320px) {
  body[data-porto-ui="modern"] .porto-modern-ops-header {
    grid-template-columns: 1fr;
  }

  body[data-porto-ui="modern"] .porto-modern-ops-actions {
    justify-content: flex-start;
  }

  body[data-porto-ui="modern"] .porto-modern-ops-layout {
    grid-template-columns: 1fr;
  }

  body[data-porto-ui="modern"] .porto-modern-selected-unit {
    min-height: 0;
  }
}

@media (max-width: 1100px) {
  body[data-porto-ui="modern"] .porto-modern-stat-grid {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }

  body[data-porto-ui="modern"] .porto-modern-ops-row {
    grid-template-columns: minmax(90px, 0.6fr) minmax(150px, 1fr) minmax(106px, 132px) minmax(70px, auto) 42px;
  }

  body[data-porto-ui="modern"] .porto-modern-ops-row .porto-modern-channel-cell {
    grid-column: 2 / -2;
  }

  body[data-porto-ui="modern"] .porto-modern-duty-meta-grid,
  body[data-porto-ui="modern"] .porto-modern-duty-member-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 780px) {
  body[data-porto-ui="modern"] .porto-modern-stat-grid,
  body[data-porto-ui="modern"] .porto-modern-ops-row,
  body[data-porto-ui="modern"] .porto-modern-request-row {
    grid-template-columns: 1fr;
  }

  body[data-porto-ui="modern"] .porto-modern-ops-row {
    align-items: start;
  }

  body[data-porto-ui="modern"] .porto-modern-ops-row .porto-modern-channel-cell {
    grid-column: auto;
  }

  body[data-porto-ui="modern"] .porto-modern-stat-grid article {
    min-height: 88px;
  }

  body[data-porto-ui="modern"] .porto-profile-head {
    grid-template-columns: 1fr;
    text-align: center;
  }

  body[data-porto-ui="modern"] .porto-phonebook-head {
    display: none;
  }

  body[data-porto-ui="modern"] .porto-phonebook-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

/* Responsive stability layer - 2026-07-17 */
:root {
  --porto-safe-gutter: clamp(14px, 1.8vw, 28px);
  --porto-panel-max: 1760px;
  --porto-control-height: 42px;
}

body[data-porto-ui="modern"] *,
body[data-porto-ui="modern"] *::before,
body[data-porto-ui="modern"] *::after {
  box-sizing: border-box;
}

body[data-porto-ui="modern"],
body[data-porto-ui="modern"] .porto-shell,
body[data-porto-ui="modern"] .porto-status-center,
body[data-porto-ui="modern"] .porto-modern-ops-dashboard,
body[data-porto-ui="modern"] .porto-modern-duty-card,
body[data-porto-ui="modern"] .porto-phonebook-form {
  min-width: 0;
}

body[data-porto-ui="modern"] .porto-modern-ops-dashboard {
  width: min(var(--porto-panel-max), calc(100vw - (var(--porto-safe-gutter) * 2)));
  max-width: 100%;
  margin-inline: auto;
  padding: clamp(18px, 1.6vw, 28px);
  overflow: visible;
}

body[data-porto-ui="modern"] .porto-modern-ops-header {
  display: grid;
  grid-template-columns: minmax(220px, 0.95fr) minmax(280px, 1fr) minmax(420px, auto);
  align-items: center;
  gap: clamp(14px, 1.5vw, 24px);
}

body[data-porto-ui="modern"] .porto-modern-ops-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  min-width: 0;
}

body[data-porto-ui="modern"] .porto-modern-ops-actions > * {
  min-height: var(--porto-control-height);
  max-width: 100%;
}

body[data-porto-ui="modern"] .porto-modern-ops-profile,
body[data-porto-ui="modern"] .porto-modern-duty-user-chip {
  min-height: 52px;
  max-width: min(280px, 100%);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  overflow: hidden;
}

body[data-porto-ui="modern"] .porto-modern-ops-profile img,
body[data-porto-ui="modern"] .porto-modern-duty-user-chip img {
  flex: 0 0 38px;
}

body[data-porto-ui="modern"] .porto-modern-ops-profile > div,
body[data-porto-ui="modern"] .porto-modern-duty-user-chip > div {
  min-width: 0;
}

body[data-porto-ui="modern"] .porto-modern-ops-profile strong,
body[data-porto-ui="modern"] .porto-modern-duty-user-chip strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body[data-porto-ui="modern"] .porto-modern-ops-profile span,
body[data-porto-ui="modern"] .porto-modern-duty-user-chip span {
  line-height: 1.15;
}

body[data-porto-ui="modern"] .porto-modern-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(210px, 1fr));
  gap: clamp(14px, 1.4vw, 22px);
}

body[data-porto-ui="modern"] .porto-modern-stat-grid article {
  min-height: 112px;
  padding: clamp(18px, 1.4vw, 24px) clamp(104px, 7vw, 138px) clamp(18px, 1.4vw, 24px) clamp(86px, 5.2vw, 112px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

body[data-porto-ui="modern"] .porto-modern-stat-grid article::before {
  left: clamp(22px, 2.5vw, 34px);
}

body[data-porto-ui="modern"] .porto-modern-stat-grid article::after {
  right: clamp(18px, 2.2vw, 30px);
  width: clamp(70px, 7vw, 112px);
}

body[data-porto-ui="modern"] .porto-modern-stat-grid strong {
  font-size: clamp(30px, 2.8vw, 42px);
  line-height: 1;
}

body[data-porto-ui="modern"] .porto-modern-stat-grid span {
  max-width: 150px;
  line-height: 1.25;
}

body[data-porto-ui="modern"] .porto-modern-ops-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, clamp(340px, 27vw, 430px));
  gap: clamp(18px, 1.5vw, 28px);
  align-items: stretch;
}

body[data-porto-ui="modern"] .porto-modern-ops-list,
body[data-porto-ui="modern"] .porto-modern-selected-unit {
  min-width: 0;
  padding: clamp(18px, 1.45vw, 26px);
}

body[data-porto-ui="modern"] .porto-modern-ops-list {
  min-height: min(62vh, 720px);
}

body[data-porto-ui="modern"] .porto-modern-ops-list > header {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto;
  align-items: center;
  gap: 14px;
}

body[data-porto-ui="modern"] .porto-modern-filter-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

body[data-porto-ui="modern"] .porto-modern-request-row {
  grid-template-columns: minmax(180px, 0.8fr) minmax(230px, 1fr) minmax(230px, 1fr) auto;
  align-items: end;
  gap: 12px;
}

body[data-porto-ui="modern"] .porto-modern-request-row label {
  min-width: 0;
}

body[data-porto-ui="modern"] .porto-modern-request-row select,
body[data-porto-ui="modern"] .porto-modern-vehicle-select select {
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

body[data-porto-ui="modern"] .porto-modern-request-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

body[data-porto-ui="modern"] .porto-modern-unit-rows {
  display: grid;
  gap: 9px;
}

body[data-porto-ui="modern"] .porto-modern-ops-row {
  display: grid;
  grid-template-columns: minmax(116px, 0.55fr) minmax(150px, 0.8fr) minmax(120px, 140px) minmax(76px, auto) minmax(128px, 0.65fr) 42px;
  align-items: center;
  gap: clamp(10px, 1vw, 18px);
  min-height: 58px;
  padding: 10px 12px;
}

body[data-porto-ui="modern"] .porto-modern-ops-row > * {
  min-width: 0;
}

body[data-porto-ui="modern"] .porto-modern-ops-row strong,
body[data-porto-ui="modern"] .porto-modern-ops-row span {
  overflow-wrap: anywhere;
}

body[data-porto-ui="modern"] .porto-status-pill {
  min-width: 112px;
  justify-content: center;
  white-space: nowrap;
}

body[data-porto-ui="modern"] .porto-modern-ops-avatars {
  min-width: 0;
}

body[data-porto-ui="modern"] .porto-modern-selected-member {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

body[data-porto-ui="modern"] .porto-modern-selected-member > div {
  min-width: 0;
}

body[data-porto-ui="modern"] .porto-modern-selected-member strong,
body[data-porto-ui="modern"] .porto-modern-selected-member span:not(.porto-modern-status-light) {
  display: block;
  line-height: 1.2;
}

body[data-porto-ui="modern"] .porto-modern-selected-member strong {
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body[data-porto-ui="modern"] .porto-modern-selected-member span:not(.porto-modern-status-light) {
  overflow-wrap: anywhere;
}

body[data-porto-ui="modern"].porto-duty-workspace .porto-status-center {
  width: 100%;
  min-height: 100dvh;
  padding: clamp(78px, 8vh, 116px) var(--porto-safe-gutter) clamp(28px, 4vh, 52px);
}

body[data-porto-ui="modern"].porto-duty-workspace .porto-modern-duty-card {
  width: min(1280px, calc(100vw - (var(--porto-safe-gutter) * 2)));
  max-height: calc(100dvh - 110px);
  overflow: auto;
  scrollbar-gutter: stable;
  padding: clamp(20px, 1.6vw, 30px);
}

body[data-porto-ui="modern"].porto-duty-workspace .porto-modern-duty-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(16px, 1.6vw, 28px);
}

body[data-porto-ui="modern"].porto-duty-workspace .porto-modern-duty-title {
  min-width: 0;
}

body[data-porto-ui="modern"].porto-duty-workspace .porto-modern-duty-title h2 {
  overflow-wrap: anywhere;
}

body[data-porto-ui="modern"].porto-duty-workspace .porto-modern-duty-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

body[data-porto-ui="modern"].porto-duty-workspace .porto-modern-duty-meta-grid article {
  min-width: 0;
}

body[data-porto-ui="modern"].porto-duty-workspace .porto-modern-duty-members {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

body[data-porto-ui="modern"].porto-duty-workspace .porto-modern-duty-member {
  min-height: 118px;
  padding: 14px 16px !important;
}

body[data-porto-ui="modern"].porto-duty-workspace .porto-modern-duty-member div {
  min-width: 0;
}

body[data-porto-ui="modern"].porto-duty-workspace .porto-modern-status-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

body[data-porto-ui="modern"].porto-duty-workspace .porto-modern-status-button {
  min-height: 74px;
  padding: 14px 16px;
}

body[data-porto-ui="modern"].porto-duty-workspace .porto-modern-status4-choices {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

body[data-porto-ui="modern"].porto-duty-workspace .porto-modern-status4-choices[hidden] {
  display: none !important;
}

body[data-porto-ui="modern"].porto-duty-workspace .porto-modern-status4-choices button {
  min-width: 132px;
}

body[data-porto-ui="modern"] .porto-pending-card {
  width: min(520px, calc(100vw - 32px));
  padding: clamp(24px, 3vw, 38px);
  gap: 12px;
}

body[data-porto-ui="modern"] .porto-pending-card h2 {
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.05;
}

body[data-porto-ui="modern"] .porto-pending-card p {
  font-size: clamp(16px, 1.8vw, 20px);
}

body[data-porto-ui="modern"] .porto-pending-card button {
  min-height: 52px;
}

body[data-porto-ui="modern"] .porto-profile-dialog {
  width: min(900px, calc(100vw - 30px));
}

body[data-porto-ui="modern"] .porto-profile-form {
  max-height: min(86dvh, 760px);
  overflow: auto;
  padding: clamp(18px, 2vw, 26px);
  gap: 14px;
}

body[data-porto-ui="modern"] .porto-profile-titlebar h2 {
  font-size: clamp(28px, 3vw, 38px);
}

body[data-porto-ui="modern"] .porto-profile-head {
  min-height: 0;
  padding: clamp(16px, 2vw, 24px);
  gap: clamp(16px, 2vw, 24px);
}

body[data-porto-ui="modern"] .porto-profile-head img {
  width: clamp(88px, 10vw, 120px);
  height: clamp(88px, 10vw, 120px);
}

body[data-porto-ui="modern"] .porto-profile-head h3 {
  font-size: clamp(34px, 4.8vw, 56px);
}

body[data-porto-ui="modern"] .porto-profile-section {
  padding: clamp(16px, 1.8vw, 22px);
}

body[data-porto-ui="modern"] .porto-profile-form menu {
  position: sticky;
  bottom: 0;
  background: linear-gradient(180deg, rgba(4, 12, 24, 0), rgba(4, 12, 24, 0.96) 30%);
  padding-top: 14px;
}

body[data-porto-ui="modern"] .porto-phonebook-dialog {
  width: min(1020px, calc(100vw - 28px));
}

body[data-porto-ui="modern"] .porto-phonebook-form {
  max-height: min(86dvh, 760px);
  overflow: hidden;
  padding: clamp(20px, 2vw, 28px);
  gap: 16px;
}

body[data-porto-ui="modern"] .porto-phonebook-table {
  min-height: 0;
  overflow: hidden;
}

body[data-porto-ui="modern"] .porto-phonebook-rows {
  max-height: calc(min(86dvh, 760px) - 250px);
  overflow: auto;
}

body[data-porto-ui="modern"] .porto-phonebook-head,
body[data-porto-ui="modern"] .porto-phonebook-row {
  grid-template-columns: minmax(180px, 0.95fr) minmax(190px, 1fr) minmax(180px, 0.85fr);
  gap: 14px;
}

body[data-porto-ui="modern"] .context-menu.porto-ops-context-menu,
body[data-porto-ui="modern"] .porto-choice-context-menu {
  width: min(360px, calc(100vw - 24px));
  max-width: calc(100vw - 24px);
  max-height: calc(100dvh - 24px);
  overflow: auto;
}

body[data-porto-ui="modern"] .porto-choice-context-menu {
  width: min(430px, calc(100vw - 24px));
}

body[data-porto-ui="modern"] .porto-ops-context-menu button,
body[data-porto-ui="modern"] .porto-choice-context-menu button {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  white-space: normal;
  line-height: 1.2;
}

@media (max-width: 1320px) {
  body[data-porto-ui="modern"] .porto-modern-ops-header {
    grid-template-columns: minmax(230px, 1fr) minmax(280px, 1fr);
  }

  body[data-porto-ui="modern"] .porto-modern-ops-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  body[data-porto-ui="modern"] .porto-modern-ops-layout {
    grid-template-columns: 1fr;
  }

  body[data-porto-ui="modern"] .porto-modern-selected-unit {
    min-height: 0;
  }

  body[data-porto-ui="modern"].porto-duty-workspace .porto-modern-duty-meta-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body[data-porto-ui="modern"].porto-duty-workspace .porto-modern-duty-members {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1100px) {
  body[data-porto-ui="modern"] .porto-modern-stat-grid {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }

  body[data-porto-ui="modern"] .porto-modern-request-row {
    grid-template-columns: 1fr 1fr;
  }

  body[data-porto-ui="modern"] .porto-modern-request-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  body[data-porto-ui="modern"] .porto-modern-ops-row {
    grid-template-columns: minmax(110px, 0.7fr) minmax(160px, 1fr) minmax(116px, 140px) minmax(64px, auto) 42px;
  }

  body[data-porto-ui="modern"] .porto-modern-ops-row .porto-modern-channel,
  body[data-porto-ui="modern"] .porto-modern-ops-row [data-modern-channel] {
    display: none;
  }
}

@media (max-width: 780px) {
  body[data-porto-ui="modern"] .porto-modern-ops-dashboard {
    width: calc(100vw - 20px);
    padding: 14px;
  }

  body[data-porto-ui="modern"] .porto-modern-ops-header,
  body[data-porto-ui="modern"] .porto-modern-request-row,
  body[data-porto-ui="modern"].porto-duty-workspace .porto-modern-duty-head {
    grid-template-columns: 1fr;
  }

  body[data-porto-ui="modern"] .porto-modern-stat-grid,
  body[data-porto-ui="modern"].porto-duty-workspace .porto-modern-duty-meta-grid,
  body[data-porto-ui="modern"].porto-duty-workspace .porto-modern-duty-members,
  body[data-porto-ui="modern"].porto-duty-workspace .porto-modern-status-grid {
    grid-template-columns: 1fr;
  }

  body[data-porto-ui="modern"] .porto-modern-ops-row {
    grid-template-columns: 1fr auto;
    gap: 8px 12px;
  }

  body[data-porto-ui="modern"] .porto-modern-ops-row > * {
    grid-column: 1 / -1;
  }

  body[data-porto-ui="modern"] .porto-modern-ops-row .context-menu-trigger,
  body[data-porto-ui="modern"] .porto-modern-ops-row button:last-child {
    grid-column: 2;
  }

  body[data-porto-ui="modern"] .porto-phonebook-head {
    display: none;
  }

  body[data-porto-ui="modern"] .porto-phonebook-row {
    grid-template-columns: 1fr;
  }

  body[data-porto-ui="modern"] .porto-profile-head {
    grid-template-columns: 1fr;
    text-align: center;
  }

  body[data-porto-ui="modern"] .porto-profile-head img {
    margin-inline: auto;
  }
}

html[data-ui-mode="calm"] body.porto-blank {
  background:
    linear-gradient(180deg, rgba(10, 18, 32, 0.96), rgba(9, 16, 29, 0.98)),
    var(--bg);
}

html[data-ui-mode="calm"] .porto-topbar {
  height: 68px;
  min-height: 68px;
  padding: 12px 24px;
  gap: 10px;
}

html[data-ui-mode="calm"] .porto-empty {
  height: calc(100dvh - 68px);
}

html[data-ui-mode="calm"] .porto-status-intro,
html[data-ui-mode="calm"] .porto-duty-card,
html[data-ui-mode="calm"] .porto-pending-card,
html[data-ui-mode="calm"] .porto-phonebook-form,
html[data-ui-mode="calm"] .porto-profile-dialog .dialog-form {
  background: rgba(21, 31, 49, 0.84);
  border-color: rgba(146, 166, 198, 0.14);
  box-shadow: none;
}

html[data-ui-mode="calm"] .porto-status-intro h1 {
  font-size: clamp(30px, 4vw, 46px);
}

html[data-ui-mode="calm"] .porto-status-zero-card,
html[data-ui-mode="calm"] .porto-duty-assignment,
html[data-ui-mode="calm"] .porto-unit-member-bar,
html[data-ui-mode="calm"] .porto-ops-request,
html[data-ui-mode="calm"] .porto-ops-unit,
html[data-ui-mode="calm"] .porto-phonebook-row {
  background: rgba(16, 25, 42, 0.66);
  border-color: rgba(146, 166, 198, 0.13);
}

html[data-ui-mode="calm"] .porto-status-grid {
  gap: 10px;
}

html[data-ui-mode="calm"] .porto-status-tile,
html[data-ui-mode="calm"] .porto-status-button,
html[data-ui-mode="calm"] .porto-ops-action {
  box-shadow: none;
}

html[data-ui-mode="calm"] .porto-status-tile {
  border-color: rgba(146, 166, 198, 0.16);
}

html[data-ui-mode="calm"] .porto-callsign-card,
html[data-ui-mode="calm"] .porto-vehicle-choice,
html[data-ui-mode="calm"] .porto-number-table > div,
html[data-ui-mode="calm"] .porto-profile-head {
  background: rgba(16, 25, 42, 0.7);
  border-color: rgba(146, 166, 198, 0.14);
}

html[data-ui-mode="calm"] .porto-wall-brand {
  opacity: 0.08;
}

html[data-ui-mode="calm"] .porto-modern-status-light,
html[data-ui-mode="calm"] .porto-ops-summary-dot {
  box-shadow: none;
}

@media (max-width: 680px) {
  body.porto-duty-workspace .porto-duty-assignment,
  body.porto-duty-workspace .porto-unit-member-bar,
  body.porto-duty-workspace .porto-status-grid {
    grid-template-columns: 1fr;
  }

  body.porto-duty-workspace .porto-status-tile,
  body.porto-duty-workspace .porto-status-tile:nth-child(n) {
    grid-column: auto;
  }
}
/* Porto profielmodal: Porto laadt geen personeelsportaal.css, dus modal/form styling staat hier expliciet. */
.porto-profile-dialog {
  width: min(860px, calc(100vw - 28px));
  max-height: min(84dvh, 720px);
  padding: 0;
  border: 1px solid rgba(96, 165, 250, 0.52);
  border-radius: 22px;
  background:
    radial-gradient(circle at 50% 0%, rgba(59, 130, 246, 0.16), transparent 42%),
    linear-gradient(180deg, rgba(7, 20, 42, 0.96), rgba(3, 9, 20, 0.96));
  color: var(--text);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.46), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  overflow: hidden;
  contain: layout paint;
}

.porto-profile-dialog::backdrop {
  background: rgba(2, 6, 23, 0.76);
  backdrop-filter: none;
}

.porto-profile-form {
  display: grid;
  gap: 14px;
  padding: clamp(18px, 2vw, 26px);
  max-height: inherit;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  -webkit-overflow-scrolling: touch;
}

.porto-profile-form .panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0;
}

.porto-profile-form .panel-head h2,
.porto-profile-form .panel-head h3 {
  margin: 0;
  color: #f8fafc;
}

.porto-profile-titlebar {
  position: relative;
  justify-content: center !important;
}

.porto-profile-titlebar h2 {
  font-size: clamp(24px, 2.3vw, 34px);
  text-align: center;
  text-shadow: 0 8px 26px rgba(0, 0, 0, 0.4);
}

.porto-profile-titlebar h2::before,
.porto-profile-titlebar h2::after {
  content: "";
  display: inline-block;
  width: 34px;
  height: 2px;
  margin: 0 14px 8px;
  background: linear-gradient(90deg, transparent, #1e90ff, transparent);
}

.porto-profile-form .ghost.icon {
  position: absolute;
  right: 2px;
  width: 46px;
  height: 46px;
  min-width: 46px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(59, 130, 246, 0.72);
  border-radius: 13px;
  background: rgba(10, 35, 68, 0.72);
  color: #e5e7eb;
  font-size: 28px;
  line-height: 1;
}

.porto-profile-head {
  position: relative;
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  align-items: center;
  gap: clamp(16px, 2.2vw, 26px);
  min-height: 132px;
  padding: clamp(16px, 2vw, 22px);
  border: 1px solid rgba(96, 165, 250, 0.22);
  border-radius: 18px;
  background:
    radial-gradient(circle at 90% 50%, rgba(59, 130, 246, 0.1), transparent 34%),
    rgba(6, 18, 35, 0.58);
  overflow: hidden;
}

.porto-profile-head::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 14px;
  bottom: 14px;
  width: min(180px, 26%);
  opacity: 0.12;
  background:
    linear-gradient(135deg, transparent 0 62%, rgba(59, 130, 246, 0.48) 63% 64%, transparent 65%),
    radial-gradient(circle at 86% 48%, rgba(59, 130, 246, 0.72) 0 4px, transparent 5px);
}

.porto-profile-head img {
  width: clamp(92px, 10vw, 118px);
  height: clamp(92px, 10vw, 118px);
  border-radius: 50%;
  object-fit: cover;
  justify-self: center;
  border: 3px solid rgba(56, 189, 248, 0.88);
  background: #0f172a;
  box-shadow: 0 0 0 5px rgba(59, 130, 246, 0.1), 0 0 18px rgba(14, 165, 233, 0.16);
}

.porto-profile-head .person-label {
  color: #4aa3ff;
  letter-spacing: 0.18em;
  font-size: 11px;
}

.porto-profile-head h3 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 6px 0 8px;
  color: #f8fafc;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1;
  text-shadow: 0 12px 34px rgba(0, 0, 0, 0.46);
}

.porto-profile-service-badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(59, 130, 246, 0.64);
  border-radius: 12px;
  background: rgba(15, 68, 128, 0.36);
  color: #93c5fd;
  font-size: clamp(18px, 1.6vw, 22px);
}

.porto-profile-head .muted {
  margin: 4px 0 0;
  color: #aebbd0;
  font-size: clamp(17px, 1.6vw, 22px);
}

.porto-profile-head .muted::before {
  content: "\25C8";
  margin-right: 10px;
  color: #2f8df4;
}

.porto-profile-section {
  display: grid;
  gap: 12px;
  padding: clamp(14px, 1.7vw, 20px);
  border: 1px solid rgba(96, 165, 250, 0.16);
  border-radius: 16px;
  background: rgba(6, 18, 35, 0.46);
}

.porto-profile-section-title,
.porto-profile-form .compact-head {
  justify-content: flex-start;
  gap: 10px;
}

.porto-profile-section-title span,
.porto-profile-form .compact-head h3 span {
  width: 32px;
  height: 32px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(59, 130, 246, 0.26);
  border-radius: 9px;
  background: rgba(15, 68, 128, 0.32);
  color: #60a5fa;
}

.porto-profile-section-title h3,
.porto-profile-form .compact-head h3 {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: clamp(18px, 1.8vw, 24px);
}

.porto-profile-phone-section label.full {
  display: grid;
  grid-template-columns: minmax(170px, 0.62fr) minmax(240px, 1fr);
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(96, 165, 250, 0.1);
  border-radius: 14px;
  background: rgba(3, 10, 23, 0.22);
  color: #a8b3c7;
  font-size: clamp(15px, 1.4vw, 18px);
  font-weight: 800;
}

.porto-profile-form input[type="tel"] {
  width: 100%;
  min-height: 48px;
  padding: 10px 46px 10px 16px;
  border: 1px solid rgba(59, 130, 246, 0.54);
  border-radius: 14px;
  background: rgba(3, 10, 23, 0.62);
  color: #f8fafc;
  font-size: clamp(17px, 1.6vw, 21px);
  font-weight: 900;
  outline: none;
}

.porto-profile-form input[type="tel"]:focus {
  border-color: rgba(56, 189, 248, 0.9);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.12);
}

.porto-training-list {
  gap: 9px;
  min-height: 34px;
}

.porto-training-list .muted {
  color: #8ea4c4;
  font-size: 14px;
  font-weight: 800;
}

.porto-training-pill {
  min-height: 34px;
  padding: 6px 13px;
  border: 1px solid rgba(56, 189, 248, 0.78);
  border-radius: 10px;
  background: rgba(15, 68, 128, 0.3);
  color: #93c5fd;
  font-size: clamp(13px, 1.25vw, 16px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.porto-profile-form menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  margin: 0;
  padding: 2px 0 0;
}

.porto-profile-form menu button {
  min-width: 128px;
  min-height: 46px;
  border-radius: 12px;
  padding: 0 20px;
  font-size: clamp(15px, 1.35vw, 18px);
  font-weight: 900;
}

.porto-profile-form menu .ghost {
  border: 1px solid rgba(148, 163, 184, 0.34);
  background: rgba(15, 23, 42, 0.56);
  color: #e5e7eb;
}

.porto-profile-form .primary {
  min-width: 260px;
  border: 1px solid rgba(251, 146, 60, 0.86);
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.2), transparent 40%),
    linear-gradient(135deg, #f59e0b, #dc5f05);
  color: #fff;
  box-shadow: 0 0 18px rgba(245, 158, 11, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.porto-profile-form .primary::before {
  content: "\260E";
  margin-right: 12px;
  font-size: 17px;
}

.porto-profile-form .person-label {
  display: block;
  margin-bottom: 4px;
  color: #93c5fd;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

@media (max-width: 560px) {
  .porto-profile-form {
    padding: 16px;
  }

  .porto-profile-head,
  .porto-profile-phone-section label.full {
    grid-template-columns: 1fr;
  }

  .porto-profile-titlebar h2::before,
  .porto-profile-titlebar h2::after {
    display: none;
  }

  .porto-profile-form .ghost.icon {
    right: 0;
    width: 48px;
    height: 48px;
    min-width: 48px;
  }

  .porto-profile-head h3 {
    font-size: 34px;
  }

  .porto-profile-form .primary {
    min-width: 0;
  }

  .porto-profile-form menu button {
    flex: 1 1 160px;
  }
}

.porto-phonebook-dialog {
  width: min(1120px, calc(100vw - 32px));
  max-height: min(88dvh, 820px);
  padding: 0;
  border: 0;
  border-radius: 28px;
  background: transparent;
  color: var(--text);
  overflow: visible;
}

.porto-phonebook-dialog::backdrop {
  background:
    radial-gradient(circle at 16% 18%, rgba(37, 99, 235, 0.12), transparent 34%),
    rgba(2, 6, 23, 0.76);
  backdrop-filter: blur(12px);
}

.porto-phonebook-form {
  display: grid;
  gap: 20px;
  padding: clamp(22px, 3vw, 34px) clamp(24px, 3.4vw, 38px);
  border: 1px solid rgba(59, 130, 246, 0.54);
  border-radius: 28px;
  background:
    radial-gradient(circle at 14% 0%, rgba(37, 99, 235, 0.2), transparent 30%),
    radial-gradient(circle at 84% 24%, rgba(15, 118, 255, 0.12), transparent 34%),
    linear-gradient(145deg, rgba(10, 22, 43, 0.98), rgba(7, 14, 29, 0.96));
  box-shadow:
    0 34px 110px rgba(0, 0, 0, 0.62),
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 0 36px rgba(37, 99, 235, 0.18);
  max-height: inherit;
  overflow: hidden;
}

.porto-phonebook-titlebar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  margin: 0;
}

.porto-phonebook-title-icon {
  position: relative;
  display: inline-grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 1px solid rgba(59, 130, 246, 0.56);
  border-radius: 16px;
  background:
    radial-gradient(circle at 50% 42%, rgba(37, 99, 235, 0.3), transparent 66%),
    rgba(9, 24, 48, 0.76);
  box-shadow: 0 0 28px rgba(37, 99, 235, 0.26);
}

.porto-phonebook-title-icon::before,
.porto-phonebook-row-icon.phone::before {
  content: "";
  display: block;
  width: 21px;
  height: 21px;
  border: 3px solid #2f8cff;
  border-top-color: transparent;
  border-right-color: transparent;
  border-radius: 7px;
  transform: rotate(-45deg);
}

.porto-phonebook-form .panel-head h2 {
  margin: 0;
  color: #f8fafc;
  font-size: clamp(28px, 3.1vw, 38px);
  line-height: 1.05;
  letter-spacing: 0;
}

.porto-phonebook-form .muted {
  margin: 8px 0 0;
  color: rgba(203, 213, 225, 0.92);
  font-size: clamp(15px, 1.2vw, 18px);
}

.porto-phonebook-form .ghost.icon {
  width: 52px;
  height: 52px;
  min-width: 52px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(59, 130, 246, 0.58);
  border-radius: 14px;
  background: rgba(6, 21, 44, 0.82);
  color: #e5e7eb;
  font-size: 30px;
  line-height: 1;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 0 18px rgba(37, 99, 235, 0.18);
}

.porto-phonebook-search-label {
  display: grid;
  gap: 12px;
  color: #f8fafc;
  font-size: 18px;
  font-weight: 800;
}

.porto-phonebook-search-shell {
  position: relative;
  display: block;
}

.porto-phonebook-search-icon {
  position: absolute;
  top: 50%;
  left: 20px;
  width: 22px;
  height: 22px;
  transform: translateY(-50%);
  border: 3px solid #60a5fa;
  border-radius: 50%;
  pointer-events: none;
}

.porto-phonebook-search-icon::after {
  content: "";
  position: absolute;
  right: -8px;
  bottom: -5px;
  width: 10px;
  height: 3px;
  border-radius: 999px;
  background: #60a5fa;
  transform: rotate(45deg);
}

.porto-phonebook-form input[type="search"] {
  width: 100%;
  min-height: 58px;
  padding: 15px 18px 15px 66px;
  border: 1px solid rgba(59, 130, 246, 0.7);
  border-radius: 16px;
  background: rgba(4, 12, 27, 0.78);
  color: #f8fafc;
  font-size: 18px;
  font-weight: 700;
  outline: none;
  box-shadow:
    inset 0 0 0 1px rgba(15, 23, 42, 0.36),
    0 0 28px rgba(37, 99, 235, 0.18);
}

.porto-phonebook-form input[type="search"]:focus {
  border-color: rgba(96, 165, 250, 0.95);
  box-shadow:
    inset 0 0 0 1px rgba(15, 23, 42, 0.3),
    0 0 0 3px rgba(59, 130, 246, 0.18),
    0 0 32px rgba(37, 99, 235, 0.24);
}

.porto-phonebook-table {
  display: grid;
  gap: 12px;
  min-height: 0;
  padding: 16px 16px 14px;
  border: 1px solid rgba(96, 165, 250, 0.3);
  border-radius: 18px;
  background: rgba(7, 16, 34, 0.56);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.porto-phonebook-head,
.porto-phonebook-row {
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) minmax(240px, 1fr) minmax(260px, 0.9fr);
  gap: 22px;
  align-items: center;
}

.porto-phonebook-head {
  padding: 0 24px 0 14px;
  color: #3b82f6;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.porto-phonebook-head span::after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 10px;
  margin-left: 8px;
  border-top: 2px solid rgba(147, 197, 253, 0.55);
  border-bottom: 2px solid rgba(147, 197, 253, 0.55);
  opacity: 0.75;
}

.porto-phonebook-rows {
  display: grid;
  gap: 7px;
  max-height: min(52dvh, 520px);
  min-height: 0;
  overflow-y: auto;
  padding: 2px 10px 2px 0;
  scrollbar-color: rgba(59, 130, 246, 0.78) transparent;
  scrollbar-width: thin;
}

.porto-phonebook-rows::-webkit-scrollbar {
  width: 8px;
}

.porto-phonebook-rows::-webkit-scrollbar-track {
  background: transparent;
}

.porto-phonebook-rows::-webkit-scrollbar-thumb {
  border: 2px solid rgba(6, 14, 29, 0.94);
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.82);
}

.porto-phonebook-row,
.porto-phonebook-empty {
  border: 1px solid rgba(96, 165, 250, 0.18);
  border-radius: 13px;
  background: linear-gradient(90deg, rgba(15, 30, 57, 0.72), rgba(8, 17, 37, 0.76));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.025),
    0 10px 24px rgba(2, 6, 23, 0.18);
}

.porto-phonebook-row {
  min-height: 58px;
  padding: 8px 14px;
  content-visibility: auto;
  contain-intrinsic-size: 58px;
}

.porto-phonebook-empty {
  padding: 18px;
  color: #bfdbfe;
  font-weight: 900;
  text-align: center;
}

.porto-phonebook-row span {
  min-width: 0;
  overflow-wrap: anywhere;
  font-weight: 700;
}

.porto-phonebook-rank,
.porto-phonebook-name,
.porto-phonebook-phone {
  display: flex;
  align-items: center;
  gap: 14px;
}

.porto-phonebook-rank,
.porto-phonebook-name {
  color: #f8fafc;
}

.porto-phonebook-row-icon {
  position: relative;
  display: inline-grid;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(14, 165, 233, 0.32);
  border-radius: 999px;
  background: rgba(8, 47, 92, 0.42);
  box-shadow: inset 0 0 18px rgba(37, 99, 235, 0.16);
}

.porto-phonebook-row-icon.rank::before {
  content: "";
  width: 14px;
  height: 14px;
  border: 2px solid #38bdf8;
  border-radius: 4px;
  transform: rotate(45deg);
}

.porto-phonebook-row-icon.person::before {
  content: "";
  width: 9px;
  height: 9px;
  margin-top: -8px;
  border: 2px solid #cbd5e1;
  border-radius: 50%;
  box-shadow: 0 14px 0 -2px #cbd5e1;
}

.porto-phonebook-row-icon.person::after {
  content: "";
  position: absolute;
  bottom: 9px;
  width: 18px;
  height: 9px;
  border: 2px solid #cbd5e1;
  border-top: 0;
  border-radius: 0 0 10px 10px;
}

.porto-phonebook-row-icon.warning {
  border-color: rgba(245, 158, 11, 0.46);
  background: rgba(69, 36, 7, 0.45);
}

.porto-phonebook-row-icon.warning::before {
  content: "";
  width: 0;
  height: 0;
  border-right: 9px solid transparent;
  border-bottom: 18px solid #f59e0b;
  border-left: 9px solid transparent;
}

.porto-phonebook-row-icon.warning::after {
  content: "!";
  position: absolute;
  top: 11px;
  color: #0f172a;
  font-size: 13px;
  font-weight: 900;
}

.porto-phonebook-phone {
  color: #f8fafc;
}

.porto-phonebook-phone.missing {
  color: #fbbf24;
}

.porto-phonebook-form menu {
  display: none;
  justify-content: flex-end;
  gap: 12px;
  margin: 0;
  padding: 0;
}

.porto-phonebook-form menu button {
  min-height: 44px;
  border-radius: 10px;
  font-weight: 900;
}

@media (max-width: 720px) {
  .porto-phonebook-form {
    gap: 16px;
    padding: 18px;
    overflow-y: auto;
  }

  .porto-phonebook-titlebar {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 12px;
  }

  .porto-phonebook-title-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
  }

  .porto-phonebook-form .panel-head h2 {
    font-size: 25px;
  }

  .porto-phonebook-form .muted {
    font-size: 14px;
  }

  .porto-phonebook-form .ghost.icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
  }

  .porto-phonebook-form input[type="search"] {
    min-height: 52px;
    padding-left: 54px;
    font-size: 15px;
  }

  .porto-phonebook-search-icon {
    left: 17px;
    width: 18px;
    height: 18px;
    border-width: 2px;
  }

  .porto-phonebook-table {
    padding: 12px;
  }

  .porto-phonebook-head {
    display: none;
  }

  .porto-phonebook-row {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 12px;
  }

  .porto-phonebook-row > span::before {
    content: attr(data-label) ": ";
    color: #93c5fd;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
  }

  .porto-phonebook-form menu button {
    flex: 1 1 160px;
  }
}

/* OPS-info en logboek blijven compact zichtbaar binnen het Porto werkblad. */
.porto-duty-ops-info {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  align-items: center;
  width: min(760px, 100%);
  margin: 10px auto 0;
  color: #c7d2fe;
  font-size: 13px;
  font-weight: 800;
}

.porto-duty-ops-info span,
.porto-duty-ops-info button {
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.74);
  padding: 8px 12px;
}

.porto-ops-log-page {
  width: min(100% - 44px, 1180px);
  margin-top: clamp(110px, 15vh, 160px);
}

.porto-ops-log-overview {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
  gap: 14px;
}

.porto-ops-log-overview section {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.porto-ops-log-overview h3 {
  margin: 0;
  color: #f8fafc;
  font-size: 15px;
}

.porto-ops-log-top {
  display: grid;
  gap: 8px;
}

.porto-ops-log-top-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid rgba(245, 158, 11, 0.24);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.56);
}

.porto-ops-log-top-row span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.22);
  color: #fde68a;
  font-size: 12px;
  font-weight: 950;
}

.porto-ops-log-top-row strong,
.porto-ops-log-top-row b {
  overflow-wrap: anywhere;
}

.porto-ops-log-rows {
  display: grid;
  gap: 8px;
  max-height: min(56vh, 620px);
  overflow-y: auto;
  overflow-x: hidden;
}

.porto-ops-log-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 3px 12px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.52);
}

.porto-ops-log-row small {
  grid-column: 1 / -1;
  color: #93a4bf;
  font-weight: 700;
}

@media (max-width: 860px) {
  .porto-ops-log-overview {
    grid-template-columns: 1fr;
  }
}
/* Porto duty responsive fix: statusknoppen blijven onder de eenhedenbalk op kleinere schermen. */
body.porto-duty-workspace .porto-duty-panel {
  height: calc(100dvh - 76px);
  min-height: 0;
  align-content: start;
  grid-template-rows: auto auto minmax(0, auto) auto;
  padding-top: clamp(72px, 9vh, 108px);
  padding-bottom: 84px;
}

body.porto-duty-workspace .porto-duty-layout {
  position: relative;
  top: auto;
  left: auto;
  transform: none;
  width: min(1120px, 100%);
  justify-self: center;
  z-index: 2;
}

body.porto-duty-workspace .porto-unit-member-bar {
  position: relative;
  z-index: 3;
}

/* OPS onderbalk in het dienstscherm: telefoonnummer, duur en actuele tijd blijven onderaan zichtbaar. */
body.porto-duty-workspace .porto-duty-ops-info {
  position: fixed;
  left: 50%;
  bottom: 16px;
  z-index: 5;
  width: min(940px, calc(100vw - 32px));
  margin: 0;
  padding: 10px 12px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.86);
  backdrop-filter: blur(12px);
  transform: translateX(-50%);
}

body.porto-duty-workspace .porto-duty-ops-info span,
body.porto-duty-workspace .porto-duty-ops-info button {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
}

body.porto-duty-workspace .porto-duty-ops-info span span {
  padding: 0;
  border: 0;
  background: transparent;
  min-height: 0;
}

body.porto-duty-workspace .porto-duty-ops-info span strong {
  margin-left: 4px;
}

@media (max-height: 720px), (max-width: 980px) {
  body.porto-duty-workspace .porto-duty-panel {
    height: calc(100dvh - 56px);
    padding-top: 58px;
    padding-bottom: 72px;
    gap: 8px;
  }

  body.porto-duty-workspace .porto-duty-assignment {
    width: min(620px, 100%);
  }

  body.porto-duty-workspace .porto-unit-member-bar {
    width: min(720px, 100%);
  }

  body.porto-duty-workspace .porto-duty-layout {
    width: min(720px, 100%);
  }

  body.porto-duty-workspace .porto-status-grid {
    grid-template-columns: repeat(6, minmax(68px, 1fr));
    gap: 7px;
  }

  body.porto-duty-workspace .porto-status-tile {
    min-height: 52px;
    padding: 7px 8px;
  }

  body.porto-duty-workspace .porto-duty-ops-info {
    bottom: 8px;
    width: min(760px, calc(100vw - 24px));
    padding: 7px 9px;
    gap: 6px;
  }

  body.porto-duty-workspace .porto-duty-ops-info span,
  body.porto-duty-workspace .porto-duty-ops-info button {
    min-height: 28px;
    padding: 6px 9px;
    font-size: 11px;
  }
}

@media (max-width: 680px) {
  body.porto-duty-workspace .porto-duty-panel {
    height: auto;
    min-height: 100dvh;
    overflow-y: auto;
  }

  body.porto-duty-workspace .porto-duty-ops-info {
    position: sticky;
    bottom: 8px;
    transform: none;
    width: 100%;
  }
}

/* Porto duty viewport stabilisatie: statusknoppen mogen nooit over de eenhedenbalk heen vallen. */
body.porto-duty-workspace .porto-duty-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  overflow-y: auto;
  scrollbar-gutter: stable;
}

body.porto-duty-workspace .porto-duty-assignment,
body.porto-duty-workspace .porto-unit-member-bar,
body.porto-duty-workspace .porto-duty-layout {
  flex: 0 0 auto;
}

body.porto-duty-workspace .porto-duty-layout {
  position: static;
  transform: none;
  margin-top: 0;
}

@media (max-height: 780px) and (min-width: 681px) {
  body.porto-duty-workspace .porto-duty-panel {
    padding-top: 54px;
    padding-bottom: 72px;
    gap: 8px;
  }

  body.porto-duty-workspace .porto-duty-assignment {
    width: min(620px, 100%);
    gap: 10px;
  }

  body.porto-duty-workspace .porto-callsign-card,
  body.porto-duty-workspace .porto-vehicle-choice {
    padding: 12px 14px;
  }

  body.porto-duty-workspace .porto-callsign-card strong {
    font-size: 34px;
  }

  body.porto-duty-workspace .porto-unit-member-bar {
    width: min(760px, 100%);
    gap: 8px;
    padding: 10px;
  }

  body.porto-duty-workspace .porto-unit-member {
    min-height: 94px;
    padding: 12px 82px 12px 12px;
    gap: 6px;
  }

  body.porto-duty-workspace .porto-unit-member div {
    grid-template-columns: 118px minmax(0, 1fr);
    gap: 6px;
  }

  body.porto-duty-workspace .porto-duty-layout {
    width: min(790px, 100%);
  }

  body.porto-duty-workspace .porto-duty-card {
    padding: 12px;
  }

  body.porto-duty-workspace .porto-duty-card .panel-head {
    margin-bottom: 8px;
  }

  body.porto-duty-workspace .porto-status-grid {
    grid-template-columns: repeat(6, minmax(70px, 1fr));
    gap: 8px;
  }

  body.porto-duty-workspace .porto-status-tile {
    min-height: 54px;
    padding: 7px 8px;
  }

  body.porto-duty-workspace .porto-status-tile strong {
    font-size: 15px;
  }

  body.porto-duty-workspace .porto-status-tile span {
    font-size: 10px;
  }
}

/* Modern OPS dashboard balance - keep desktop structure usable on laptop widths. */
body[data-porto-ui="modern"] .porto-modern-ops-dashboard {
  width: min(1220px, calc(100vw - 40px));
  max-width: 1220px;
  min-height: auto;
  margin: clamp(54px, 7vh, 86px) auto 28px;
  padding: clamp(18px, 1.4vw, 24px);
  gap: clamp(14px, 1.15vw, 20px);
}

body[data-porto-ui="modern"] .porto-modern-ops-header {
  grid-template-columns: minmax(220px, 0.8fr) minmax(260px, 0.9fr) minmax(420px, auto);
  gap: clamp(14px, 1.2vw, 22px);
}

body[data-porto-ui="modern"] .porto-modern-ops-actions {
  grid-column: auto;
  justify-content: flex-end;
  gap: 8px;
}

body[data-porto-ui="modern"] .porto-modern-ops-actions > * {
  min-height: 38px;
}

body[data-porto-ui="modern"] .porto-modern-stat-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(10px, 1vw, 16px);
}

body[data-porto-ui="modern"] .porto-modern-stat-grid article {
  height: clamp(92px, 9vh, 108px);
  min-height: 0;
  padding: 16px clamp(72px, 6vw, 104px) 16px 74px;
}

body[data-porto-ui="modern"] .porto-modern-stat-grid article::before {
  left: clamp(20px, 2vw, 28px);
}

body[data-porto-ui="modern"] .porto-modern-stat-grid article::after {
  right: clamp(14px, 1.6vw, 22px);
  width: clamp(70px, 6.5vw, 100px);
}

body[data-porto-ui="modern"] .porto-modern-stat-grid strong {
  font-size: clamp(30px, 2.45vw, 38px);
}

body[data-porto-ui="modern"] .porto-modern-ops-layout {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 330px);
  gap: clamp(14px, 1.2vw, 20px);
}

body[data-porto-ui="modern"] .porto-modern-ops-list,
body[data-porto-ui="modern"] .porto-modern-selected-unit {
  padding: clamp(16px, 1.2vw, 22px);
}

body[data-porto-ui="modern"] .porto-modern-ops-list {
  min-height: clamp(420px, 52vh, 640px);
}

body[data-porto-ui="modern"] .porto-modern-ops-list > header {
  grid-template-columns: minmax(180px, 1fr) auto;
  align-items: center;
}

body[data-porto-ui="modern"] .porto-modern-filter-row {
  justify-content: flex-end;
}

body[data-porto-ui="modern"] .porto-modern-ops-row {
  grid-template-columns: 20px 92px minmax(135px, 1fr) 132px minmax(42px, auto) minmax(96px, 124px) 34px;
  min-height: 56px;
  padding: 8px 10px;
  gap: 10px;
}

body[data-porto-ui="modern"] .porto-modern-ops-row .porto-status-pill {
  width: 132px;
  min-width: 132px;
}

body[data-porto-ui="modern"] .porto-modern-ops-row .porto-modern-channel,
body[data-porto-ui="modern"] .porto-modern-ops-row .porto-modern-channel-cell,
body[data-porto-ui="modern"] .porto-modern-ops-row [data-modern-channel],
body[data-porto-ui="modern"] .porto-modern-ops-row small {
  justify-self: start;
  text-align: left;
  line-height: 1.12;
  overflow-wrap: normal;
  white-space: normal;
}

body[data-porto-ui="modern"] .porto-modern-row-arrow,
body[data-porto-ui="modern"] .porto-modern-ops-row .context-menu-trigger {
  width: 34px;
  height: 34px;
}

@media (max-width: 1320px) {
  body[data-porto-ui="modern"] .porto-modern-ops-dashboard {
    width: min(1200px, calc(100vw - 34px));
    padding: 18px;
  }

  body[data-porto-ui="modern"] .porto-modern-ops-header {
    grid-template-columns: minmax(210px, 0.8fr) minmax(250px, 0.9fr) minmax(390px, auto);
  }

  body[data-porto-ui="modern"] .porto-modern-ops-layout {
    grid-template-columns: minmax(0, 1fr) minmax(290px, 320px);
  }
}

@media (max-width: 1120px) {
  body[data-porto-ui="modern"] .porto-modern-ops-header {
    grid-template-columns: minmax(220px, 1fr) minmax(280px, 1fr);
  }

  body[data-porto-ui="modern"] .porto-modern-ops-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  body[data-porto-ui="modern"] .porto-modern-ops-layout {
    grid-template-columns: 1fr;
  }

  body[data-porto-ui="modern"] .porto-modern-stat-grid {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }
}
