html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  margin-bottom: 60px;
  background: #f4f6f8;
}

/* Application shell */
:root {
  --servilog-sidebar-width: 256px;
  --servilog-sidebar-rail-width: 80px;
  --servilog-shell-navy: #061a34;
  --servilog-shell-navy-deep: #041428;
  --servilog-shell-accent: #25b7d3;
  --servilog-shell-text: #f7fbff;
  --servilog-shell-muted: #9fb4cb;
  --servilog-shell-border: rgba(159, 180, 203, .18);
  --servilog-shell-transition: 220ms cubic-bezier(.2, .8, .2, 1);
}

.app-shell-body {
  min-width: 320px;
  min-height: 100vh;
  min-height: 100dvh;
  margin-bottom: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 90% 0%, rgba(37, 183, 211, .055), transparent 26rem),
    #f4f7fa;
}

.servilog-skip-link {
  position: fixed;
  top: 10px;
  left: 12px;
  z-index: 1200;
  padding: .65rem .9rem;
  border-radius: .55rem;
  color: #fff;
  background: #0d6efd;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .24);
  transform: translateY(-160%);
  transition: transform var(--servilog-shell-transition);
}

.servilog-skip-link:focus {
  color: #fff;
  transform: translateY(0);
}

.servilog-app-shell {
  display: grid;
  grid-template-columns: var(--servilog-sidebar-width) minmax(0, 1fr);
  min-height: 100vh;
  min-height: 100dvh;
  transition: grid-template-columns var(--servilog-shell-transition);
}

.servilog-sidebar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100vh;
  height: 100dvh;
  color: var(--servilog-shell-text);
  overflow-x: hidden;
  overflow-y: auto;
  background:
    radial-gradient(circle at 118% 18%, rgba(37, 183, 211, .22), transparent 18rem),
    linear-gradient(180deg, var(--servilog-shell-navy-deep) 0%, var(--servilog-shell-navy) 58%, #071d3a 100%);
  border-right: 1px solid rgba(148, 163, 184, .14);
  box-shadow: 14px 0 36px rgba(15, 23, 42, .08);
}

.servilog-sidebar-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  grid-template-areas: "brand control";
  align-items: center;
  gap: 8px;
  min-height: 76px;
  padding: 12px 14px 12px 20px;
  border-bottom: 1px solid var(--servilog-shell-border);
}

.servilog-sidebar-brand-slot,
.servilog-sidebar-control-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 44px;
}

.servilog-sidebar-brand-slot {
  grid-area: brand;
  justify-content: flex-start;
}

.servilog-sidebar-control-slot {
  grid-area: control;
}

.servilog-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 44px;
  margin: 0;
  padding: 4px 0;
  text-decoration: none;
}

.servilog-brand .servilog-logo {
  width: 138px;
  max-width: 100%;
  height: auto;
  transition: opacity var(--servilog-shell-transition);
}

.servilog-brand-monogram {
  display: none;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(186, 230, 253, .34);
  border-radius: 12px;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 900;
  letter-spacing: -.04em;
  background: linear-gradient(145deg, rgba(37, 183, 211, .34), rgba(14, 116, 144, .16));
}

.servilog-sidebar-toggle,
.servilog-sidebar-close,
.servilog-mobile-menu-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  padding: 0;
  border-radius: 12px;
  cursor: pointer;
  transition: color var(--servilog-shell-transition), background-color var(--servilog-shell-transition), border-color var(--servilog-shell-transition);
}

.servilog-sidebar-toggle,
.servilog-sidebar-close {
  color: #c9d8e8;
  border: 1px solid rgba(159, 180, 203, .25);
  background: rgba(255, 255, 255, .035);
}

.servilog-sidebar-toggle {
  position: static;
}

.servilog-sidebar-toggle:hover,
.servilog-sidebar-toggle:focus-visible,
.servilog-sidebar-close:hover,
.servilog-sidebar-close:focus-visible {
  color: #fff;
  border-color: rgba(125, 211, 252, .5);
  background: rgba(37, 183, 211, .16);
}

.servilog-sidebar-toggle svg,
.servilog-sidebar-close svg,
.servilog-mobile-menu-button svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.servilog-sidebar-close {
  display: none;
}

.servilog-sidebar-navigation {
  flex: 1 1 auto;
  padding: 18px 12px;
}

.servilog-nav-group + .servilog-nav-group {
  margin-top: 22px;
}

.servilog-nav-group-label {
  margin: 0 10px 8px;
  color: #7f9bb8;
  font-size: .69rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: .12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.servilog-nav-link.nav-link {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 46px;
  margin: 3px 0;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 11px;
  color: #dce7f2;
  font-size: .91rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--servilog-shell-transition), background-color var(--servilog-shell-transition), border-color var(--servilog-shell-transition), transform var(--servilog-shell-transition);
}

.servilog-nav-link.nav-link::before {
  position: absolute;
  top: 9px;
  bottom: 9px;
  left: -12px;
  width: 3px;
  border-radius: 0 4px 4px 0;
  background: var(--servilog-shell-accent);
  box-shadow: 0 0 16px rgba(37, 183, 211, .65);
  content: "";
  opacity: 0;
  transform: scaleY(.45);
  transition: opacity var(--servilog-shell-transition), transform var(--servilog-shell-transition);
}

.servilog-nav-link.nav-link svg,
.servilog-logout-button svg {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  margin-right: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.servilog-nav-link.nav-link:hover {
  color: #fff;
  border-color: rgba(125, 211, 252, .13);
  background: rgba(255, 255, 255, .065);
  transform: translateX(2px);
}

.servilog-nav-link.nav-link.is-active,
.servilog-nav-link.nav-link[aria-current="page"] {
  color: #fff;
  border-color: rgba(125, 211, 252, .16);
  background: linear-gradient(90deg, rgba(14, 116, 144, .52), rgba(37, 183, 211, .16));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .045), 0 8px 20px rgba(2, 12, 27, .16);
}

.servilog-nav-link.nav-link.is-active::before,
.servilog-nav-link.nav-link[aria-current="page"]::before {
  opacity: 1;
  transform: scaleY(1);
}

.servilog-sidebar-account {
  flex: 0 0 auto;
  padding: 14px 12px 16px;
  border-top: 1px solid var(--servilog-shell-border);
  background: rgba(2, 12, 27, .18);
}

.servilog-user-profile {
  display: flex;
  align-items: center;
  min-height: 58px;
  padding: 8px;
  border-radius: 12px;
  color: #fff;
  text-decoration: none;
  transition: background-color var(--servilog-shell-transition);
}

.servilog-user-profile:hover,
.servilog-user-profile:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, .065);
}

.servilog-user-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border: 1px solid rgba(186, 230, 253, .2);
  border-radius: 50%;
  color: #fff;
  font-size: .9rem;
  font-weight: 800;
  background: linear-gradient(145deg, #36516e, #203b58);
}

.servilog-user-copy {
  display: block;
  min-width: 0;
  margin-left: 10px;
  line-height: 1.22;
}

.servilog-user-copy strong,
.servilog-user-copy small {
  display: block;
  max-width: 168px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.servilog-user-copy strong {
  font-size: .79rem;
  font-weight: 700;
}

.servilog-user-copy small {
  margin-top: 3px;
  color: var(--servilog-shell-muted);
  font-size: .72rem;
}

.servilog-logout-form {
  margin-top: 4px;
}

.servilog-logout-button {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 0;
  border-radius: 11px;
  color: #cbd8e6;
  font: inherit;
  font-size: .88rem;
  font-weight: 600;
  text-align: left;
  text-decoration: none;
  background: transparent;
  cursor: pointer;
  transition: color var(--servilog-shell-transition), background-color var(--servilog-shell-transition);
}

.servilog-logout-button:hover,
.servilog-logout-button:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, .065);
}

.servilog-shell-content {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 100vh;
  min-height: 100dvh;
}

.servilog-mobile-menu-button {
  display: none;
  color: #17324d;
  border: 1px solid #d6e0ea;
  background: #fff;
}

.servilog-mobile-menu-button:hover,
.servilog-mobile-menu-button:focus-visible {
  color: #075985;
  border-color: #7dd3fc;
  background: #f0f9ff;
}

.servilog-main-content {
  flex: 1 0 auto;
  width: 100%;
  padding-top: 24px;
}

.app-shell-footer.footer {
  position: static;
  flex: 0 0 auto;
  width: 100%;
  min-height: 60px;
  border-top: 1px solid #dde5ee;
  line-height: normal;
  white-space: normal;
  background: rgba(255, 255, 255, .7);
}

