* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #f4f5f7;
  color: #20242c;
  font-family: Arial, sans-serif;
}

body.neb_login_page {
  background:
    linear-gradient(135deg, rgba(16, 64, 32, 0.08), rgba(240, 176, 0, 0.1)),
    #f4f5f7;
  min-height: 100vh;
}

a {
  color: #202050;
}

.neb_header {
  align-items: center;
  background: #202050;
  border-bottom: 4px solid #f0b000;
  color: #ffffff;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  min-height: 72px;
  padding: 14px 24px;
}

.neb_brand {
  align-items: center;
  color: #ffffff;
  display: flex;
  gap: 12px;
  min-width: 0;
  text-decoration: none;
}

.neb_brand strong {
  font-size: 1.65rem;
  font-weight: 700;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.neb_brand_link {
  cursor: pointer;
}

.neb_brand_link:hover {
  color: #ffffff;
  opacity: 0.9;
}

.neb_brand_link:focus-visible {
  border-radius: 4px;
  outline: 3px solid #f0b000;
  outline-offset: 4px;
}

.neb_logo {
  display: block;
  height: 42px;
  object-fit: contain;
  width: 42px;
}

.neb_menu {
  flex: 0 0 auto;
  position: relative;
}

.neb_menu_button {
  align-items: center;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.72);
  display: inline-flex;
  font-size: 1.45rem;
  height: 44px;
  justify-content: center;
  line-height: 1;
  min-width: 48px;
  padding: 6px 10px;
}

.neb_menu_button:hover,
.neb_menu_button:focus-visible {
  background: rgba(255, 255, 255, 0.14);
}

.neb_menu_dropdown {
  background: #ffffff;
  border: 1px solid #c9ccd8;
  border-radius: 7px;
  box-shadow: 0 12px 30px rgba(20, 20, 40, 0.22);
  display: grid;
  min-width: 260px;
  padding: 7px;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 100;
}

.neb_menu_dropdown[hidden] {
  display: none;
}

.neb_menu_dropdown a,
.neb_menu_dropdown button {
  background: transparent;
  border-radius: 5px;
  color: #20242c;
  display: block;
  font-weight: 700;
  min-height: 40px;
  padding: 10px 12px;
  text-align: left;
  text-decoration: none;
  width: 100%;
}

.neb_menu_dropdown a:hover,
.neb_menu_dropdown button:hover,
.neb_menu_dropdown a:focus-visible,
.neb_menu_dropdown button:focus-visible {
  background: #eef0f6;
  color: #202050;
}

.neb_menu_dropdown form {
  margin: 0;
}

.neb_menu_separator {
  border-top: 1px solid #dedee8;
  margin: 6px 4px;
}

.neb_main,
.neb_auth {
  margin: 36px auto;
  max-width: 1320px;
  padding: 0 24px;
}

.neb_main_wide {
  max-width: none;
  width: 100%;
}

.neb_auth {
  max-width: 460px;
}

.neb_login_shell {
  align-items: center;
  display: flex;
  justify-content: center;
  min-height: calc(100vh - 92px);
  padding: 28px 16px;
}

.neb_login_card {
  background: #ffffff;
  border: 1px solid #dedee8;
  border-radius: 12px;
  border-top: 8px solid #104020;
  box-shadow: 0 18px 48px rgba(20, 20, 40, 0.16);
  max-width: 430px;
  overflow: hidden;
  padding: 34px;
  position: relative;
  width: 100%;
}

.neb_login_card::before {
  background: #f0b000;
  content: "";
  height: 4px;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
}

.neb_login_logo {
  display: block;
  height: 82px;
  margin: 0 auto 20px;
  object-fit: contain;
  width: min(210px, 70%);
}

.neb_login_card h1 {
  font-size: 1.75rem;
  margin-bottom: 8px;
  text-align: center;
}

.neb_login_card p {
  color: #565b66;
  font-weight: 700;
  margin: 0 0 24px;
  text-align: center;
}

.neb_login_form {
  display: grid;
  gap: 12px;
}

.neb_login_form button {
  font-size: 1.05rem;
  margin-top: 6px;
  min-height: 50px;
}