.app-shell-footer.footer > div {
  min-height: 60px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.servilog-sidebar-scrim {
  display: none;
}

@media (min-width: 992px) {
  html.servilog-sidebar-collapsed .servilog-app-shell,
  .servilog-app-shell.is-sidebar-collapsed {
    grid-template-columns: var(--servilog-sidebar-rail-width) minmax(0, 1fr);
  }

  html.servilog-sidebar-collapsed .servilog-brand,
  .servilog-app-shell.is-sidebar-collapsed .servilog-brand {
    width: 44px;
    padding-right: 0;
  }

  html.servilog-sidebar-collapsed .servilog-brand .servilog-logo,
  .servilog-app-shell.is-sidebar-collapsed .servilog-brand .servilog-logo,
  html.servilog-sidebar-collapsed .servilog-nav-label,
  .servilog-app-shell.is-sidebar-collapsed .servilog-nav-label,
  html.servilog-sidebar-collapsed .servilog-nav-group-label,
  .servilog-app-shell.is-sidebar-collapsed .servilog-nav-group-label,
  html.servilog-sidebar-collapsed .servilog-user-copy,
  .servilog-app-shell.is-sidebar-collapsed .servilog-user-copy {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  html.servilog-sidebar-collapsed .servilog-brand-monogram,
  .servilog-app-shell.is-sidebar-collapsed .servilog-brand-monogram {
    display: inline-flex;
  }

  html.servilog-sidebar-collapsed .servilog-sidebar-header,
  .servilog-app-shell.is-sidebar-collapsed .servilog-sidebar-header {
    grid-template-columns: 44px;
    grid-template-rows: 44px 44px;
    grid-template-areas:
      "brand"
      "control";
    justify-content: center;
    gap: 8px;
    min-height: 116px;
    padding: 10px 18px;
  }

  html.servilog-sidebar-collapsed .servilog-sidebar-brand-slot,
  .servilog-app-shell.is-sidebar-collapsed .servilog-sidebar-brand-slot,
  html.servilog-sidebar-collapsed .servilog-sidebar-control-slot,
  .servilog-app-shell.is-sidebar-collapsed .servilog-sidebar-control-slot {
    width: 44px;
    min-height: 44px;
  }

  html.servilog-sidebar-collapsed .servilog-sidebar-toggle svg,
  .servilog-app-shell.is-sidebar-collapsed .servilog-sidebar-toggle svg {
    transform: rotate(180deg);
  }

  html.servilog-sidebar-collapsed .servilog-sidebar-navigation,
  .servilog-app-shell.is-sidebar-collapsed .servilog-sidebar-navigation,
  html.servilog-sidebar-collapsed .servilog-sidebar-account,
  .servilog-app-shell.is-sidebar-collapsed .servilog-sidebar-account {
    padding-right: 10px;
    padding-left: 10px;
  }

  html.servilog-sidebar-collapsed .servilog-nav-group + .servilog-nav-group,
  .servilog-app-shell.is-sidebar-collapsed .servilog-nav-group + .servilog-nav-group {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--servilog-shell-border);
  }

  html.servilog-sidebar-collapsed .servilog-nav-link.nav-link,
  .servilog-app-shell.is-sidebar-collapsed .servilog-nav-link.nav-link,
  html.servilog-sidebar-collapsed .servilog-logout-button,
  .servilog-app-shell.is-sidebar-collapsed .servilog-logout-button,
  html.servilog-sidebar-collapsed .servilog-user-profile,
  .servilog-app-shell.is-sidebar-collapsed .servilog-user-profile {
    justify-content: center;
    padding-right: 10px;
    padding-left: 10px;
  }

  html.servilog-sidebar-collapsed .servilog-nav-link.nav-link svg,
  .servilog-app-shell.is-sidebar-collapsed .servilog-nav-link.nav-link svg,
  html.servilog-sidebar-collapsed .servilog-logout-button svg,
  .servilog-app-shell.is-sidebar-collapsed .servilog-logout-button svg {
    margin-right: 0;
  }

  html.servilog-sidebar-collapsed .servilog-nav-link.nav-link:hover,
  .servilog-app-shell.is-sidebar-collapsed .servilog-nav-link.nav-link:hover {
    transform: none;
  }
}

@media (max-width: 991.98px) {
  .servilog-app-shell {
    display: block;
  }

  .servilog-sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    width: min(288px, calc(100vw - 48px));
    height: 100vh;
    height: 100dvh;
    box-shadow: 22px 0 50px rgba(2, 12, 27, .3);
    transform: translateX(-102%);
    visibility: hidden;
    transition: transform var(--servilog-shell-transition), visibility 0s linear 220ms;
  }

  .servilog-app-shell.is-sidebar-open .servilog-sidebar {
    transform: translateX(0);
    visibility: visible;
    transition-delay: 0s;
  }

  .servilog-sidebar-toggle {
    display: none;
  }

  .servilog-sidebar-close {
    display: inline-flex;
  }

  html.servilog-shell-js .servilog-mobile-menu-button {
    position: fixed;
    right: auto;
    left: 16px;
    left: max(16px, env(safe-area-inset-left));
    bottom: 16px;
    bottom: max(16px, env(safe-area-inset-bottom));
    z-index: 35;
    display: inline-flex;
    color: #fff;
    border-color: rgba(125, 211, 252, .72);
    background: #0b3658;
    box-shadow: 0 10px 26px rgba(2, 12, 27, .3);
  }

  html.servilog-shell-js .servilog-mobile-menu-button:hover,
  html.servilog-shell-js .servilog-mobile-menu-button:focus-visible {
    color: #fff;
    border-color: #bae6fd;
    outline: 3px solid rgba(14, 116, 144, .34);
    outline-offset: 3px;
    background: #075985;
  }

  .servilog-sidebar-scrim {
    position: fixed;
    inset: 0;
    z-index: 40;
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: rgba(2, 12, 27, .58);
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--servilog-shell-transition);
  }

  .servilog-sidebar-scrim[hidden] {
    display: none;
  }

  .servilog-app-shell.is-sidebar-open .servilog-sidebar-scrim {
    opacity: 1;
    pointer-events: auto;
  }

  body.servilog-drawer-open {
    overflow: hidden;
  }

  html:not(.servilog-shell-js) .servilog-sidebar {
    position: static;
    width: 100%;
    height: auto;
    max-height: none;
    transform: none;
    visibility: visible;
    box-shadow: none;
  }

  html:not(.servilog-shell-js) .servilog-sidebar-close,
  html:not(.servilog-shell-js) .servilog-sidebar-scrim {
    display: none;
  }

  .servilog-main-content {
    padding-top: 18px;
  }
}

@media (max-width: 575.98px) {
  .servilog-main-content {
    padding-right: 14px !important;
    padding-left: 14px !important;
  }

  .app-shell-footer.footer > div {
    align-items: flex-start !important;
    flex-direction: column;
    gap: 5px !important;
    padding-top: 13px;
    padding-bottom: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .servilog-app-shell,
  .servilog-sidebar,
  .servilog-sidebar-scrim,
  .servilog-skip-link,
  .servilog-sidebar-toggle,
  .servilog-sidebar-close,
  .servilog-mobile-menu-button,
  .servilog-brand .servilog-logo,
  .servilog-nav-link.nav-link,
  .servilog-nav-link.nav-link::before,
  .servilog-user-profile,
  .servilog-logout-button {
    scroll-behavior: auto;
    transition: none;
  }
}

.servilog-navbar {
  background: #111827;
}

.servilog-logo {
  width: 132px;
  height: auto;
}

.servilog-card {
  background: #fff;
  border: 1px solid #dee2e6;
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(17, 24, 39, 0.08);
}

.monitor-filter-card {
  padding: 16px 18px;
}

.monitor-filter-card h1 {
  font-size: 1.35rem;
}

.monitor-filter-card .text-uppercase {
  font-size: 0.82rem;
}

.monitor-filter-card .alert {
  margin-bottom: 0.8rem;
  padding: 0.65rem 0.9rem;
}

.monitor-filter-card .monitor-heading-row {
  margin-bottom: 0.65rem;
}

.monitor-filter-card .row {
  --bs-gutter-y: 0.35rem;
}

.monitor-import-form {
  margin-bottom: 0.35rem;
}

.monitor-filter-card .monitor-row-divider,
.monitor-filter-card .monitor-toolbar-row {
  border-top: 1px solid #d7dee8;
  padding-top: 0.55rem;
  margin-top: 0.45rem;
}

.monitor-filter-card .monitor-help-text {
  margin-top: -0.1rem;
  color: #64748b;
  font-size: 0.82rem;
  line-height: 1.2;
}

.monitor-filter-card.validation-stable span[data-valmsg-for],
.monitor-filter-card .validation-stable span[data-valmsg-for] {
  min-height: 0.3rem;
  margin-top: 0.05rem;
  line-height: 0.95rem;
}

.monitor-download-col {
  min-width: 172px;
}

.monitor-action-spacer {
  visibility: hidden;
  user-select: none;
}

.monitor-download-button {
  min-height: 40px;
  margin-bottom: 0.35rem;
  padding-inline: 0.95rem;
  white-space: nowrap;
}

.monitor-download-button svg {
  flex: 0 0 auto;
}

@media (max-width: 991.98px) {
  .monitor-download-col {
    min-width: 0;
  }

  .monitor-action-spacer {
    display: none;
  }
}

.monitor-filter-card .form-label {
  margin-bottom: 0.25rem;
  font-size: 0.88rem;
}

.packages-actions-row .form-label {
  margin-bottom: 0.25rem;
}

.packages-action-button-col .btn {
  min-height: 38px;
  white-space: nowrap;
}

.packages-action-button-col svg {
  flex: 0 0 auto;
}

.servilog-grid thead th {
  background: #374151;
  color: #fff;
}

.servilog-grid .metric-actions-column {
  width: 1%;
  min-width: 132px;
  white-space: nowrap;
}

.download-header {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 0.78rem;
}

.download-header svg {
  width: 20px;
  height: 20px;
  color: #22c55e;
}

.mail-header {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 0.78rem;
}

.mail-header svg {
  width: 18px;
  height: 18px;
  color: #93c5fd;
}

.download-icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  color: #15803d;
  background: #f0fdf4;
  transition: background-color 150ms ease, color 150ms ease, transform 150ms ease;
}

.download-icon-button:hover,
.download-icon-button:focus {
  color: #fff;
  background: #16a34a;
  transform: translateY(-1px);
}

.download-icon-button svg {
  width: 16px;
  height: 16px;
}

.package-preview-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid #bfdbfe;
  border-radius: 9px;
  color: #1d4ed8;
  background: #eff6ff;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.package-preview-button:hover,
.package-preview-button:focus-visible {
  color: #fff;
  border-color: #2563eb;
  background: #2563eb;
  transform: translateY(-1px);
}

.package-preview-button:focus-visible {
  outline: 3px solid rgba(37, 99, 235, .25);
  outline-offset: 2px;
}

.package-preview-button svg {
  width: 17px;
  height: 17px;
}

.metric-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  width: 100%;
}