.neb_card,
.neb_form,
.neb_board_header {
  background: #ffffff;
  border: 1px solid #dedee8;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(20, 20, 40, 0.08);
}

.neb_card,
.neb_board_header {
  padding: 24px;
}

h1,
h2 {
  color: #202050;
  line-height: 1.2;
  margin: 0 0 14px;
}

h1 {
  font-size: 2rem;
}

h2 {
  font-size: 1.35rem;
}

p {
  line-height: 1.5;
}

.neb_form {
  display: grid;
  gap: 12px;
  padding: 24px;
}

label {
  font-weight: 700;
}

input,
select,
textarea {
  border: 1px solid #b9b9c8;
  border-radius: 6px;
  font: inherit;
  min-height: 44px;
  padding: 10px 12px;
  width: 100%;
}

textarea {
  min-height: 96px;
  resize: vertical;
}

button {
  background: #104020;
  border: 0;
  border-radius: 6px;
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  padding: 12px 16px;
  text-decoration: none;
}

button:hover {
  background: #185c30;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.neb_error {
  background: #fff4d6;
  border: 1px solid #f0b000;
  border-radius: 6px;
  color: #3a2b00;
  padding: 10px 12px;
}

.neb_error p {
  margin: 0 0 6px;
}

.neb_error p:last-child {
  margin-bottom: 0;
}

.neb_success {
  background: #e3f5e8;
  border-color: #82c493;
}

.neb_flash {
  background: #e3f5e8;
  border: 1px solid #82c493;
  border-radius: 8px;
  color: #104020;
  font-weight: 800;
  margin-bottom: 18px;
  padding: 12px 14px;
}

.neb_toast {
  background: #ffffff;
  border: 1px solid #82c493;
  border-left: 5px solid #104020;
  border-radius: 7px;
  bottom: 18px;
  box-shadow: 0 8px 24px rgba(20, 20, 40, 0.18);
  color: #104020;
  font-size: 0.9rem;
  font-weight: 700;
  max-width: min(360px, calc(100vw - 28px));
  padding: 10px 13px;
  position: fixed;
  right: 18px;
  z-index: 90;
}

.neb_board_header {
  align-items: center;
  border-left: 8px solid #104020;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 18px;
}

.neb_board_header p {
  margin: 0;
}

.neb_filter_form {
  background: #ffffff;
  border: 1px solid #dedee8;
  border-left: 6px solid #202050;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(20, 20, 40, 0.08);
  margin-bottom: 18px;
  padding: 10px 14px;
}

.neb_filter_form .neb_filter_bar + .neb_filter_bar {
  border-top: 1px solid #e4e5eb;
  margin-top: 7px;
  padding-top: 7px;
}

.neb_filter_bar {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.neb_filter_title {
  color: #202050;
  font-weight: 800;
  line-height: 1.25;
  white-space: nowrap;
}

.neb_filter_options {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
}

.neb_filter_option {
  align-items: center;
  cursor: pointer;
  display: inline-flex;
  gap: 5px;
  min-height: 28px;
}

.neb_filter_option input {
  accent-color: #104020;
  appearance: auto;
  cursor: pointer;
  height: 16px;
  margin: 0;
  min-height: 0;
  padding: 0;
  width: 16px;
}

.neb_filter_option input[type="radio"] {
  border-radius: 50%;
}

.neb_filter_option span {
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.neb_primary_link {
  align-items: center;
  background: #104020;
  border-radius: 6px;
  color: #ffffff;
  display: inline-flex;
  font-weight: 700;
  min-height: 46px;
  padding: 12px 16px;
  text-decoration: none;
}

.neb_primary_link:hover {
  background: #185c30;
}

.neb_secondary_link {
  align-items: center;
  background: #202050;
  border-radius: 6px;
  color: #ffffff;
  display: inline-flex;
  font-weight: 700;
  min-height: 44px;
  padding: 12px 16px;
  text-decoration: none;
}

.neb_secondary_link:hover {
  background: #2f3070;
}

.neb_empty {
  background: #f9fafb;
  border: 2px dashed #c9ccd8;
  border-radius: 8px;
  padding: 32px;
  text-align: center;
}

.neb_empty p {
  margin-bottom: 0;
}

.neb_invitation_grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(340px, 360px));
  justify-content: start;
  margin-top: 18px;
}