.metric-value {
  min-width: 3.25rem;
  font-variant-numeric: tabular-nums;
}

.metric-action-group {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding-left: 8px;
  border-left: 1px solid rgba(15, 118, 110, .24);
}

.metric-actions-cell {
  white-space: nowrap;
}

.assigned-bases-pill,
.assigned-bases-summary {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  min-height: 32px;
  padding: .3rem .65rem;
  border: 1px solid #dbe4f0;
  border-radius: 999px;
  color: #1e3a5f;
  background: #f4f7fb;
  font-size: .82rem;
  font-weight: 700;
  line-height: 1.2;
}

.assigned-bases-pill svg,
.assigned-bases-summary svg {
  width: 15px;
  height: 15px;
  color: #2563eb;
  flex: 0 0 auto;
}

.assigned-bases-details {
  position: relative;
  display: inline-block;
}

.assigned-bases-summary {
  appearance: none;
  cursor: pointer;
  list-style: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.assigned-bases-summary::-webkit-details-marker {
  display: none;
}

.assigned-bases-summary:hover,
.assigned-bases-summary:focus-visible,
.assigned-bases-details[open] .assigned-bases-summary {
  border-color: #93c5fd;
  background: #eff6ff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
  outline: none;
}

.assigned-bases-chevron {
  transition: transform 160ms ease;
}

.assigned-bases-details[open] .assigned-bases-chevron {
  transform: rotate(180deg);
}

.assigned-bases-popover {
  position: absolute;
  z-index: 1060;
  top: calc(100% + .45rem);
  left: 0;
  min-width: 230px;
  max-width: 320px;
  padding: .55rem;
  border: 1px solid #dbe4f0;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(15, 23, 42, .18);
}

.assigned-bases-popover-title {
  display: block;
  padding: .2rem .35rem .45rem;
  color: #64748b;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.assigned-bases-list {
  display: flex;
  flex-direction: column;
  gap: .2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.assigned-bases-list li {
  padding: .42rem .55rem;
  border-radius: 8px;
  color: #243b53;
  background: #f8fafc;
  font-size: .84rem;
  font-weight: 600;
}

.admin-action-modal .modal-content {
  overflow: hidden;
  border: 0;
  border-radius: 18px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, .28);
}

.admin-action-modal .modal-header {
  padding: 1rem 1.15rem;
  border-bottom-color: #e2e8f0;
  background: linear-gradient(135deg, #f8fbff 0%, #eef6ff 100%);
}

.admin-modal-heading {
  display: flex;
  align-items: center;
  gap: .8rem;
}

.admin-modal-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  color: #1d4ed8;
  background: #fff;
  box-shadow: 0 5px 14px rgba(37, 99, 235, .1);
}

.admin-modal-icon svg {
  width: 21px;
  height: 21px;
}

.admin-action-modal .modal-body {
  padding: 1.15rem;
}

.admin-action-modal .modal-footer {
  padding: .85rem 1.15rem;
  border-top-color: #e2e8f0;
  background: #f8fafc;
}

.assigned-bases-modal-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: .55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.assigned-bases-modal-list li {
  padding: .7rem .8rem;
  border: 1px solid #dbeafe;
  border-radius: 10px;
  color: #1e3a5f;
  background: #f8fbff;
  font-size: .88rem;
  font-weight: 700;
}

@media (max-width: 575.98px) {
  .assigned-bases-modal-list {
    grid-template-columns: 1fr;
  }
}

.listing-modal .modal-dialog {
  width: calc(100% - 1rem);
  max-width: none;
  margin-right: auto;
  margin-left: auto;
}

@media (min-width: 576px) {
  .listing-modal .modal-dialog {
    width: min(96vw, 1800px);
    max-width: 1800px;
  }
}

.package-preview-modal .modal-content {
  max-height: calc(100vh - 2rem);
  overflow: hidden;
  border: 0;
  border-radius: 20px;
  box-shadow: 0 28px 80px rgba(15, 23, 42, .34);
}

.package-preview-header {
  padding: 1rem 1.2rem;
  border: 0;
  color: #fff;
  background: linear-gradient(125deg, #0b1b33 0%, #12345b 58%, #155e75 100%);
}

.package-preview-header-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 12px;
  color: #bae6fd;
  background: rgba(255, 255, 255, .1);
}

.package-preview-header-icon svg {
  width: 23px;
  height: 23px;
}

.package-preview-header .modal-kicker {
  color: #7dd3fc;
}

.package-preview-subtitle {
  color: #dbeafe;
  font-size: .84rem;
}

.package-preview-modal .modal-body {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 0;
  background: #f8fafc;
}

.package-preview-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .9rem 1rem;
  border-bottom: 1px solid #e2e8f0;
  background: #fff;
}

.package-preview-search {
  position: relative;
  flex: 1 1 520px;
  max-width: 620px;
}

.package-preview-search svg {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: .85rem;
  width: 18px;
  height: 18px;
  color: #64748b;
  transform: translateY(-50%);
  pointer-events: none;
}

.package-preview-search .form-control {
  min-height: 42px;
  padding-left: 2.55rem;
  border-color: #cbd5e1;
  border-radius: 11px;
  background: #f8fafc;
}

.package-preview-search .form-control:focus {
  border-color: #3b82f6;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, .14);
}

.package-preview-count {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  min-width: 110px;
  justify-content: flex-end;
  color: #475569;
  font-size: .84rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.package-preview-table-wrap {
  position: relative;
  min-height: 300px;
  overflow: auto;
}

.package-preview-table {
  width: 100%;
  table-layout: auto;
  background: #fff;
}

.package-preview-table th,
.package-preview-table td {
  min-width: 140px;
  white-space: nowrap;
}

.package-preview-table thead th {
  position: sticky;
  z-index: 2;
  top: 0;
  padding: .72rem 1rem;
  border-bottom: 1px solid #cbd5e1;
  color: #475569;
  background: #f1f5f9;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .045em;
  text-transform: uppercase;
}

.package-preview-table tbody td {
  padding: .7rem 1rem;
  border-color: #edf2f7;
  color: #334155;
  font-size: .88rem;
}

.package-preview-table tbody tr:hover td {
  background: #f8fbff;
}

.package-tracking-cell {
  color: #0f2f55 !important;
  font-variant-numeric: tabular-nums;
}

.package-status-pill {
  display: inline-flex;
  align-items: center;
  padding: .25rem .55rem;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 800;
}

.package-status-pill.is-delivered,
.package-status-pill.is-managed {
  color: #166534;
  background: #dcfce7;
}

.package-status-pill.is-not-delivered {
  color: #991b1b;
  background: #fee2e2;
}

.package-status-pill.is-pending {
  color: #92400e;
  background: #fef3c7;
}

.package-preview-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  min-height: 300px;
  color: #64748b;
  text-align: center;
}

.package-preview-empty svg {
  width: 38px;
  height: 38px;
  margin-bottom: .3rem;
  color: #94a3b8;
}

.package-preview-skeleton span {
  display: block;
  width: 78%;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%);
  background-size: 200% 100%;
  animation: package-preview-shimmer 1.2s infinite;
}

@keyframes package-preview-shimmer {
  from { background-position: 200% 0; }
  to { background-position: -200% 0; }
}

.package-preview-footer {
  border-top-color: #e2e8f0;
  background: #fff;
}

@media (max-width: 767.98px) {
  .assigned-bases-popover {
    right: 0;
    left: auto;
  }

  .package-preview-modal .modal-dialog {
    max-width: none;
    margin: .5rem auto;
  }

  .package-preview-modal .modal-content {
    max-height: calc(100vh - 1rem);
    border-radius: 14px;
  }

  .package-preview-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .package-preview-search {
    flex-basis: auto;
    max-width: none;
  }

  .package-preview-count {
    justify-content: flex-start;
  }

  .package-preview-table-wrap {
    min-height: 260px;
  }

  .package-preview-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .package-preview-footer .ms-auto {
    width: 100%;
    margin-left: 0 !important;
  }

  .package-preview-footer .btn {
    flex: 1 1 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .package-preview-skeleton span {
    animation: none;
  }
}

.send-mail-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 1px solid #bfdbfe;
  border-radius: 9px;
  color: #1d4ed8;
  background: #eff6ff;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease, transform 150ms ease;
}

.send-mail-button:hover,
.send-mail-button:focus {
  border-color: #2563eb;
  color: #fff;
  background: #2563eb;
  transform: translateY(-1px);
}

.send-mail-button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
}

.send-mail-button svg {
  width: 17px;
  height: 17px;
}

.download-unavailable {
  color: #94a3b8;
  font-weight: 800;
}

.status-green { background: #bbf7d0; color: #14532d; }
.status-yellow { background: #fef3c7; color: #78350f; }
.status-red { background: #fecaca; color: #7f1d1d; }
.status-blue { background: #bfdbfe; color: #1e3a8a; }

.servilog-user-link,
.servilog-user-link:visited {
  color: #f8fafc !important;
  font-weight: 600;
}

.servilog-user-link:hover,
.servilog-user-link:focus {
  color: #bfdbfe !important;
}

.btn:disabled,
.btn.disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.processing-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(2px);
}

.processing-card {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: min(420px, calc(100vw - 36px));
  padding: 22px 26px;
  border: 1px solid rgba(191, 219, 254, 0.9);
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.35);
}

.processing-illustration {
  width: 82px;
  height: 82px;
  object-fit: contain;
}

.processing-copy strong {
  display: block;
  color: #0f172a;
  font-size: 1.05rem;
}

.processing-copy .small {
  margin-top: 3px;
}

.login-shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 520px);
  min-height: calc(100vh - 170px);
  overflow: hidden;
  border-radius: 28px;
  background: #0f172a;
  box-shadow: 0 26px 70px rgba(15, 23, 42, 0.22);
}

.login-hero {
  position: relative;
  display: flex;
  align-items: center;
  padding: clamp(32px, 5vw, 72px);
  color: #fff;
  background:
    radial-gradient(circle at 18% 22%, rgba(59, 130, 246, 0.34), transparent 28%),
    radial-gradient(circle at 72% 72%, rgba(14, 165, 233, 0.2), transparent 34%),
    linear-gradient(135deg, #0b1220 0%, #111827 48%, #1e3a5f 100%);
}

.login-brand-panel {
  position: relative;
  z-index: 1;
  max-width: 620px;
}

.login-brand-logo {
  width: min(280px, 62vw);
  height: auto;
  margin-bottom: 44px;
  filter: drop-shadow(0 18px 32px rgba(0, 0, 0, 0.28));
}

.login-kicker {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: #bfdbfe;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.06);
}

.login-brand-panel h1 {
  max-width: 640px;
  margin-bottom: 18px;
  font-size: clamp(2.2rem, 5vw, 4.7rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.login-description {
  max-width: 560px;
  color: #dbeafe;
  font-size: 1.1rem;
  line-height: 1.7;
}

.login-orbit {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  pointer-events: none;
}

.login-orbit-one {
  right: -120px;
  top: 9%;
  width: 360px;
  height: 360px;
}

.login-orbit-two {
  left: -190px;
  bottom: -210px;
  width: 440px;
  height: 440px;
}

.login-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 4vw, 56px);
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.login-card-header {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 34px;
}

.login-card-logo {
  width: 116px;
  height: auto;
  padding: 12px;
  border-radius: 16px;
  background: #111827;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.18);
}

.login-card h2 {
  margin: 0;
  color: #0f172a;
  font-size: clamp(1.8rem, 3vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.035em;
}

.login-form .form-label {
  color: #1f2937;
  font-weight: 700;
}

.login-form .form-control {
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  background: #fff;
}

.login-form .form-control:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 0.25rem rgba(37, 99, 235, 0.16);
}

.login-help-link {
  color: #1d4ed8;
  font-weight: 700;
  text-decoration: none;
}

.login-help-link:hover,
.login-help-link:focus {
  color: #1e40af;
  text-decoration: underline;
}

.login-submit {
  min-height: 54px;
  border: 0;
  border-radius: 16px;
  font-weight: 800;
  background: linear-gradient(135deg, #1d4ed8, #0f766e);
  box-shadow: 0 16px 34px rgba(29, 78, 216, 0.24);
}

.login-submit:hover,
.login-submit:focus {
  background: linear-gradient(135deg, #1e40af, #115e59);
}



.register-standard-shell {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: clamp(24px, 4vw, 56px);
  background:
    radial-gradient(circle at 20% 15%, rgba(37, 99, 235, 0.10), transparent 30%),
    radial-gradient(circle at 82% 12%, rgba(15, 118, 110, 0.12), transparent 28%),
    linear-gradient(180deg, #f8fafc 0%, #eef4f8 100%);
}

.register-standard-card {
  width: min(760px, 100%);
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid #dbe5ef;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 62px rgba(15, 23, 42, 0.14);
}

.register-standard-header {
  padding-bottom: 18px;
  margin-bottom: 20px;
  border-bottom: 1px solid #e2e8f0;
  text-align: center;
}

.register-standard-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  color: #0f766e;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: #ccfbf1;
}

.register-standard-header h1 {
  margin: 0;
  color: #0f172a;
  font-size: clamp(1.9rem, 4vw, 2.55rem);
  font-weight: 800;
  letter-spacing: -0.035em;
}

.register-standard-header p {
  max-width: 520px;
  margin: 10px auto 0;
  color: #64748b;
  line-height: 1.55;
}

.register-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 0;
  margin: 0 0 24px;
  list-style: none;
}

.register-steps li {
  display: flex;
  gap: 10px;
  padding: 14px;
  border: 1px solid #dbeafe;
  border-radius: 16px;
  background: #f8fbff;
}

.register-steps li > span {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
  background: linear-gradient(135deg, #1d4ed8, #0f766e);
}

.register-steps strong {
  display: block;
  color: #0f172a;
  font-size: 0.92rem;
  line-height: 1.2;
}

.register-steps small {
  display: block;
  margin-top: 4px;
  color: #64748b;
  line-height: 1.35;
}

.register-standard-form .form-label {
  color: #1f2937;
  font-weight: 700;
}

.register-standard-form .form-control {
  min-height: 50px;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  background: #fff;
}

.register-standard-form .form-control:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 0.25rem rgba(37, 99, 235, 0.16);
}

.register-standard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.register-mail-notice {
  margin: 2px 0 18px;
  padding: 12px 14px;
  border: 1px solid #bfdbfe;
  border-radius: 14px;
  color: #1e3a8a;
  font-size: 0.92rem;
  line-height: 1.45;
  background: #eff6ff;
}

.register-standard-submit {
  min-height: 52px;
  border: 0;
  border-radius: 16px;
  font-weight: 800;
  background: linear-gradient(135deg, #1d4ed8, #0f766e);
  box-shadow: 0 16px 34px rgba(29, 78, 216, 0.22);
}

.register-standard-submit:hover,
.register-standard-submit:focus {
  background: linear-gradient(135deg, #1e40af, #115e59);
}

.register-standard-footer {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
  color: #64748b;
  font-size: 0.94rem;
}

.register-standard-footer a {
  color: #1d4ed8;
  font-weight: 800;
  text-decoration: none;
}

.register-standard-footer a:hover,
.register-standard-footer a:focus {
  color: #1e40af;
  text-decoration: underline;
}

@media (max-width: 767.98px) {
  .register-steps,
  .register-standard-grid {
    grid-template-columns: 1fr;
  }

  .register-standard-card {
    border-radius: 18px;
  }
}


.recovery-standard-shell {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: clamp(24px, 4vw, 56px);
  background:
    radial-gradient(circle at 20% 15%, rgba(37, 99, 235, 0.10), transparent 30%),
    radial-gradient(circle at 82% 12%, rgba(15, 118, 110, 0.12), transparent 28%),
    linear-gradient(180deg, #f8fafc 0%, #eef4f8 100%);
}

.recovery-standard-card {
  width: min(680px, 100%);
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid #dbe5ef;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 62px rgba(15, 23, 42, 0.14);
}

.recovery-standard-header {
  padding-bottom: 18px;
  margin-bottom: 20px;
  border-bottom: 1px solid #e2e8f0;
  text-align: center;
}

.recovery-standard-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  color: #1d4ed8;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: #dbeafe;
}

.recovery-standard-header h1 {
  margin: 0;
  color: #0f172a;
  font-size: clamp(1.9rem, 4vw, 2.55rem);
  font-weight: 800;
  letter-spacing: -0.035em;
}

.recovery-standard-header p {
  max-width: 520px;
  margin: 10px auto 0;
  color: #64748b;
  line-height: 1.55;
}

.recovery-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 0;
  margin: 0 0 24px;
  list-style: none;
}

.recovery-steps li {
  display: flex;
  gap: 10px;
  padding: 14px;
  border: 1px solid #dbeafe;
  border-radius: 16px;
  background: #f8fbff;
}

.recovery-steps li > span {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
  background: linear-gradient(135deg, #1d4ed8, #0f766e);
}

.recovery-steps strong {
  display: block;
  color: #0f172a;
  font-size: 0.92rem;
  line-height: 1.2;
}

.recovery-steps small {
  display: block;
  margin-top: 4px;
  color: #64748b;
  line-height: 1.35;
}

.recovery-standard-form .form-label {
  color: #1f2937;
  font-weight: 700;
}

.recovery-standard-form .form-control {
  min-height: 50px;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  background: #fff;
}

.recovery-standard-form .form-control:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 0.25rem rgba(37, 99, 235, 0.16);
}

.recovery-mail-notice {
  margin: 2px 0 18px;
  padding: 12px 14px;
  border: 1px solid #bfdbfe;
  border-radius: 14px;
  color: #1e3a8a;
  font-size: 0.92rem;
  line-height: 1.45;
  background: #eff6ff;
}

.recovery-standard-submit {
  min-height: 52px;
  border: 0;
  border-radius: 16px;
  font-weight: 800;
  background: linear-gradient(135deg, #1d4ed8, #0f766e);
  box-shadow: 0 16px 34px rgba(29, 78, 216, 0.22);
}

.recovery-standard-submit:hover,
.recovery-standard-submit:focus {
  background: linear-gradient(135deg, #1e40af, #115e59);
}

.recovery-standard-footer {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
  color: #64748b;
  font-size: 0.94rem;
}

.recovery-standard-footer a {
  color: #1d4ed8;
  font-weight: 800;
  text-decoration: none;
}

.recovery-standard-footer a:hover,
.recovery-standard-footer a:focus {
  color: #1e40af;
  text-decoration: underline;
}

@media (max-width: 767.98px) {
  .recovery-steps {
    grid-template-columns: 1fr;
  }

  .recovery-standard-card {
    border-radius: 18px;
  }
}

.login-footnote {
  margin: 28px 0 0;
  color: #64748b;
  font-size: 0.9rem;
  text-align: center;
}

@media (max-width: 991.98px) {
  .login-shell {
    grid-template-columns: 1fr;
  }

  .login-hero {
    min-height: 320px;
  }

  .login-brand-logo {
    margin-bottom: 28px;
  }
}

@media (max-width: 575.98px) {
  .login-shell {
    border-radius: 18px;
  }

  .login-card-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .login-card-logo {
    width: 104px;
  }
}

body.login-page {
  min-height: 100vh;
  margin-bottom: 0;
  background: #0f172a;
}

.login-container {
  min-height: 100vh;
  padding: 0;
}

.login-page .login-shell {
  min-height: 100vh;
  border-radius: 0;
  box-shadow: none;
}

.login-page .login-brand-logo {
  margin-bottom: 54px;
}

.login-page .login-card-header {
  display: block;
}

.validation-stable span[data-valmsg-for] {
  display: block;
  min-height: 1.05rem;
  margin-top: 0.12rem;
  font-size: 0.8rem;
  line-height: 1.05rem;
}

.validation-stable span[data-valmsg-for].field-validation-valid {
  visibility: hidden;
}

.validation-summary-valid {
  display: none;
}

.validation-stable .form-action-col {
  padding-top: 1.6rem;
}

.monitor-import-form .form-control,
.monitor-import-form .form-select {
  min-height: 36px;
  padding-top: 0.4rem;
  padding-bottom: 0.4rem;
}

.monitor-import-form input[type="file"] {
  min-width: 0;
}

.monitor-import-form .form-action-col {
  padding-top: 0;
}

.monitor-import-form .form-action-col .btn {
  min-height: 39px;
  margin-bottom: 0.35rem;
}

@media (max-width: 767.98px) {
  .validation-stable .form-action-col {
    padding-top: 0;
  }
}

.batch-section {
  scroll-margin-top: 120px;
  margin-bottom: 14px;
}

.batch-board-card {
  padding: 14px;
  border-color: #1f2a44;
  background: linear-gradient(180deg, #111827 0%, #172033 100%);
}

.batch-board-card .text-muted {
  color: #cbd5e1 !important;
}

.delivery-batch-card {
  overflow: hidden;
  border: 1px solid #dbe4ef;
  border-radius: 14px;
  padding: 0;
  background: #fff;
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.08);
}

.batch-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 14px;
  color: #fff;
  background: linear-gradient(135deg, #111827 0%, #1e3a5f 100%);
}

.batch-header-main {
  display: grid;
  grid-template-columns: minmax(190px, 0.55fr) minmax(560px, 1.9fr);
  align-items: center;
  gap: 14px;
  width: 100%;
  min-width: 0;
}

.batch-heading {
  min-width: 0;
}

.batch-kicker,
.modal-kicker {
  color: #93c5fd;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.batch-title {
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.batch-header-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  justify-self: center;
  width: min(100%, 1120px);
  min-width: 0;
}

.batch-header-metric {
  min-width: 0;
  padding: 6px 9px;
  border: 1px solid rgba(191, 219, 254, 0.2);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  text-align: center;
}

.batch-header-metric span {
  display: block;
  margin-bottom: 1px;
  color: #bfdbfe;
  font-size: 0.64rem;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.batch-header-metric strong {
  display: block;
  overflow: hidden;
  color: #fff;
  font-size: 0.86rem;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.batch-close-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 112px;
  min-height: 38px;
  padding: 7px 12px;
  border: 1px solid rgba(254, 202, 202, 0.85);
  border-radius: 999px;
  color: #fee2e2;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  background: rgba(127, 29, 29, 0.18);
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease, transform 150ms ease;
}

.batch-close-button:hover,
.batch-close-button:focus {
  border-color: #fecaca;
  color: #fff;
  background: #dc2626;
  transform: translateY(-1px);
}

.batch-section-selected {
  border-color: #93c5fd;
  box-shadow: 0 18px 42px rgba(37, 99, 235, 0.16), inset 0 0 0 2px rgba(37, 99, 235, 0.12);
}

.batch-status-form {
  margin: 9px 14px 10px;
  padding: 10px;
  border: 1px solid #dbeafe;
  border-radius: 12px;
  background: #f8fbff;
}

.batch-status-form .form-label {
  margin-bottom: 0.35rem;
}

.batch-status-form .form-control {
  min-height: 36px;
  padding-top: 0.4rem;
  padding-bottom: 0.4rem;
}

.delivery-batch-card .table-responsive {
  margin: 0 14px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
}

.delivery-batch-card .servilog-grid {
  margin-bottom: 0;
}

.delivery-batch-card .servilog-grid th,
.delivery-batch-card .servilog-grid td {
  padding: 0.45rem 0.55rem;
}

.confirmation-modal {
  border: 0;
  border-radius: 20px;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.32);
}

.confirmation-modal .modal-kicker {
  color: #dc2626;
}

.back-to-top-button {
  position: fixed;
  right: 22px;
  bottom: 24px;
  z-index: 1050;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(147, 197, 253, 0.45);
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #111827 0%, #1d4ed8 100%);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.28);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 180ms ease, transform 180ms ease, background-color 180ms ease;
}

.back-to-top-button.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top-button:hover,
.back-to-top-button:focus {
  background: linear-gradient(135deg, #0f172a 0%, #2563eb 100%);
}

.back-to-top-button svg {
  width: 22px;
  height: 22px;
}

@media (max-width: 991.98px) {
  .batch-header-main {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .batch-header-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .batch-section-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .batch-header-metrics {
    grid-template-columns: 1fr;
  }

  .batch-close-button {
    width: 100%;
  }
}

.login-secondary-actions {
  margin-top: 1rem;
  color: #64748b;
  text-align: center;
}

.login-secondary-actions a {
  margin-left: 0.35rem;
  color: #2563eb;
  font-weight: 700;
  text-decoration: none;
}

.auth-shell,
.account-shell {
  display: flex;
  justify-content: center;
  padding: 24px 0 8px;
}

.auth-card,
.account-card {
  width: min(760px, 100%);
  background: #ffffff;
  border: 1px solid #dbe2ea;
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.08);
}

.auth-card-narrow,
.account-card-narrow {
  width: min(560px, 100%);
}

.auth-card-header,
.account-card-header {
  margin-bottom: 1.25rem;
}

.auth-card-header h1,
.account-card-header h1 {
  margin-bottom: 0.4rem;
  font-size: 1.8rem;
}

.auth-form-stack {
  display: grid;
  gap: 0.95rem;
}

.account-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.account-summary-item {
  padding: 1rem 1.1rem;
  border: 1px solid #dbe2ea;
  border-radius: 18px;
  background: #f8fafc;
}

.account-summary-item dt {
  margin-bottom: 0.25rem;
  color: #64748b;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.account-summary-item dd {
  margin: 0;
  color: #0f172a;
  font-size: 1.05rem;
  font-weight: 700;
}

.account-password-card {
  width: min(620px, 100%);
  overflow: hidden;
  border: 1px solid #dbeafe;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.09);
}

.account-password-header {
  padding: 22px 24px;
  color: #ffffff;
  background: linear-gradient(135deg, #111827 0%, #1e3a5f 100%);
}

.account-password-header h1 {
  margin: 0 0 0.35rem;
  font-size: 1.55rem;
  letter-spacing: -0.03em;
}

.account-password-header p {
  margin: 0;
  color: #dbeafe;
}

.account-eyebrow {
  margin-bottom: 0.35rem !important;
  color: #bfdbfe !important;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.account-password-body {
  padding: 24px;
}

.account-password-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  padding-top: 0.35rem;
}

@media (max-width: 575.98px) {
  .account-password-body,
  .account-password-header {
    padding: 18px;
  }

  .account-password-actions .btn {
    width: 100%;
  }
}

.progress-cell {
  min-width: 300px;
  width: 28%;
}

.progress-with-label {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.progress-with-label .progress {
  position: relative;
  min-width: 220px;
  height: 13px;
  overflow: hidden;
  border-radius: 999px;
  background: linear-gradient(90deg, #ef4444 0%, #facc15 50%, #22c55e 100%);
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.12);
}

.progress-with-label .progress::after {
  content: "";
  position: absolute;
  inset: 0 0 0 var(--progress-percent, 0%);
  z-index: 2;
  background: #e5e7eb;
}

.progress-with-label-total .progress::after {
  background: #3b4248;
}

.progress-with-label .progress-bar {
  display: none;
}

.progress-with-label span {
  width: 68px;
  color: inherit;
  font-weight: 800;
  text-align: right;
}

.batch-progress-select {
  position: relative;
  z-index: 20;
}

.batch-progress-select-button {
  position: relative;
  display: flex;
  width: 100%;
  min-height: 38px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0.45rem 0.75rem;
  border: 1px solid #cbd5e1;
  border-radius: 0.375rem;
  color: #0f172a;
  background: #ffffff;
  text-align: left;
}

.batch-progress-select-button:focus {
  border-color: #86b7fe;
  outline: 0;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.batch-progress-select-button svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  color: #475569;
}

.batch-progress-options {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  display: none;
  max-height: 280px;
  overflow-y: auto;
  padding: 6px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.18);
}

.batch-progress-select.is-open .batch-progress-options {
  display: grid;
  gap: 4px;
}

.batch-progress-option {
  position: relative;
  overflow: hidden;
  width: 100%;
  min-height: 38px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 9px;
  color: #0f172a;
  background: #f8fafc;
  text-align: left;
}

.batch-progress-option:hover,
.batch-progress-option:focus {
  border-color: #93c5fd;
  outline: none;
  background: #eef6ff;
}

.batch-progress-option.is-selected {
  border-color: #2563eb;
}

.batch-progress-option-fill {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(239, 68, 68, 0.32) 0%, rgba(250, 204, 21, 0.36) 50%, rgba(34, 197, 94, 0.36) 100%);
}

.batch-progress-option-fill::after {
  content: "";
  position: absolute;
  inset: 0 0 0 var(--progress-percent, 0%);
  background: #f8fafc;
}

.batch-progress-option-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0.55rem 0.7rem;
  font-weight: 650;
}


@media (max-width: 991.98px) {
  .progress-cell {
    min-width: 220px;
  }

  .progress-with-label .progress {
    min-width: 145px;
  }
}

.report-filter-card,
.report-result-card {
  padding: 18px;
}

.report-result-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.report-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 92px;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  color: #1e3a8a;
  font-weight: 800;
  background: #dbeafe;
}

.report-grid {
  margin-bottom: 0;
}

.report-progress-cell {
  min-width: 260px;
}

.report-progress-cell .progress-with-label .progress {
  min-width: 180px;
}

@media (max-width: 767.98px) {
  .report-result-header {
    align-items: flex-start;
    flex-direction: column;
  }
}

.balance-cell {
  min-width: 86px;
}

.pending-download-link {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  color: #0f766e;
  font-weight: 800;
  text-decoration: none;
}

.pending-download-link:hover,
.pending-download-link:focus {
  color: #0d9488;
  text-decoration: underline;
}

.pending-download-link svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
}

#postalCodeMappingModal .modal-content {
  max-height: calc(100vh - 3rem);
}

#postalCodeMappingModal .postal-mapping-form {
  display: flex;
  flex-direction: column;
  max-height: inherit;
  min-height: 0;
}

#postalCodeMappingModal .modal-header,
#postalCodeMappingModal .modal-footer {
  flex-shrink: 0;
}