.neb_invitation_card {
  align-self: stretch;
  background: #ffffff;
  border: 1px solid #dedee8;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(20, 20, 40, 0.08);
  display: grid;
  grid-template-rows: auto 1fr;
  max-width: 360px;
  min-width: 0;
  overflow: hidden;
  width: 100%;
}

.neb_thumbnail_link,
.neb_detail_thumbnail {
  background: #eef0f6;
  display: block;
}

.neb_thumbnail_link {
  aspect-ratio: 1 / 1.414;
  border-bottom: 1px solid #dedee8;
  overflow: hidden;
  padding: 12px;
}

.neb_thumbnail_link img {
  background: #ffffff;
  box-shadow: 0 1px 4px rgba(20, 20, 40, 0.16);
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center top;
  width: 100%;
}

.neb_detail_thumbnail img {
  background: #ffffff;
  display: block;
  max-height: 720px;
  object-fit: contain;
  object-position: center top;
  width: 100%;
}

.neb_invitation_body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
}

.neb_invitation_meta_block {
  align-content: start;
  display: grid;
  gap: 5px;
  height: 112px;
  overflow: hidden;
}

.neb_invitation_body h2 {
  display: -webkit-box;
  font-size: 1.12rem;
  line-height: 1.25;
  margin-bottom: 0;
  min-height: 3.75em;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.neb_invitation_body h2 a {
  text-decoration: none;
}

.neb_invitation_body h2 a:hover {
  text-decoration: underline;
}

.neb_invitation_body p {
  margin: 0;
}

.neb_event_time_place {
  color: #20242c;
  display: -webkit-box;
  font-weight: 700;
  line-height: 1.3;
  min-height: 2.6em;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.neb_meta {
  color: #606070;
  display: -webkit-box;
  font-size: 0.84rem;
  line-height: 1.25;
  min-height: 2.1em;
  overflow: hidden;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.neb_card_deadline {
  align-items: center;
  color: #343947;
  display: flex;
  font-size: 0.9rem;
  font-weight: 700;
  height: 2.6em;
  line-height: 1.25;
  overflow: hidden;
}

.neb_card_remark {
  color: #565b66;
  display: -webkit-box;
  font-size: 0.9rem;
  line-height: 1.35;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.neb_recalculate_form {
  border-top: 1px solid #dedee8;
  margin-top: 18px;
  padding-top: 16px;
}

.neb_status {
  background: #fff4d6;
  border-radius: 999px;
  color: #3a2b00;
  display: inline-flex;
  font-size: 0.9rem;
  font-weight: 700;
  justify-self: start;
  padding: 5px 10px;
}

.neb_status_row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.neb_status_warning {
  background: #ffe4e0;
  color: #5c140c;
}

.neb_fact_list {
  background: #f7f8fb;
  border: 1px solid #d7dbe6;
  border-radius: 7px;
  display: grid;
  gap: 8px;
  margin: 0;
  min-height: 104px;
  padding: 10px 12px;
}

.neb_fact_list--light-grey {
  background: #f3f4f6;
  border-color: #d6d9e1;
}

.neb_fact_list--green {
  background: #e7f4ea;
  border-color: #9cc9a6;
}

.neb_fact_list--red {
  background: #fde8e4;
  border-color: #e0a298;
}

.neb_fact_list--yellow {
  background: #fff5d8;
  border-color: #e1c475;
}

.neb_fact_list--dark-grey {
  background: #d9dde4;
  border-color: #8a93a3;
}

.neb_fact_list_detail {
  margin-top: 14px;
}

.neb_fact_row {
  align-items: baseline;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(96px, max-content) minmax(0, 1fr);
}

.neb_fact_row dt {
  color: #565b66;
  font-size: 0.86rem;
  font-weight: 800;
  margin: 0;
}

.neb_fact_row dd {
  color: #20242c;
  font-size: 0.92rem;
  font-weight: 700;
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}

.neb_work_state {
  align-items: center;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(32, 36, 44, 0.14);
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.82rem;
  font-weight: 800;
  min-height: 28px;
  padding: 4px 10px;
}

.neb_work_state_open {
  color: #20242c;
}

.neb_work_state_register {
  color: #104020;
}

.neb_work_state_cancel {
  color: #7a170c;
}

.neb_work_state_review {
  color: #5f4300;
}

.neb_work_state_done {
  color: #404653;
}

.neb_card_actions {
  align-self: end;
  display: grid;
  gap: 9px;
  margin-top: auto;
  padding-top: 2px;
  width: 100%;
}

.neb_card_action_grid,
.neb_bearbeiter_action_grid {
  width: 100%;
}

.neb_card_actions form,
.neb_bearbeiter_action_grid form,
.neb_card_action_grid form {
  margin: 0;
}

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

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

.neb_bearbeiter_action_grid {
  display: grid;
  gap: 8px;
  grid-auto-rows: 58px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.neb_bearbeiter_action_grid > form,
.neb_bearbeiter_action_grid > button,
.neb_bearbeiter_action_grid button {
  height: 100%;
  min-height: 58px;
  width: 100%;
}

.neb_button_bearbeiter {
  background: #202050;
}

.neb_button_bearbeiter:hover {
  background: #2f3070;
}

.neb_card_action_grid button,
.neb_card_detail_link {
  align-items: center;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  font-size: 0.88rem;
  font-weight: 800;
  justify-content: center;
  line-height: 1.15;
  height: 58px;
  min-height: 58px;
  overflow-wrap: anywhere;
  padding: 8px 10px;
  text-align: center;
  width: 100%;
}

.neb_card_action_grid small {
  color: rgba(255, 255, 255, 0.86);
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.15;
  margin-top: 1px;
}

.neb_card_action_grid button:disabled,
.neb_action_grid button:disabled,
.neb_card_action_grid button[aria-disabled="true"],
.neb_action_grid button[aria-disabled="true"] {
  background: #b8bec9;
  color: #eef1f5;
  cursor: not-allowed;
  opacity: 1;
  box-shadow: none;
}

.neb_card_action_grid button:disabled:hover,
.neb_action_grid button:disabled:hover,
.neb_card_action_grid button[aria-disabled="true"]:hover,
.neb_action_grid button[aria-disabled="true"]:hover {
  background: #b8bec9;
}

.neb_card_action_grid button:disabled small,
.neb_action_grid button:disabled small,
.neb_card_action_grid button[aria-disabled="true"] small,
.neb_action_grid button[aria-disabled="true"] small {
  color: rgba(255, 255, 255, 0.82);
}

.neb_card_detail_link {
  background: #202050;
  color: #ffffff;
  text-decoration: none;
}

.neb_card_detail_link:hover {
  background: #2f3070;
}

.neb_status_success {
  background: #e3f5e8;
  color: #104020;
}

.neb_status_failed {
  background: #ffd9d2;
  color: #7a170c;
}

.neb_result_table td {
  vertical-align: top;
}

.neb_result_messages {
  margin: 0;
  padding-left: 18px;
}

.neb_result_messages li + li {
  margin-top: 4px;
}

.neb_table_wrap {
  overflow-x: auto;
}

.neb_help {
  color: #606070;
  font-size: 0.95rem;
  margin: -4px 0 6px;
}

.neb_form_actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 8px;
}

.neb_inline_form {
  box-shadow: none;
  margin-top: 16px;
  padding: 0;
}

.neb_maintenance_grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.neb_admin_page_header {
  align-items: center;
  background: #ffffff;
  border: 1px solid #dedee8;
  border-left: 8px solid #104020;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(20, 20, 40, 0.08);
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin-bottom: 18px;
  padding: 20px 24px;
}

.neb_admin_page_header h1,
.neb_admin_page_header p {
  margin-bottom: 0;
}

.neb_admin_form_card {
  margin-inline: auto;
  max-width: 720px;
}

.neb_admin_user_form {
  display: grid;
  gap: 12px;
}

.neb_admin_user_form input[readonly] {
  background: #f1f2f4;
  color: #565b66;
}

.neb_checkbox_option {
  align-items: center;
  cursor: pointer;
  display: inline-flex;
  gap: 8px;
  min-height: 34px;
  width: fit-content;
}

.neb_checkbox_option input {
  height: 17px;
  margin: 0;
  min-height: 0;
  padding: 0;
  width: 17px;
}

.neb_role_fieldset {
  border: 1px solid #c9ccd8;
  border-radius: 7px;
  margin: 4px 0 0;
  padding: 14px 16px 16px;
}

.neb_role_fieldset legend {
  color: #202050;
  font-weight: 800;
  padding: 0 6px;
}

.neb_role_options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.neb_user_table {
  min-width: 1160px;
}

.neb_user_notice {
  background: #eef7ef;
  border-left: 4px solid #104020;
  color: #104020;
  font-size: 0.9rem;
  margin: 0 0 14px;
  padding: 8px 12px;
}

.neb_row_actions {
  position: relative;
}

.neb_row_actions summary {
  align-items: center;
  background: #eef0f6;
  border: 1px solid #c9ccd8;
  border-radius: 5px;
  color: #202050;
  cursor: pointer;
  display: flex;
  font-size: 0.84rem;
  font-weight: 700;
  justify-content: center;
  min-height: 34px;
  padding: 6px 10px;
  width: 96px;
}

.neb_row_actions summary::marker {
  content: "";
}

.neb_row_actions_menu {
  background: #ffffff;
  border: 1px solid #c9ccd8;
  border-radius: 6px;
  display: grid;
  margin-top: 5px;
  min-width: 210px;
  padding: 6px;
}

.neb_row_actions_menu form {
  margin: 0;
}

.neb_row_actions_menu a,
.neb_row_actions_menu button {
  background: transparent;
  border-radius: 4px;
  color: #20242c;
  display: block;
  font-size: 0.86rem;
  font-weight: 700;
  min-height: 36px;
  padding: 8px 10px;
  text-align: left;
  text-decoration: none;
  width: 100%;
}

.neb_row_actions_menu a:hover,
.neb_row_actions_menu button:hover {
  background: #eef0f6;
  color: #202050;
}

.neb_row_actions_menu .neb_row_action_danger {
  color: #8d2216;
}

.neb_password_dialog {
  border: 0;
  border-radius: 8px;
  box-shadow: 0 20px 54px rgba(20, 20, 40, 0.28);
  max-width: 520px;
  padding: 0;
  width: calc(100% - 28px);
}

.neb_password_dialog::backdrop {
  background: rgba(20, 24, 34, 0.58);
}

.neb_password_dialog_content {
  border-top: 7px solid #104020;
  padding: 26px;
}

.neb_password_dialog_content dl {
  display: grid;
  gap: 8px 16px;
  grid-template-columns: max-content minmax(0, 1fr);
  margin: 20px 0;
}

.neb_password_dialog_content dt {
  color: #565b66;
  font-weight: 700;
}

.neb_password_dialog_content dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.neb_password_dialog_content code {
  font-size: 1.15rem;
  font-weight: 700;
  user-select: all;
}

.neb_copy_confirmation {
  color: #104020;
  font-weight: 700;
  min-height: 1.4em;
}

.neb_password_dialog .neb_dialog_actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.neb_password_dialog .neb_dialog_actions button {
  height: 50px;
  min-height: 50px;
  padding: 9px 12px;
  white-space: nowrap;
  width: 100%;
}

.neb_password_dialog .neb_dialog_actions .neb_button_secondary {
  grid-column: auto;
}

.neb_password_page {
  display: flex;
  justify-content: center;
}

.neb_password_card {
  max-width: 620px;
  width: 100%;
}

.neb_password_card h1 {
  margin-bottom: 18px;
}

.neb_password_form {
  display: grid;
  gap: 12px;
}

.neb_password_form_actions {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 10px;
}

.neb_password_form_actions button {
  height: 50px;
  min-height: 50px;
  width: 100%;
}

.neb_upload_overlay {
  align-items: center;
  background: rgba(20, 24, 34, 0.56);
  display: none;
  inset: 0;
  justify-content: center;
  padding: 24px;
  position: fixed;
  z-index: 1000;
}

.neb_upload_overlay.is_visible {
  display: flex;
}

.neb_upload_overlay_panel {
  background: #ffffff;
  border: 1px solid #dedee8;
  border-radius: 10px;
  box-shadow: 0 18px 48px rgba(20, 20, 40, 0.24);
  max-width: 520px;
  padding: 28px;
  text-align: center;
  width: 100%;
}

.neb_upload_overlay_panel h2 {
  margin-top: 14px;
}

.neb_spinner {
  animation: neb_spin 0.9s linear infinite;
  border: 5px solid #dfe5e2;
  border-top-color: #104020;
  border-radius: 999px;
  height: 54px;
  margin: 0 auto;
  width: 54px;
}

@keyframes neb_spin {
  to {
    transform: rotate(360deg);
  }
}

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

.neb_action_grid form {
  margin: 0;
}

.neb_action_grid button {
  display: flex;
  flex-direction: column;
  font-size: 0.92rem;
  line-height: 1.15;
  min-height: 58px;
  padding: 9px 12px;
  width: 100%;
}

.neb_action_grid small {
  color: rgba(255, 255, 255, 0.86);
  display: block;
  font-size: 0.76rem;
  font-weight: 700;
  margin-top: 1px;
}

.neb_detail_bearbeiter_actions {
  max-width: 620px;
}

.neb_participant_dialog {
  border: 0;
  border-radius: 8px;
  box-shadow: 0 20px 64px rgba(20, 20, 40, 0.3);
  max-width: 560px;
  padding: 0;
  width: calc(100% - 32px);
}

.neb_participant_dialog::backdrop {
  background: rgba(20, 24, 34, 0.58);
}

.neb_participant_dialog_form {
  display: grid;
  gap: 14px;
  padding: 22px;
}

.neb_dialog_header {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.neb_dialog_header h2 {
  margin: 0;
}

.neb_dialog_close {
  align-items: center;
  background: transparent;
  color: #565b66;
  display: inline-flex;
  font-size: 1.6rem;
  height: 36px;
  justify-content: center;
  padding: 0;
  width: 36px;
}

.neb_dialog_close:hover {
  background: #eef0f6;
  color: #202050;
}

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

.neb_dialog_actions button {
  min-height: 48px;
}

.neb_dialog_actions .neb_button_secondary {
  grid-column: 1 / -1;
}

.neb_dialog_actions_single {
  grid-template-columns: 1fr;
}

.neb_detail_top_actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.neb_detail_top_actions .neb_primary_link,
.neb_detail_top_actions .neb_secondary_link {
  min-height: 46px;
}

.neb_button_secondary {
  background: #4d5564;
}

.neb_button_secondary:hover {
  background: #626b7b;
}

.neb_button_danger {
  background: #8d2216;
}

.neb_button_danger:hover {
  background: #a82b1d;
}

.neb_button_dim {
  background: #6c7280;
}

.neb_button_dim:hover {
  background: #7b8291;
}

.neb_detail_grid {
  align-items: start;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(260px, 420px) 1fr;
  margin-bottom: 18px;
}

.neb_detail_document_card {
  display: grid;
  gap: 14px;
}

.neb_detail_document_link {
  justify-content: center;
  text-align: center;
}

.neb_detail_filename {
  color: #606070;
  font-size: 0.9rem;
  margin: 0;
  overflow-wrap: anywhere;
  text-align: center;
}

.neb_detail_form_card {
  min-width: 0;
}

.neb_detail_form {
  display: grid;
  gap: 12px;
}

.neb_detail_form input[readonly] {
  background: #f1f2f4;
  color: #565b66;
  cursor: not-allowed;
}

.neb_recalculate_form {
  border-top: 1px solid #dedee8;
  margin-top: 18px;
  padding-top: 18px;
}

.neb_history {
  display: grid;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.neb_history li {
  border-left: 4px solid #f0b000;
  padding-left: 12px;
}

.neb_history span {
  color: #606070;
  display: block;
  font-size: 0.9rem;
  margin-top: 2px;
}

.neb_history p {
  margin: 6px 0 0;
}

.neb_ocr_text,
.neb_history_value {
  background: #f4f5f7;
  border: 1px solid #dedee8;
  border-radius: 6px;
  max-height: 320px;
  overflow: auto;
  padding: 14px;
  white-space: pre-wrap;
}

.neb_history_value {
  margin: 8px 0 0;
}

.neb_system_info_page {
  min-width: 0;
}

.neb_system_info_grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  min-width: 0;
}

.neb_system_info_group {
  min-width: 0;
  overflow: hidden;
}

.neb_system_info_group h2 {
  font-size: 1.1rem;
  margin: 0 0 14px;
}

.neb_system_info_table_container {
  max-width: 100%;
  overflow-x: auto;
  scrollbar-gutter: stable;
}

.neb_system_info_table {
  min-width: 100%;
  width: max-content;
}

.neb_system_info_table th,
.neb_system_info_table td {
  max-width: none;
  white-space: nowrap;
}

.neb_system_info_table tbody th {
  background: #f7f8fa;
  font-weight: 700;
}

.neb_system_info_error {
  background: #fff2f2;
  border: 1px solid #bd3232;
  border-radius: 6px;
  color: #7a1717;
  margin-bottom: 16px;
  padding: 12px 14px;
}

.neb_system_info_overlay {
  align-items: center;
  background: rgba(20, 24, 34, 0.68);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 20px;
  position: fixed;
  z-index: 2000;
}

.neb_system_info_loading_panel {
  background: #ffffff;
  border-top: 5px solid #f0b000;
  border-radius: 8px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.25);
  max-width: 480px;
  padding: 28px;
  text-align: center;
  width: 100%;
}

.neb_system_info_loading_panel strong {
  display: block;
  margin-top: 16px;
}

.neb_system_info_loading_panel p {
  margin: 8px 0 0;
}

table {
  background: #ffffff;
  border-collapse: collapse;
  min-width: 720px;
  width: 100%;
}

th,
td {
  border-bottom: 1px solid #dedee8;
  padding: 12px;
  text-align: left;
}

th {
  background: #eef0f6;
}

td form {
  margin: 0;
}

.neb_footer {
  color: #606060;
  margin: 32px auto;
  max-width: 1320px;
  padding: 0 24px;
}

.neb_login_footer {
  margin: 0 auto 22px;
  text-align: center;
}

@media (max-width: 820px) {
  .neb_board_header,
  .neb_detail_grid {
    grid-template-columns: 1fr;
  }

  .neb_board_header {
    align-items: flex-start;
    flex-direction: column;
  }

  .neb_admin_page_header {
    align-items: flex-start;
    flex-direction: column;
  }

  .neb_detail_top_actions {
    justify-content: flex-start;
    width: 100%;
  }

  .neb_invitation_grid {
    grid-template-columns: repeat(auto-fill, minmax(320px, 360px));
  }

  .neb_invitation_card {
    max-width: 360px;
  }
}

@media (max-width: 700px) {
  .neb_invitation_grid {
    grid-template-columns: 1fr;
  }

  .neb_invitation_card {
    margin-inline: auto;
    max-width: 360px;
    min-width: 0;
  }
}

@media (max-width: 520px) {
  .neb_main,
  .neb_auth {
    margin: 24px auto;
    padding: 0 14px;
  }

  .neb_header {
    gap: 12px;
    padding: 12px 14px;
  }

  .neb_logo {
    height: 36px;
    width: 36px;
  }

  .neb_brand strong {
    font-size: 1.15rem;
  }

  .neb_menu_dropdown {
    max-width: calc(100vw - 28px);
    min-width: 250px;
  }

  .neb_invitation_grid {
    grid-template-columns: minmax(0, 360px);
    justify-content: center;
  }

  .neb_filter_options {
    gap: 5px 12px;
  }

  .neb_detail_state_list {
    grid-template-columns: 1fr;
  }

  .neb_login_card {
    padding: 28px 20px;
  }

  .neb_action_grid {
    grid-template-columns: 1fr;
  }

  .neb_dialog_actions {
    grid-template-columns: 1fr;
  }

  .neb_dialog_actions .neb_button_secondary {
    grid-column: auto;
  }

  .neb_password_dialog .neb_dialog_actions,
  .neb_password_form_actions {
    grid-template-columns: 1fr;
  }

  .neb_password_dialog .neb_dialog_actions button {
    white-space: normal;
  }
}