#postalCodeMappingModal .modal-body {
  overflow-y: auto;
  min-height: 0;
  max-height: calc(100vh - 220px);
}

#postalCodeMappingModal thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #fff;
}

.weekly-monitor-filter .form-label {
  margin-bottom: .25rem;
  font-size: .88rem;
}

.weekly-semaphore-panel {
  max-width: 920px;
  padding: 9px;
  border: 1px solid #dbeafe;
  border-radius: 16px;
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.weekly-semaphore-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 7px;
}

.weekly-semaphore-heading strong {
  color: #0f172a;
  font-size: .95rem;
  white-space: nowrap;
}

.weekly-semaphore-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.weekly-semaphore-card {
  min-width: 0;
  padding: 8px;
  border: 1px solid var(--semaphore-border, #e2e8f0);
  border-radius: 13px;
  background:
    radial-gradient(circle at 92% 12%, var(--semaphore-glow, rgba(148, 163, 184, .16)), transparent 38%),
    #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8);
}

.weekly-semaphore-card-top {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 5px;
  min-width: 0;
  margin-bottom: 3px;
}

.weekly-semaphore-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--semaphore-color, #94a3b8);
  box-shadow: 0 0 0 3px var(--semaphore-glow, rgba(148, 163, 184, .16));
}

.weekly-semaphore-title {
  overflow: hidden;
  color: #475569;
  font-size: .66rem;
  font-weight: 900;
  letter-spacing: .08em;
  line-height: 1;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.weekly-semaphore-status {
  padding: 2px 6px;
  border-radius: 999px;
  color: var(--semaphore-text, #475569);
  font-size: .62rem;
  font-weight: 900;
  line-height: 1.15;
  background: var(--semaphore-soft, #f1f5f9);
  white-space: nowrap;
}

.weekly-semaphore-value {
  display: block;
  overflow: hidden;
  color: #0f172a;
  font-size: 1.18rem;
  line-height: 1.08;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.weekly-semaphore-subtext {
  display: block;
  min-height: 1.05rem;
  margin-top: 2px;
  color: #64748b;
  font-size: .68rem;
  font-weight: 700;
  line-height: 1.18;
  white-space: normal;
}

.weekly-semaphore-progress {
  position: relative;
  height: 7px;
  overflow: hidden;
  margin-top: 6px;
  border-radius: 999px;
  background: #e2e8f0;
}

.weekly-semaphore-progress span {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--semaphore-progress, 0%);
  border-radius: inherit;
  background: linear-gradient(90deg, var(--semaphore-color, #94a3b8), var(--semaphore-text, #64748b));
}

.weekly-semaphore-card.is-green {
  --semaphore-color: #22c55e;
  --semaphore-text: #15803d;
  --semaphore-soft: #dcfce7;
  --semaphore-border: #bbf7d0;
  --semaphore-glow: rgba(34, 197, 94, .18);
}

.weekly-semaphore-card.is-orange {
  --semaphore-color: #f59e0b;
  --semaphore-text: #b45309;
  --semaphore-soft: #fef3c7;
  --semaphore-border: #fde68a;
  --semaphore-glow: rgba(245, 158, 11, .2);
}

.weekly-semaphore-card.is-red {
  --semaphore-color: #ef4444;
  --semaphore-text: #b91c1c;
  --semaphore-soft: #fee2e2;
  --semaphore-border: #fecaca;
  --semaphore-glow: rgba(239, 68, 68, .18);
}

.weekly-semaphore-card.is-neutral {
  --semaphore-color: #94a3b8;
  --semaphore-text: #475569;
  --semaphore-soft: #f1f5f9;
  --semaphore-border: #e2e8f0;
  --semaphore-glow: rgba(148, 163, 184, .18);
}

.weekly-board-card {
  display: grid;
  gap: 14px;
}

.weekly-header-main {
  grid-template-columns: minmax(180px, .45fr) minmax(560px, 1.8fr);
}

.weekly-status-summary {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  min-width: 118px;
  color: #dbeafe;
  font-size: .78rem;
  font-weight: 800;
  text-align: right;
}

.weekly-status-summary span {
  padding: 4px 8px;
  border: 1px solid rgba(191, 219, 254, .22);
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
}

.weekly-table-wrap {
  margin-top: 14px !important;
}

.weekly-grid th,
.weekly-grid td {
  vertical-align: middle;
}

.shipment-status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  padding: .22rem .55rem;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 800;
}

.shipment-status-pill.is-active {
  color: #14532d;
  background: #dcfce7;
  border: 1px solid #bbf7d0;
}

.shipment-status-pill.is-closed {
  color: #334155;
  background: #e2e8f0;
  border: 1px solid #cbd5e1;
}

@media (max-width: 991.98px) {
  .weekly-semaphore-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .weekly-header-main {
    grid-template-columns: 1fr;
  }

  .weekly-status-summary {
    width: 100%;
    flex-direction: row;
    justify-content: flex-start;
    text-align: left;
  }
}

.servilog-nav-container {
  max-width: 1680px;
}

.servilog-navbar {
  background: linear-gradient(90deg, #0b1220 0%, #111827 48%, #102038 100%);
}

.servilog-navbar .navbar-brand {
  margin-right: 1.15rem;
}

.servilog-main-menu {
  gap: .25rem;
  align-items: center;
}

.servilog-main-menu .nav-link {
  position: relative;
  padding: .45rem .7rem !important;
  border-radius: 999px;
  color: rgba(255, 255, 255, .78) !important;
  font-weight: 650;
  letter-spacing: .01em;
  transition: background-color .18s ease, color .18s ease, transform .18s ease;
}

.servilog-main-menu .nav-link:hover,
.servilog-main-menu .nav-link:focus {
  color: #fff !important;
  background: rgba(255, 255, 255, .1);
  transform: translateY(-1px);
}

.parameters-page-card {
  padding: 12px 16px;
}

.parameters-page-card > .d-flex:first-child h1 {
  font-size: 1.55rem;
  line-height: 1.1;
}

.parameters-page-card > .d-flex:first-child p {
  line-height: 1.25;
}

.parameter-panel {
  padding: 10px 12px;
  border: 1px solid #dbeafe;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: 0 12px 28px rgba(15, 23, 42, .06);
}

.parameter-panel-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 7px;
  margin-bottom: 8px;
  border-bottom: 1px solid #e2e8f0;
}

.parameter-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border-radius: 11px;
  color: #dbeafe;
  font-weight: 900;
  background: #12233d;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.12);
}

.parameter-check {
  min-height: 38px;
  padding: .45rem .75rem .45rem 2.1rem;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
}

.parameters-page-card .form-label {
  margin-bottom: .2rem;
}

.parameters-page-card .form-control {
  min-height: 38px;
  padding-top: .42rem;
  padding-bottom: .42rem;
}

.parameters-page-card .btn {
  min-height: 38px;
}

.parameters-page-card .validation-stable span[data-valmsg-for] {
  min-height: .72rem;
  margin-top: .05rem;
  font-size: .72rem;
  line-height: .72rem;
}

.parameters-page-card .validation-stable span[data-valmsg-for].field-validation-valid {
  display: none;
}

.parameter-save-action {
  align-self: end;
}

.parameter-grid th,
.parameter-grid td {
  padding-top: .42rem;
  padding-bottom: .42rem;
  vertical-align: middle;
}

.parameter-grid .btn-sm {
  min-height: 32px;
  padding-top: .22rem;
  padding-bottom: .22rem;
}

.base-search-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid #dbeafe;
  border-radius: 16px;
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.base-search-box {
  position: relative;
  flex: 1 1 auto;
  min-width: 240px;
}

.base-search-box svg {
  position: absolute;
  top: 50%;
  left: 13px;
  width: 18px;
  height: 18px;
  color: #64748b;
  transform: translateY(-50%);
  pointer-events: none;
}

.base-search-box .form-control {
  padding-left: 42px;
  border-color: #cbd5e1;
  border-radius: 12px;
}

.base-search-meta {
  flex: 0 0 auto;
  color: #475569;
  font-size: 0.88rem;
  font-weight: 700;
  white-space: nowrap;
}

.base-search-meta span {
  color: #1d4ed8;
  font-weight: 900;
}

.base-search-empty {
  padding: 18px;
  border: 1px solid #dbeafe;
  border-top: 0;
  color: #64748b;
  font-weight: 700;
  text-align: center;
  background: #f8fafc;
}

@media (max-width: 767.98px) {
  .base-search-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .base-search-meta {
    white-space: normal;
  }
}

@media (max-width: 575.98px) {
  .weekly-semaphore-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767.98px) {
  .servilog-main-menu {
    align-items: stretch;
    gap: .35rem;
    padding-top: .75rem;
  }
}


@media (min-width: 992px) {
  .servilog-navbar .navbar-collapse {
    position: relative;
  }

  .servilog-main-menu {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    flex-grow: 0 !important;
    justify-content: center;
    white-space: nowrap;
  }
}

@media (min-width: 992px) {
  .servilog-navbar .navbar-collapse > .navbar-nav:not(.servilog-main-menu) {
    margin-left: auto;
    position: relative;
    z-index: 2;
  }

  .servilog-navbar .navbar-brand {
    position: relative;
    z-index: 2;
  }
}

.mail-confirmation-modal .modal-dialog {
    max-width: 640px;
}

.mail-confirmation-modal .modal-header {
    padding: .9rem 1rem .35rem;
}

.mail-confirmation-modal .modal-body {
    padding: .55rem 1rem .75rem;
}

.mail-confirmation-modal .modal-footer {
    padding: .35rem 1rem .9rem;
}

.mail-confirmation-modal .form-label {
    margin-bottom: .2rem;
    font-size: .86rem;
}

.mail-modal-section {
    margin-bottom: .65rem;
}

.mail-preview-recipients {
    display: flex;
    flex-wrap: wrap;
    gap: .3rem;
    min-height: 2rem;
    padding: .28rem .45rem;
    border: 1px solid #ced4da;
    border-radius: .375rem;
    background: #f8f9fa;
}

.mail-recipient-badge {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    padding: .18rem .48rem;
    border-radius: 999px;
    color: #0f2a4d;
    background: #e7f0ff;
    border: 1px solid #b9d4ff;
    font-size: .8rem;
    font-weight: 600;
}

.mail-body-preview {
    min-height: 7.25rem;
    white-space: pre-wrap;
    font-family: inherit;
    font-size: .9rem;
}

.mail-attachment-preview {
    display: flex;
    align-items: center;
    gap: .55rem;
    padding: .5rem .65rem;
    border: 1px solid #bfe5d1;
    border-radius: .65rem;
    background: #f0fbf5;
    color: #123f2a;
}

.mail-attachment-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: .7rem;
    background: linear-gradient(135deg, #e9fbf1 0%, #d4f4e1 100%);
    border: 1px solid #9edbb8;
    color: #198754;
    flex: 0 0 auto;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .75);
}

.mail-attachment-icon svg {
    width: 1.65rem;
    height: 1.65rem;
    display: block;
}

.mail-attachment-sheet {
    fill: #ffffff;
    stroke: #198754;
    stroke-width: 1.7;
    stroke-linejoin: round;
}

.mail-attachment-fold {
    fill: #d8f3e4;
    stroke: #198754;
    stroke-width: 1.7;
    stroke-linejoin: round;
}

.mail-attachment-panel {
    fill: #198754;
    rx: 2;
}

.mail-attachment-x {
    fill: none;
    stroke: #ffffff;
    stroke-width: 2;
    stroke-linecap: round;
}

/* Admin · user creation */
.user-create-shell {
  width: min(100%, 1680px);
  margin: 0 auto;
}

.user-create-page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}

.user-create-eyebrow,
.user-create-section-kicker {
  display: block;
  margin-bottom: 4px;
  color: #2563eb;
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.user-create-page-header h1 {
  margin: 0;
  color: #0f172a;
  font-size: clamp(1.75rem, 2.4vw, 2.3rem);
  font-weight: 750;
  letter-spacing: -.035em;
}

.user-create-page-header p {
  margin: 5px 0 0;
  color: #64748b;
  font-size: .95rem;
}

.user-create-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
}

.user-create-back svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.user-create-card {
  overflow: hidden;
  border: 1px solid #dbe4ef;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 20px 50px rgba(15, 23, 42, .08);
}

.user-create-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 24px;
  color: #fff;
  background:
    radial-gradient(circle at 85% -30%, rgba(56, 189, 248, .28), transparent 38%),
    linear-gradient(112deg, #0b1830 0%, #12365d 68%, #0d6078 100%);
}

.user-create-card-heading {
  display: flex;
  align-items: center;
  gap: 13px;
}

.user-create-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border: 1px solid rgba(186, 230, 253, .28);
  border-radius: 14px;
  color: #bae6fd;
  background: rgba(255, 255, 255, .08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12);
}

.user-create-card-icon svg,
.user-create-role-summary-icon svg,
.user-create-base-pin svg,
.user-create-card-footer svg,
.user-create-submit svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.user-create-card-header .user-create-section-kicker {
  margin: 0 0 2px;
  color: #7dd3fc;
}

.user-create-card-header h2 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 750;
}

.user-create-card-body {
  padding: 8px 24px 4px;
}

.user-create-validation.validation-summary-valid {
  display: none;
}

.user-create-validation {
  margin: 16px 0 8px;
}

.user-create-section {
  padding: 22px 0;
  border-bottom: 1px solid #e8eef5;
}

.user-create-section:last-child {
  border-bottom: 0;
}

.user-create-section-heading,
.user-create-section-heading > div {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-create-section-heading {
  justify-content: space-between;
  margin-bottom: 17px;
}

.user-create-section-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border: 1px solid #bfdbfe;
  border-radius: 11px;
  color: #1d4ed8;
  font-size: .72rem;
  font-weight: 900;
  background: #eff6ff;
}

.user-create-section-heading h3 {
  margin: 0;
  color: #172033;
  font-size: 1rem;
  font-weight: 800;
}

.user-create-section-heading p {
  margin: 2px 0 0;
  color: #64748b;
  font-size: .82rem;
  line-height: 1.35;
}

.user-create-access-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.user-create-field .form-label,
.user-create-role-field .form-label {
  margin-bottom: 6px;
  color: #26364d;
  font-size: .84rem;
  font-weight: 750;
}

.user-create-input-wrap {
  position: relative;
}

.user-create-input-wrap > svg {
  position: absolute;
  top: 50%;
  left: 13px;
  width: 18px;
  height: 18px;
  color: #718096;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  transform: translateY(-50%);
  pointer-events: none;
}

.user-create-input-wrap .form-control,
.user-create-role-field .form-select {
  min-height: 44px;
  border-color: #cbd5e1;
  border-radius: 11px;
  color: #172033;
  background-color: #fff;
  transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.user-create-input-wrap .form-control {
  padding-left: 42px;
}

.user-create-input-wrap .form-control:focus,
.user-create-role-field .form-select:focus {
  border-color: #60a5fa;
  background-color: #fbfdff;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, .14);
}

.user-create-field .form-text {
  min-height: 1.1rem;
  margin-top: 5px;
  color: #718096;
  font-size: .74rem;
  line-height: 1.3;
}

.user-create-field .text-danger,
.user-create-role-field .text-danger,
.user-create-bases-error {
  display: block;
  margin-top: 4px;
  font-size: .76rem;
  font-weight: 650;
}

.user-create-role-layout {
  display: grid;
  grid-template-columns: minmax(260px, 380px) minmax(340px, 1fr);
  align-items: end;
  gap: 18px;
}

.user-create-role-field .form-select {
  width: 100%;
}

.user-create-role-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 70px;
  padding: 12px 15px;
  border: 1px solid #dbeafe;
  border-radius: 13px;
  background: linear-gradient(135deg, #f8fbff 0%, #f1f7ff 100%);
}

.user-create-role-summary-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border-radius: 11px;
  color: #1d4ed8;
  background: #dbeafe;
}

.user-create-role-summary strong,
.user-create-role-summary span {
  display: block;
}

.user-create-role-summary strong {
  margin-bottom: 2px;
  color: #1e3a5f;
  font-size: .86rem;
}

.user-create-role-summary span:not(.user-create-role-summary-icon) {
  color: #58708d;
  font-size: .78rem;
  line-height: 1.35;
}

.user-create-base-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  flex-wrap: wrap;
}

.user-create-selection-count {
  margin-right: 5px;
  padding: 5px 9px;
  border-radius: 999px;
  color: #1e40af;
  font-size: .72rem;
  font-weight: 800;
  background: #dbeafe;
}

.user-create-base-actions .btn-link {
  padding: 4px 7px;
  font-size: .76rem;
  font-weight: 700;
  text-decoration: none;
}

.user-create-base-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.user-create-base-option {
  position: relative;
}

.user-create-base-option .form-check-input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
}

.user-create-base-option label {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 7px 10px;
  border: 1px solid #dce4ee;
  border-radius: 11px;
  color: #334155;
  font-size: .78rem;
  font-weight: 700;
  background: #fff;
  cursor: pointer;
  transition: border-color 150ms ease, background-color 150ms ease, color 150ms ease, box-shadow 150ms ease;
}

.user-create-base-option label:hover {
  border-color: #93c5fd;
  background: #f8fbff;
}

.user-create-base-option .form-check-input:focus + label {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, .16);
}

.user-create-base-option .form-check-input:checked + label {
  border-color: #60a5fa;
  color: #17448a;
  background: #eff6ff;
  box-shadow: inset 0 0 0 1px rgba(59, 130, 246, .08);
}

.user-create-base-pin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 25px;
  height: 25px;
  flex: 0 0 auto;
  border-radius: 8px;
  color: #64748b;
  background: #f1f5f9;
}

.user-create-base-pin svg {
  width: 14px;
  height: 14px;
}

.user-create-base-option .form-check-input:checked + label .user-create-base-pin {
  color: #fff;
  background: #2563eb;
}

.user-create-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 24px;
  border-top: 1px solid #dfe7f0;
  background: #f8fafc;
}

.user-create-card-footer p {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: #64748b;
  font-size: .79rem;
}

.user-create-card-footer p svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  color: #3b82f6;
}

.user-create-footer-actions {
  display: flex;
  gap: 9px;
}

.user-create-footer-actions .btn {
  min-height: 41px;
  padding-right: 16px;
  padding-left: 16px;
}

.user-create-submit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 8px 18px rgba(37, 99, 235, .2);
}

.user-create-submit svg {
  width: 18px;
  height: 18px;
}

/* Admin · user directory */
.user-admin-shell {
  width: min(100%, 1680px);
  margin: 0 auto;
}

.user-admin-page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}

.user-admin-page-header h1 {
  margin: 0;
  color: #0f172a;
  font-size: clamp(1.75rem, 2.4vw, 2.3rem);
  font-weight: 750;
  letter-spacing: -.035em;
}

.user-admin-page-header p {
  margin: 5px 0 0;
  color: #64748b;
  font-size: .95rem;
}

.user-admin-create {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding-right: 17px;
  padding-left: 17px;
  box-shadow: 0 9px 20px rgba(37, 99, 235, .2);
}

.user-admin-create svg,
.user-admin-card-header svg,
.user-admin-transfer-icon svg,
.welcome-email-modal svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.user-admin-alert.validation-summary-valid {
  display: none;
}

.user-admin-card {
  overflow: hidden;
  border: 1px solid #dbe4ef;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 20px 50px rgba(15, 23, 42, .08);
}

.user-admin-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 24px;
  color: #fff;
  background:
    radial-gradient(circle at 85% -30%, rgba(56, 189, 248, .28), transparent 38%),
    linear-gradient(112deg, #0b1830 0%, #12365d 68%, #0d6078 100%);
}

.user-admin-card-header .user-create-section-kicker {
  margin: 0 0 2px;
  color: #7dd3fc;
}

.user-admin-card-header h2 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 750;
}

.user-admin-count {
  padding: 7px 11px;
  border: 1px solid rgba(186, 230, 253, .24);
  border-radius: 999px;
  color: #dff6ff;
  font-size: .78rem;
  font-weight: 750;
  background: rgba(255, 255, 255, .08);
  white-space: nowrap;
}

.user-admin-search-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 24px;
  border-bottom: 1px solid #e4ebf3;
  background: #fff;
}

.user-admin-search-field {
  position: relative;
  width: min(100%, 420px);
}

.user-admin-search-field svg {
  position: absolute;
  top: 50%;
  left: 14px;
  z-index: 1;
  width: 18px;
  height: 18px;
  color: #64748b;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  pointer-events: none;
  transform: translateY(-50%);
}

.user-admin-search-field .form-control {
  min-height: 42px;
  padding-left: 42px;
  border-color: #cfdbea;
  border-radius: 12px;
  color: #17233a;
  background: #f8fafc;
  box-shadow: none;
}

.user-admin-search-field .form-control:focus {
  border-color: #60a5fa;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, .14);
}

.user-admin-search-hint {
  color: #718096;
  font-size: .78rem;
}

.user-admin-table {
  min-width: 1040px;
  color: #26364d;
}

.user-admin-table thead th {
  padding: 13px 16px;
  border-bottom: 1px solid #d8e2ed;
  color: #566981;
  background: #f7f9fc;
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: .055em;
  text-transform: uppercase;
  white-space: nowrap;
}

.user-admin-table tbody td {
  padding: 12px 16px;
  border-color: #e8eef5;
  font-size: .86rem;
  vertical-align: middle;
}

.user-admin-table tbody tr:last-child td {
  border-bottom: 0;
}

.user-admin-table tbody tr:hover td {
  background: #fbfdff;
}

.user-admin-empty-search td {
  padding: 36px 20px !important;
  background: #fff !important;
  text-align: center;
}

.user-admin-empty-search td > div {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 5px;
  color: #718096;
}

.user-admin-empty-search svg {
  width: 28px;
  height: 28px;
  margin-bottom: 3px;
  color: #3b82f6;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
}

.user-admin-empty-search strong {
  color: #26364d;
  font-size: .9rem;
}

.user-admin-empty-search span {
  font-size: .8rem;
}

.user-admin-identity-cell {
  min-width: 280px;
}

.user-admin-user-line,
.user-admin-user-name {
  display: flex;
  align-items: center;
}

.user-admin-user-line {
  gap: 11px;
}

.user-admin-user-name {
  gap: 8px;
  color: #162238;
}

.user-admin-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  border: 1px solid #cfe0f5;
  border-radius: 11px;
  color: #1d4ed8;
  font-size: .8rem;
  font-weight: 850;
  background: linear-gradient(135deg, #eff6ff, #e0ecff);
}

.user-admin-email {
  display: block;
  max-width: 300px;
  margin-top: 2px;
  overflow: hidden;
  color: #718096;
  font-size: .75rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-admin-state {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 800;
}

.user-admin-state > span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.user-admin-state.is-active {
  color: #166534;
  background: #dcfce7;
}

.user-admin-state.is-active > span {
  background: #22c55e;
}

.user-admin-state.is-inactive {
  color: #475569;
  background: #e2e8f0;
}

.user-admin-state.is-inactive > span {
  background: #64748b;
}

.user-admin-row-actions {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.user-admin-row-actions .btn {
  border-radius: 9px;
  white-space: nowrap;
}

.user-admin-transfer {
  display: grid;
  grid-template-columns: minmax(300px, .85fr) minmax(560px, 1.35fr);
  align-items: center;
  gap: 28px;
  padding: 20px 24px;
  border: 1px solid #f0d391;
  border-radius: 18px;
  background: linear-gradient(120deg, #fffdf7 0%, #fff9e9 100%);
  box-shadow: 0 14px 36px rgba(120, 77, 12, .07);
}

.user-admin-transfer-heading {
  display: flex;
  align-items: flex-start;
  gap: 13px;
}

.user-admin-transfer-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border: 1px solid #f2cf7c;
  border-radius: 13px;
  color: #9a6200;
  background: #fff1c9;
}

.user-admin-transfer-heading .user-create-section-kicker {
  color: #9a6200;
}

.user-admin-transfer-heading h2 {
  margin: 0;
  color: #2a3548;
  font-size: 1.05rem;
  font-weight: 800;
}

.user-admin-transfer-heading p {
  margin: 4px 0 0;
  color: #71664d;
  font-size: .79rem;
  line-height: 1.4;
}

.user-admin-transfer-form {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto auto;
  align-items: end;
  gap: 14px;
}

.user-admin-transfer-select .form-label {
  margin-bottom: 6px;
  color: #4b5563;
  font-size: .8rem;
  font-weight: 750;
}

.user-admin-transfer-select .form-select {
  min-height: 42px;
  border-color: #dccb9f;
  border-radius: 10px;
}

.user-admin-transfer-confirmation {
  margin-bottom: 9px;
  white-space: nowrap;
}

.user-admin-transfer-confirmation label {
  color: #574d39;
  font-size: .78rem;
}

.user-admin-transfer-submit {
  min-height: 42px;
  border-radius: 10px;
  font-weight: 750;
}

.welcome-email-modal .modal-dialog {
  max-width: 650px;
}

.welcome-email-intro {
  margin-bottom: 18px;
  color: #475569;
  line-height: 1.55;
}

.welcome-email-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  border: 1px solid #bfdbfe;
  border-radius: 13px;
  color: #1e3a5f;
  background: #eff6ff;
}

.welcome-email-note > svg {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  color: #2563eb;
}

.welcome-email-note strong,
.welcome-email-note span {
  display: block;
}

.welcome-email-note strong {
  margin-bottom: 3px;
  font-size: .86rem;
}

.welcome-email-note span {
  color: #58708d;
  font-size: .78rem;
  line-height: 1.4;
}

.welcome-email-actions .btn:last-child {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.welcome-email-actions .btn:last-child svg {
  width: 17px;
  height: 17px;
}

@media (max-width: 991.98px) {
  .user-create-access-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .user-create-access-grid .user-create-field:last-child {
    grid-column: 1 / -1;
  }

  .user-create-role-layout {
    grid-template-columns: minmax(240px, .8fr) 1.2fr;
  }

  .user-create-base-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .user-admin-transfer {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767.98px) {
  .user-create-page-header,
  .user-admin-page-header,
  .user-create-card-footer,
  .user-create-bases-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .user-create-page-header {
    gap: 14px;
  }

  .user-admin-page-header {
    align-items: flex-start;
    gap: 14px;
  }

  .user-create-back {
    align-self: flex-start;
  }

  .user-create-card-header,
  .user-admin-card-header,
  .user-admin-search-bar,
  .user-create-card-body,
  .user-create-card-footer {
    padding-right: 16px;
    padding-left: 16px;
  }

  .user-create-access-grid,
  .user-create-role-layout {
    grid-template-columns: 1fr;
  }

  .user-create-access-grid .user-create-field:last-child {
    grid-column: auto;
  }

  .user-create-role-field {
    max-width: none;
  }

  .user-create-base-actions {
    justify-content: flex-start;
  }

  .user-create-base-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .user-create-card-footer p {
    align-items: flex-start;
  }

  .user-create-footer-actions {
    justify-content: flex-end;
  }

  .user-admin-transfer {
    padding: 18px 16px;
  }

  .user-admin-transfer-form {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .user-admin-transfer-confirmation {
    margin: 0;
    white-space: normal;
  }

  .user-admin-transfer-submit {
    justify-self: start;
  }

  .user-admin-search-hint {
    display: none;
  }

  .user-admin-search-field {
    width: 100%;
  }

  .welcome-email-actions {
    align-items: stretch;
  }

  .welcome-email-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 479.98px) {
  .user-create-card-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .user-admin-card-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .user-admin-create,
  .user-admin-transfer-submit {
    width: 100%;
    justify-content: center;
  }

  .user-create-base-grid {
    grid-template-columns: 1fr;
  }

  .user-create-footer-actions,
  .user-create-footer-actions .btn {
    width: 100%;
  }

  .user-create-footer-actions {
    flex-direction: column-reverse;
  }

  .user-create-footer-actions .btn {
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .user-create-input-wrap .form-control,
  .user-create-role-field .form-select,
  .user-create-base-option label {
    transition: none;
  }
}


.mail-attachment-preview strong,
.mail-attachment-preview span {
    display: block;
}

.mail-attachment-preview span {
    color: #5f756a;
    font-size: .8rem;
}
