/*
 * ATOSY ERP
 * BPMN UI CLEANUP — 255B
 *
 * Presentation only.
 * No Runtime / RPC / business-rule changes.
 */


/* =========================================================
   TOPBAR
   ========================================================= */

#atosy-bpmn-view .bpmn-topbar {
  align-items: flex-start;
  gap: 18px;
}


#atosy-bpmn-view .bpmn-topbar-copy {
  min-width: 0;
  flex: 1 1 320px;
}


#atosy-bpmn-view .bpmn-topbar-actions {
  display: flex;
  flex: 1 1 560px;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: stretch;
  gap: 10px;
}


/* =========================================================
   SCOPE
   ========================================================= */

#atosy-bpmn-view .bpmn-scope-picker {
  flex: 1 1 220px;
  min-width: 200px;
  max-width: 280px;
}


/* =========================================================
   HEADER ACTION BUTTONS
   ========================================================= */

#atosy-bpmn-view
.bpmn-topbar-actions
.bpmn-primary-button {
  min-height: 48px;
  padding: 0 16px;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;

  flex: 0 0 auto;

  white-space: nowrap;

  border-radius: 14px;
}


/*
 * Designer:
 * secondary action
 */
#atosy-bpmn-view
.bpmn-topbar-actions
.bpmn-primary-button[data-bpmn-section="designer"] {
  background:
    rgba(111, 127, 255, .16);

  border:
    1px solid rgba(166, 181, 255, .23);

  box-shadow: none;
}


/*
 * Start Process:
 * primary operational action
 */
#atosy-bpmn-view
[data-bpmn-start-process] {
  background:
    linear-gradient(
      135deg,
      rgba(116, 87, 255, .96),
      rgba(78, 114, 255, .96)
    );

  border:
    1px solid rgba(190, 199, 255, .30);

  box-shadow:
    0 8px 22px rgba(36, 45, 130, .22);
}


/*
 * History:
 * quieter utility action
 */
#atosy-bpmn-view
[data-bpmn-history-open] {
  background:
    rgba(255, 255, 255, .055);

  border:
    1px solid rgba(176, 203, 255, .16);

  box-shadow: none;
}


/* =========================================================
   EXTERNAL MODULE MOUNT
   ========================================================= */

#atosy-bpmn-view .bpmn-module-mount {
  min-height: 150px;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  border-radius: 20px;

  border:
    1px solid rgba(151, 190, 255, .09);

  background:
    rgba(255, 255, 255, .025);

  color:
    rgba(213, 227, 250, .54);

  font-size: 12px;
}


#atosy-bpmn-view
.bpmn-module-mount-spinner {
  width: 14px;
  height: 14px;

  border-radius: 50%;

  border:
    2px solid rgba(185, 210, 255, .20);

  border-top-color:
    rgba(185, 210, 255, .85);

  animation:
    atosy-bpmn-module-spin
    .7s linear infinite;
}


@keyframes atosy-bpmn-module-spin {
  to {
    transform: rotate(360deg);
  }
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1180px) {

  #atosy-bpmn-view .bpmn-topbar {
    flex-wrap: wrap;
  }


  #atosy-bpmn-view .bpmn-topbar-actions {
    width: 100%;
    flex-basis: 100%;
    justify-content: flex-start;
  }


  #atosy-bpmn-view .bpmn-scope-picker {
    max-width: none;
  }

}


@media (max-width: 720px) {

  #atosy-bpmn-view .bpmn-topbar-actions {
    display: grid;
    grid-template-columns: 1fr;
  }


  #atosy-bpmn-view .bpmn-scope-picker {
    width: 100%;
    max-width: none;
  }


  #atosy-bpmn-view
  .bpmn-topbar-actions
  .bpmn-primary-button {
    width: 100%;
  }

}


/* =========================================================
   255F — FINAL BPMN UI POLISH
   Presentation only.
   ========================================================= */


/* ---------------------------------------------------------
   Improve secondary/reference text readability
   --------------------------------------------------------- */

#atosy-bpmn-view .bpmn-ref-row em {
  color:
    rgba(224, 235, 255, .62);
}


/* ---------------------------------------------------------
   Prevent Designer toolbar text becoming too tiny
   --------------------------------------------------------- */

#atosy-bpmn-view .bpmn-designer-tool,
#atosy-bpmn-view .bpmn-save-button {
  font-size:
    max(10px, .68rem);
}


/* ---------------------------------------------------------
   Consistent section content sizing
   --------------------------------------------------------- */

#atosy-bpmn-view .bpmn-section-host {
  min-width: 0;
  width: 100%;
}


#atosy-bpmn-view .bpmn-section-host > * {
  min-width: 0;
  max-width: 100%;
}


/* ---------------------------------------------------------
   Medium desktop:
   keep header actions compact rather than vertical stack
   --------------------------------------------------------- */

@media (max-width: 1180px) {

  #atosy-bpmn-view
  .bpmn-topbar-actions {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: stretch;
  }


  #atosy-bpmn-view
  .bpmn-topbar-actions
  .bpmn-primary-button {
    min-width: 0;
  }

}


/* ---------------------------------------------------------
   Tablet
   --------------------------------------------------------- */

@media (max-width: 860px) {

  #atosy-bpmn-view .bpmn-topbar {
    gap: 14px;
  }


  #atosy-bpmn-view
  .bpmn-topbar-actions {
    display: grid;

    grid-template-columns:
      repeat(2, minmax(0, 1fr));

    width: 100%;
    gap: 8px;
  }


  #atosy-bpmn-view
  .bpmn-scope-picker {
    grid-column:
      1 / -1;

    width: 100%;
    max-width: none;
  }


  #atosy-bpmn-view
  .bpmn-topbar-actions
  .bpmn-primary-button {
    width: 100%;
  }

}


/* ---------------------------------------------------------
   Mobile
   --------------------------------------------------------- */

@media (max-width: 600px) {

  #atosy-bpmn-view
  .bpmn-topbar-actions {
    grid-template-columns:
      1fr;
  }


  #atosy-bpmn-view
  .bpmn-scope-picker {
    grid-column:
      auto;
  }


  #atosy-bpmn-view
  .bpmn-designer-tool,
  #atosy-bpmn-view
  .bpmn-save-button {
    font-size: 10px;
  }

}


/* =========================================================
   256B — UNIVERSAL BPMN NAVIGATION STABILITY
   Async module renders must not move document viewport.
   ========================================================= */

#atosy-bpmn-view,
#atosy-bpmn-view .bpmn-app-shell,
#atosy-bpmn-view .bpmn-main,
#atosy-bpmn-view .bpmn-section-host {
  overflow-anchor: none;
}


/* =========================================================
   257C-B — CAPABILITY VISIBILITY
   HTML hidden phải luôn thắng legacy display:flex/grid.
   ========================================================= */

#atosy-bpmn-view [hidden] {
  display: none !important;
}


/* =========================================================
   258c — ROLE PERMISSION MUTATION UI
   ========================================================= */

#atosy-bpmn-view
.bpmn-permission-manager {
  margin-top: 16px;
  padding-top: 14px;
  border-top:
    1px solid
    rgba(153,198,255,.10);
}


#atosy-bpmn-view
.bpmn-permission-manager-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}


#atosy-bpmn-view
.bpmn-permission-manager-head > div {
  min-width: 0;
}


#atosy-bpmn-view
.bpmn-permission-manager-head strong {
  display: block;
  color:
    rgba(242,247,255,.90);
  font-size: 11px;
}


#atosy-bpmn-view
.bpmn-permission-manager-head span {
  display: block;
  margin-top: 3px;
  color:
    rgba(206,223,248,.48);
  font-size: 9px;
}


#atosy-bpmn-view
.bpmn-permission-manager-count {
  flex: 0 0 auto;
  padding: 5px 8px;
  border-radius: 999px;
  background:
    rgba(255,255,255,.05);
  color:
    rgba(226,238,255,.75) !important;
  font-size: 10px !important;
}


#atosy-bpmn-view
.bpmn-permission-toggle-grid {
  display: grid;
  grid-template-columns:
    repeat(
      2,
      minmax(0, 1fr)
    );
  gap: 7px;
}


#atosy-bpmn-view
.bpmn-permission-toggle {
  width: 100%;
  min-width: 0;
  min-height: 48px;

  display: flex;
  align-items: center;
  gap: 9px;

  padding: 8px 10px;

  border:
    1px solid
    rgba(148,181,231,.12);

  border-radius: 12px;

  background:
    rgba(255,255,255,.025);

  color:
    rgba(213,228,249,.70);

  text-align: left;

  transition:
    border-color .16s ease,
    background .16s ease,
    transform .16s ease,
    opacity .16s ease;
}


#atosy-bpmn-view
.bpmn-permission-toggle:hover {
  transform:
    translateY(-1px);

  border-color:
    rgba(120,178,255,.28);

  background:
    rgba(92,145,230,.08);
}


#atosy-bpmn-view
.bpmn-permission-toggle.is-granted {
  border-color:
    rgba(94,224,174,.27);

  background:
    rgba(41,184,132,.09);
}


#atosy-bpmn-view
.bpmn-permission-toggle-indicator {
  width: 25px;
  height: 25px;

  flex: 0 0 25px;

  display: grid;
  place-items: center;

  border-radius: 8px;

  background:
    rgba(255,255,255,.055);

  font-size: 12px;
  font-weight: 800;
}


#atosy-bpmn-view
.bpmn-permission-toggle.is-granted
.bpmn-permission-toggle-indicator {
  background:
    rgba(54,214,157,.16);

  color:
    #8cf0c9;
}


#atosy-bpmn-view
.bpmn-permission-toggle-copy {
  min-width: 0;
}


#atosy-bpmn-view
.bpmn-permission-toggle-copy strong {
  display: block;

  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;

  color:
    inherit;

  font-family:
    ui-monospace,
    SFMono-Regular,
    Menlo,
    Monaco,
    Consolas,
    monospace;

  font-size: 9.5px;
}


#atosy-bpmn-view
.bpmn-permission-toggle-copy small {
  display: block;
  margin-top: 3px;

  color:
    rgba(205,220,244,.42);

  font-size: 8.5px;
}


#atosy-bpmn-view
.bpmn-permission-toggle.is-saving {
  opacity: .52;
  cursor: wait;
}


#atosy-bpmn-view
.bpmn-permission-toggle:disabled {
  pointer-events: none;
}


@media (max-width: 720px) {

  #atosy-bpmn-view
  .bpmn-permission-toggle-grid {
    grid-template-columns:
      1fr;
  }

}


/* =========================================================
   259c — SECURITY ROLE ASSIGNMENT UI
   ========================================================= */

#atosy-bpmn-view
.bpmn-security-role-manager {
  margin-top: 16px;
  padding-top: 15px;
  border-top:
    1px solid
    rgba(153,198,255,.10);
}


#atosy-bpmn-view
.bpmn-security-role-manager-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}


#atosy-bpmn-view
.bpmn-security-role-manager-head strong {
  display: block;
  color:
    rgba(244,248,255,.92);
  font-size: 11px;
}


#atosy-bpmn-view
.bpmn-security-role-manager-head span {
  display: block;
  margin-top: 3px;
  color:
    rgba(207,224,248,.48);
  font-size: 9px;
}


#atosy-bpmn-view
.bpmn-security-role-count {
  flex: 0 0 auto;
  padding: 5px 8px;
  border-radius: 999px;
  background:
    rgba(96,151,255,.10);
  color:
    rgba(222,235,255,.76) !important;
}


#atosy-bpmn-view
.bpmn-security-role-form {
  display: grid;
  grid-template-columns:
    minmax(0, 1.4fr)
    minmax(0, 1fr)
    auto
    auto;
  gap: 8px;
  align-items: end;
}


#atosy-bpmn-view
.bpmn-security-role-form label {
  display: grid;
  gap: 5px;
}


#atosy-bpmn-view
.bpmn-security-role-form label > span {
  color:
    rgba(205,222,247,.52);
  font-size: 9px;
}


#atosy-bpmn-view
.bpmn-security-role-form select {
  min-width: 0;
  min-height: 39px;
  padding: 0 9px;
  border:
    1px solid
    rgba(147,184,237,.13);
  border-radius: 10px;
  background:
    rgba(255,255,255,.045);
  color:
    rgba(240,246,255,.88);
}


#atosy-bpmn-view
.bpmn-security-role-inherit {
  min-height: 39px;
  display: flex !important;
  flex-direction: row;
  align-items: center;
  gap: 7px !important;
  padding: 0 9px;
  border:
    1px solid
    rgba(147,184,237,.10);
  border-radius: 10px;
  background:
    rgba(255,255,255,.025);
}


#atosy-bpmn-view
.bpmn-security-role-inherit input {
  margin: 0;
}


#atosy-bpmn-view
.bpmn-security-role-inherit span {
  margin: 0 !important;
  white-space: nowrap;
}


#atosy-bpmn-view
.bpmn-security-role-assign-button,
#atosy-bpmn-view
.bpmn-security-role-revoke-button {
  min-height: 39px;
  border:
    1px solid
    rgba(108,170,255,.20);
  border-radius: 10px;
  background:
    rgba(80,137,231,.11);
  color:
    rgba(230,240,255,.86);
  font-size: 10px;
  font-weight: 700;
}


#atosy-bpmn-view
.bpmn-security-role-assign-button {
  padding: 0 13px;
}


#atosy-bpmn-view
.bpmn-security-role-revoke-button {
  min-height: 32px;
  padding: 0 10px;
  border-color:
    rgba(255,135,145,.17);
  background:
    rgba(222,74,91,.07);
  color:
    rgba(255,204,211,.82);
}


#atosy-bpmn-view
.bpmn-security-role-assignments {
  display: grid;
  gap: 7px;
  margin-top: 11px;
}


#atosy-bpmn-view
.bpmn-security-role-assignment {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 10px;
  border:
    1px solid
    rgba(146,184,237,.09);
  border-radius: 11px;
  background:
    rgba(255,255,255,.022);
}


#atosy-bpmn-view
.bpmn-security-role-assignment > div {
  min-width: 0;
}


#atosy-bpmn-view
.bpmn-security-role-assignment strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color:
    rgba(235,243,255,.84);
  font-size: 10px;
}


#atosy-bpmn-view
.bpmn-security-role-assignment span {
  display: block;
  margin-top: 3px;
  color:
    rgba(203,220,244,.43);
  font-size: 9px;
}


#atosy-bpmn-view
.bpmn-security-role-empty {
  padding: 9px 10px;
  border-radius: 10px;
  background:
    rgba(255,255,255,.018);
  color:
    rgba(203,220,244,.40);
  font-size: 9.5px;
}


#atosy-bpmn-view
.bpmn-security-role-assign-button.is-saving,
#atosy-bpmn-view
.bpmn-security-role-revoke-button.is-saving {
  opacity: .5;
  cursor: wait;
}


@media (max-width: 980px) {

  #atosy-bpmn-view
  .bpmn-security-role-form {
    grid-template-columns:
      1fr 1fr;
  }

}


@media (max-width: 650px) {

  #atosy-bpmn-view
  .bpmn-security-role-form {
    grid-template-columns:
      1fr;
  }

}


/* =========================================================
   259c-B — SECURITY ROLE FORM TEXT CONTRAST
   ========================================================= */

#atosy-bpmn-view
.bpmn-security-role-form label > span {
  color:
    rgba(225,236,252,.78);
}


#atosy-bpmn-view
.bpmn-security-role-form select {
  color:
    rgba(248,251,255,.96);

  background:
    rgba(13,37,88,.72);

  border-color:
    rgba(158,197,255,.24);
}


#atosy-bpmn-view
.bpmn-security-role-form select:focus {
  outline:
    1px solid
    rgba(107,167,255,.55);

  border-color:
    rgba(118,177,255,.48);

  background:
    rgba(15,42,98,.82);
}


#atosy-bpmn-view
.bpmn-security-role-form select option {
  color:
    #111827;

  background:
    #ffffff;
}


#atosy-bpmn-view
.bpmn-security-role-form select:invalid,
#atosy-bpmn-view
.bpmn-security-role-form select option[value=""] {
  color:
    rgba(235,242,255,.82);
}


#atosy-bpmn-view
.bpmn-security-role-inherit span {
  color:
    rgba(229,238,252,.76) !important;
}


#atosy-bpmn-view
.bpmn-security-role-empty {
  color:
    rgba(218,231,249,.62);
}


#atosy-bpmn-view
.bpmn-security-role-assignment strong {
  color:
    rgba(248,251,255,.95);
}


#atosy-bpmn-view
.bpmn-security-role-assignment span {
  color:
    rgba(219,232,250,.64);
}



/* =========================================================
   259c-E — SECURITY ROLE SELECT TEXT FILL + COMPACT SIZE
   Verified root cause:
   - color = white
   - -webkit-text-fill-color was dark blue
   ========================================================= */

#atosy-bpmn-view
.bpmn-security-role-form select {
  color:
    rgba(255,255,255,.96) !important;

  -webkit-text-fill-color:
    rgba(255,255,255,.96) !important;

  font-size:
    13px !important;

  font-weight:
    500;

  min-height:
    35px !important;

  height:
    35px !important;

  padding:
    0 9px !important;

  border-radius:
    9px !important;
}


#atosy-bpmn-view
.bpmn-security-role-form select option {
  color:
    #16233a !important;

  -webkit-text-fill-color:
    #16233a !important;

  background:
    #ffffff !important;

  font-size:
    13px;
}


#atosy-bpmn-view
.bpmn-security-role-form select:focus {
  color:
    #ffffff !important;

  -webkit-text-fill-color:
    #ffffff !important;
}


#atosy-bpmn-view
.bpmn-security-role-form label > span {
  font-size:
    9px !important;
}


#atosy-bpmn-view
.bpmn-security-role-inherit {
  min-height:
    35px !important;

  height:
    35px;
}


#atosy-bpmn-view
.bpmn-security-role-inherit span {
  font-size:
    9px !important;
}


#atosy-bpmn-view
.bpmn-security-role-assign-button {
  min-height:
    35px !important;

  height:
    35px;

  padding:
    0 12px;

  font-size:
    9.5px;
}



/* =========================================================
   260c — PROCESS LIFECYCLE MUTATION UI
   Function-first
   ========================================================= */

#atosy-bpmn-view
.bpmn-process-lifecycle-hero-actions {
  margin-top: 14px;
}


#atosy-bpmn-view
.bpmn-process-lifecycle-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding:
    0 18px 16px;
}


#atosy-bpmn-view
.bpmn-process-action-button {
  min-height: 32px;
  padding:
    0 11px;
  border:
    1px solid
    rgba(142,183,244,.16);
  border-radius:
    9px;
  background:
    rgba(255,255,255,.035);
  color:
    rgba(239,246,255,.88);
  font-size:
    10px;
  font-weight:
    700;
  cursor:
    pointer;
}


#atosy-bpmn-view
.bpmn-process-action-button:hover {
  background:
    rgba(105,157,255,.10);
  border-color:
    rgba(137,182,255,.28);
}


#atosy-bpmn-view
.bpmn-process-action-button.is-primary {
  background:
    rgba(71,128,236,.18);
  border-color:
    rgba(113,169,255,.30);
}


#atosy-bpmn-view
.bpmn-process-action-button.is-publish {
  background:
    rgba(47,181,126,.10);
  border-color:
    rgba(74,206,150,.20);
}


#atosy-bpmn-view
.bpmn-process-action-button.is-danger {
  background:
    rgba(219,72,91,.07);
  border-color:
    rgba(255,126,145,.16);
}


#atosy-bpmn-view
.bpmn-process-action-button.is-saving {
  opacity:
    .48;
  cursor:
    wait;
}



/* =========================================================
   261c — BUSINESS ROLE SUBJECT MUTATION UI
   ========================================================= */

#atosy-bpmn-view
.bpmn-business-role-mutation-panel {
  display: grid;
  grid-template-columns:
    minmax(170px, 1.3fr)
    minmax(150px, 1fr)
    90px
    auto
    auto
    auto;
  gap: 8px;
  align-items: center;
  margin-top: 14px;
  padding: 12px;
  border:
    1px solid rgba(153,198,255,.10);
  border-radius: 13px;
  background:
    rgba(7,18,48,.20);
}


#atosy-bpmn-view
.bpmn-business-role-mutation-panel select,
#atosy-bpmn-view
.bpmn-business-role-mutation-panel input[type="number"] {
  min-height: 34px;
  border:
    1px solid rgba(153,198,255,.14);
  border-radius: 9px;
  background:
    rgba(255,255,255,.045);
  color:
    rgba(246,249,255,.95);
  -webkit-text-fill-color:
    rgba(246,249,255,.95);
  padding:
    0 9px;
  font-size:
    11px;
}


#atosy-bpmn-view
.bpmn-business-role-mutation-panel option {
  background:
    #ffffff;
  color:
    #162b52;
}


#atosy-bpmn-view
.bpmn-business-role-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color:
    rgba(224,235,252,.72);
  font-size:
    10px;
  white-space: nowrap;
}


#atosy-bpmn-view
.bpmn-business-role-action {
  min-height: 31px;
  padding:
    0 10px;
  border:
    1px solid rgba(142,183,244,.16);
  border-radius:
    8px;
  background:
    rgba(255,255,255,.035);
  color:
    rgba(239,246,255,.91);
  font-size:
    10px;
  font-weight:
    700;
  cursor:
    pointer;
}


#atosy-bpmn-view
.bpmn-business-role-action.is-primary {
  background:
    rgba(73,130,238,.16);
  border-color:
    rgba(114,169,255,.25);
}


#atosy-bpmn-view
.bpmn-business-role-action.is-danger {
  background:
    rgba(215,69,91,.08);
  border-color:
    rgba(255,116,138,.17);
}


#atosy-bpmn-view
.bpmn-business-role-existing-actions {
  display: grid;
  gap: 7px;
  margin-top: 12px;
}


#atosy-bpmn-view
.bpmn-business-role-existing-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 10px;
  border-radius: 10px;
  background:
    rgba(255,255,255,.025);
  color:
    rgba(218,230,249,.64);
  font-size:
    10px;
}


#atosy-bpmn-view
.bpmn-business-role-existing-buttons {
  display: inline-flex;
  gap: 6px;
}


@media (max-width: 1100px) {

  #atosy-bpmn-view
  .bpmn-business-role-mutation-panel {
    grid-template-columns:
      1fr 1fr;
  }

}



/* =========================================================
   262c — SCOPE MUTATION UI
   ========================================================= */

#atosy-bpmn-view
.bpmn-scope-mutation-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 12px;
}


#atosy-bpmn-view
.bpmn-scope-mutation-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
  padding-top: 9px;
  border-top:
    1px solid rgba(153,198,255,.08);
}


#atosy-bpmn-view
.bpmn-scope-action {
  min-height: 30px;
  padding:
    0 9px;
  border:
    1px solid rgba(142,183,244,.16);
  border-radius:
    8px;
  background:
    rgba(255,255,255,.035);
  color:
    rgba(239,246,255,.90);
  font-size:
    10px;
  font-weight:
    700;
  cursor:
    pointer;
}


#atosy-bpmn-view
.bpmn-scope-action:hover {
  background:
    rgba(105,157,255,.10);
}


#atosy-bpmn-view
.bpmn-scope-action.is-primary {
  background:
    rgba(71,128,236,.17);
  border-color:
    rgba(113,169,255,.28);
}


#atosy-bpmn-view
.bpmn-scope-action.is-danger {
  background:
    rgba(219,72,91,.07);
  border-color:
    rgba(255,126,145,.16);
}


#atosy-bpmn-view
.bpmn-scope-action:disabled {
  opacity:
    .45;
  cursor:
    wait;
}



/* =========================================================
   262c — SCOPE MUTATION UI
   ========================================================= */

#atosy-bpmn-view
.bpmn-scope-mutation-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
}


#atosy-bpmn-view
.bpmn-scope-mutation-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
  padding-top: 10px;
  border-top:
    1px solid rgba(153,198,255,.08);
}


#atosy-bpmn-view
.bpmn-scope-action {
  min-height: 30px;
  padding:
    0 10px;
  border:
    1px solid rgba(142,183,244,.16);
  border-radius:
    8px;
  background:
    rgba(255,255,255,.035);
  color:
    rgba(239,246,255,.90);
  font-size:
    10px;
  font-weight:
    700;
  cursor:
    pointer;
}


#atosy-bpmn-view
.bpmn-scope-action:hover {
  background:
    rgba(105,157,255,.10);
}


#atosy-bpmn-view
.bpmn-scope-action.is-primary {
  background:
    rgba(71,128,236,.17);
  border-color:
    rgba(113,169,255,.28);
}


#atosy-bpmn-view
.bpmn-scope-action.is-danger {
  background:
    rgba(219,72,91,.07);
  border-color:
    rgba(255,126,145,.16);
}


#atosy-bpmn-view
.bpmn-scope-action:disabled {
  opacity:
    .45;
  cursor:
    wait;
}



/* =========================================================
   263c — ENTITY RELATION MUTATION UI
   ========================================================= */

#atosy-bpmn-view
.bpmn-relations-mutation-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
}


#atosy-bpmn-view
.bpmn-relation-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
  padding-top: 10px;
  border-top:
    1px solid rgba(153,198,255,.08);
}


#atosy-bpmn-view
.bpmn-relation-action {
  min-height: 30px;
  padding:
    0 10px;
  border:
    1px solid rgba(142,183,244,.16);
  border-radius:
    8px;
  background:
    rgba(255,255,255,.035);
  color:
    rgba(239,246,255,.90);
  font-size:
    10px;
  font-weight:
    700;
  cursor:
    pointer;
}


#atosy-bpmn-view
.bpmn-relation-action:hover {
  background:
    rgba(105,157,255,.10);
}


#atosy-bpmn-view
.bpmn-relation-action.is-primary {
  background:
    rgba(71,128,236,.17);
  border-color:
    rgba(113,169,255,.28);
}


#atosy-bpmn-view
.bpmn-relation-action.is-danger {
  background:
    rgba(219,72,91,.07);
  border-color:
    rgba(255,126,145,.16);
}


#atosy-bpmn-view
.bpmn-relation-action:disabled {
  opacity:
    .45;
  cursor:
    wait;
}



/* =========================================================
   APPLE LIQUID — MUTATION ACTION BUTTONS
   Scope + Relations
   ========================================================= */

#atosy-bpmn-view
.bpmn-scope-mutation-actions,
#atosy-bpmn-view
.bpmn-relation-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  padding-top: 12px;
  border-top:
    1px solid rgba(255,255,255,.07);
}


#atosy-bpmn-view
.bpmn-scope-action,
#atosy-bpmn-view
.bpmn-relation-action {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 34px;
  padding:
    0 13px;

  border:
    1px solid rgba(255,255,255,.14);

  border-radius:
    12px;

  background:
    linear-gradient(
      180deg,
      rgba(255,255,255,.105),
      rgba(255,255,255,.045)
    );

  box-shadow:
    inset 0 1px 0
      rgba(255,255,255,.12),
    0 6px 18px
      rgba(0,0,0,.10);

  color:
    rgba(244,248,255,.92);

  font-size:
    11px;

  font-weight:
    650;

  letter-spacing:
    -.01em;

  line-height:
    1;

  backdrop-filter:
    blur(18px)
    saturate(145%);

  -webkit-backdrop-filter:
    blur(18px)
    saturate(145%);

  cursor:
    pointer;

  transition:
    transform .16s ease,
    background .16s ease,
    border-color .16s ease,
    box-shadow .16s ease,
    opacity .16s ease;
}


#atosy-bpmn-view
.bpmn-scope-action::before,
#atosy-bpmn-view
.bpmn-relation-action::before {
  content: "";
  position: absolute;
  inset:
    1px;

  border-radius:
    inherit;

  pointer-events:
    none;

  background:
    linear-gradient(
      180deg,
      rgba(255,255,255,.08),
      rgba(255,255,255,0)
    );

  opacity:
    .7;
}


#atosy-bpmn-view
.bpmn-scope-action:hover,
#atosy-bpmn-view
.bpmn-relation-action:hover {
  transform:
    translateY(-1px);

  border-color:
    rgba(190,215,255,.25);

  background:
    linear-gradient(
      180deg,
      rgba(255,255,255,.15),
      rgba(255,255,255,.065)
    );

  box-shadow:
    inset 0 1px 0
      rgba(255,255,255,.16),
    0 8px 22px
      rgba(0,0,0,.13);
}


#atosy-bpmn-view
.bpmn-scope-action:active,
#atosy-bpmn-view
.bpmn-relation-action:active {
  transform:
    translateY(0)
    scale(.985);
}


#atosy-bpmn-view
.bpmn-scope-action.is-primary,
#atosy-bpmn-view
.bpmn-relation-action.is-primary {
  border-color:
    rgba(164,181,255,.34);

  background:
    linear-gradient(
      135deg,
      rgba(123,96,255,.92),
      rgba(88,122,255,.82)
    );

  box-shadow:
    inset 0 1px 0
      rgba(255,255,255,.25),
    0 8px 24px
      rgba(82,91,255,.25),
    0 0 0 1px
      rgba(128,153,255,.05);

  color:
    #fff;
}


#atosy-bpmn-view
.bpmn-scope-action.is-primary:hover,
#atosy-bpmn-view
.bpmn-relation-action.is-primary:hover {
  background:
    linear-gradient(
      135deg,
      rgba(138,110,255,.98),
      rgba(98,137,255,.90)
    );

  box-shadow:
    inset 0 1px 0
      rgba(255,255,255,.28),
    0 10px 28px
      rgba(82,91,255,.30);
}


#atosy-bpmn-view
.bpmn-scope-action.is-danger,
#atosy-bpmn-view
.bpmn-relation-action.is-danger {
  border-color:
    rgba(255,137,157,.18);

  background:
    linear-gradient(
      180deg,
      rgba(255,97,126,.11),
      rgba(255,97,126,.045)
    );

  color:
    rgba(255,210,220,.92);
}


#atosy-bpmn-view
.bpmn-scope-action.is-danger:hover,
#atosy-bpmn-view
.bpmn-relation-action.is-danger:hover {
  border-color:
    rgba(255,147,168,.30);

  background:
    linear-gradient(
      180deg,
      rgba(255,102,133,.16),
      rgba(255,102,133,.065)
    );

  box-shadow:
    inset 0 1px 0
      rgba(255,255,255,.11),
    0 8px 22px
      rgba(87,18,33,.15);
}


#atosy-bpmn-view
.bpmn-scope-action:disabled,
#atosy-bpmn-view
.bpmn-relation-action:disabled {
  opacity:
    .42;

  transform:
    none;

  cursor:
    wait;
}


#atosy-bpmn-view
.bpmn-scope-mutation-toolbar,
#atosy-bpmn-view
.bpmn-relations-mutation-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-top: 14px;
}



/* =========================================================
   ADVANCED SETTINGS NAV — LIQUID SUBMENU
   ========================================================= */

#atosy-bpmn-view
.bpmn-nav-advanced {
  display: grid;
  gap: 5px;
  margin-top: 4px;
}


#atosy-bpmn-view
.bpmn-nav-parent {
  width: 100%;
}


#atosy-bpmn-view
.bpmn-nav-parent-label {
  flex: 1;
  min-width: 0;
  text-align: left;
}


#atosy-bpmn-view
.bpmn-nav-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 18px;
  height: 18px;

  margin-left: auto;

  border-radius: 999px;

  background:
    rgba(255,255,255,.055);

  color:
    rgba(225,235,255,.60);

  font-size: 17px;
  line-height: 1;

  transform:
    rotate(0deg);

  transition:
    transform .18s ease,
    background .18s ease,
    color .18s ease;
}


#atosy-bpmn-view
.bpmn-nav-parent[
  aria-expanded="true"
]
.bpmn-nav-chevron {
  transform:
    rotate(90deg);

  background:
    rgba(125,153,255,.12);

  color:
    rgba(242,247,255,.92);
}


#atosy-bpmn-view
.bpmn-nav-parent.is-active-parent {
  border-color:
    rgba(127,153,255,.18);

  background:
    linear-gradient(
      135deg,
      rgba(85,111,209,.12),
      rgba(255,255,255,.035)
    );
}


#atosy-bpmn-view
.bpmn-nav-submenu {
  display: grid;
  gap: 4px;

  padding:
    3px 0 4px 14px;

  margin:
    0 0 1px 10px;

  border-left:
    1px solid rgba(151,183,255,.12);
}


#atosy-bpmn-view
.bpmn-nav-submenu[hidden] {
  display: none !important;
}


#atosy-bpmn-view
.bpmn-nav-subitem {
  min-height: 34px;

  padding-left:
    10px;

  border-radius:
    11px;

  font-size:
    11px;

  opacity:
    .86;
}


#atosy-bpmn-view
.bpmn-nav-subitem
.bpmn-nav-icon {
  width: 25px;
  height: 25px;

  border-radius:
    9px;

  font-size:
    11px;
}


#atosy-bpmn-view
.bpmn-nav-subitem:hover {
  opacity:
    1;
}


#atosy-bpmn-view
.bpmn-nav-subitem.is-active {
  opacity:
    1;

  background:
    linear-gradient(
      135deg,
      rgba(93,118,225,.38),
      rgba(102,87,220,.20)
    );

  box-shadow:
    inset 0 1px 0
      rgba(255,255,255,.08);
}



/* =========================================================
   264-NAV-R2 — ADVANCED SETTINGS / APPLE LIQUID NAV
   ========================================================= */

#atosy-bpmn-view
.bpmn-nav-advanced {
  display: grid;
  gap: 5px;
  width: 100%;
  margin-top: 4px;
}


#atosy-bpmn-view
.bpmn-nav-parent {
  width: 100%;
}


#atosy-bpmn-view
.bpmn-nav-parent-label {
  flex: 1;
  min-width: 0;
  text-align: left;
}


#atosy-bpmn-view
.bpmn-nav-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 20px;
  height: 20px;

  margin-left: auto;

  border-radius: 999px;

  background:
    rgba(255,255,255,.055);

  color:
    rgba(226,235,255,.58);

  font-size: 17px;
  line-height: 1;

  transform: rotate(0deg);

  transition:
    transform .18s ease,
    background .18s ease,
    color .18s ease;
}


#atosy-bpmn-view
.bpmn-nav-parent[
  aria-expanded="true"
]
.bpmn-nav-chevron {
  transform: rotate(90deg);

  background:
    rgba(125,153,255,.12);

  color:
    rgba(245,248,255,.94);
}


#atosy-bpmn-view
.bpmn-nav-parent.is-active-parent {
  border-color:
    rgba(138,161,255,.17);

  background:
    linear-gradient(
      135deg,
      rgba(89,111,215,.15),
      rgba(255,255,255,.035)
    );
}


#atosy-bpmn-view
.bpmn-nav-submenu {
  display: grid;

  gap: 4px;

  margin:
    1px 0 2px 14px;

  padding:
    3px 0 4px 11px;

  border-left:
    1px solid
    rgba(144,174,255,.13);
}


#atosy-bpmn-view
.bpmn-nav-submenu[hidden] {
  display: none !important;
}


#atosy-bpmn-view
.bpmn-nav-subitem {
  min-height: 35px;

  padding-left: 10px;

  border-radius: 11px;

  font-size: 11px;

  opacity: .84;

  transition:
    opacity .16s ease,
    background .16s ease,
    transform .16s ease,
    border-color .16s ease;
}


#atosy-bpmn-view
.bpmn-nav-subitem:hover {
  opacity: 1;

  transform:
    translateX(1px);

  background:
    rgba(255,255,255,.055);
}


#atosy-bpmn-view
.bpmn-nav-subitem
.bpmn-nav-icon {
  width: 25px;
  height: 25px;

  border-radius: 9px;

  font-size: 11px;
}


#atosy-bpmn-view
.bpmn-nav-subitem.is-active {
  opacity: 1;

  border-color:
    rgba(142,163,255,.18);

  background:
    linear-gradient(
      135deg,
      rgba(92,115,224,.34),
      rgba(104,86,220,.17)
    );

  box-shadow:
    inset 0 1px 0
      rgba(255,255,255,.07),
    0 5px 18px
      rgba(37,41,93,.12);
}



/* =========================================================
   264b — BPMN SETTINGS / ELEMENT CONFIG MUTATION
   APPLE LIQUID CONSISTENCY
   ========================================================= */

#atosy-bpmn-view
.bpmn-settings-mutation-section {
  display: grid;
  gap: 14px;

  padding: 18px;

  border:
    1px solid rgba(155,190,255,.12);

  border-radius: 22px;

  background:
    linear-gradient(
      145deg,
      rgba(255,255,255,.055),
      rgba(255,255,255,.022)
    );

  box-shadow:
    inset 0 1px 0
      rgba(255,255,255,.055),
    0 14px 40px
      rgba(8,21,61,.10);

  backdrop-filter:
    blur(22px)
    saturate(135%);

  -webkit-backdrop-filter:
    blur(22px)
    saturate(135%);
}


#atosy-bpmn-view
.bpmn-settings-section-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}


#atosy-bpmn-view
.bpmn-settings-section-kicker,
#atosy-bpmn-view
.bpmn-settings-config-number {
  display: block;

  margin-bottom: 6px;

  color:
    rgba(188,211,255,.58);

  font-size: 10px;

  font-weight: 760;

  letter-spacing: .12em;

  text-transform: uppercase;
}


#atosy-bpmn-view
.bpmn-settings-section-head h3 {
  margin: 0;

  color:
    rgba(247,250,255,.96);

  font-size: 18px;
}


#atosy-bpmn-view
.bpmn-settings-section-head p {
  margin: 6px 0 0;

  color:
    rgba(218,229,250,.58);

  font-size: 12px;

  line-height: 1.55;
}


#atosy-bpmn-view
.bpmn-settings-draft-grid {
  display: grid;

  grid-template-columns:
    repeat(
      auto-fit,
      minmax(235px,1fr)
    );

  gap: 10px;
}


#atosy-bpmn-view
.bpmn-settings-draft-card {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 14px;

  min-width: 0;

  padding: 14px;

  border:
    1px solid rgba(155,190,255,.10);

  border-radius: 16px;

  background:
    linear-gradient(
      145deg,
      rgba(255,255,255,.045),
      rgba(255,255,255,.018)
    );
}


#atosy-bpmn-view
.bpmn-settings-draft-card > div {
  display: grid;
  min-width: 0;
  gap: 3px;
}


#atosy-bpmn-view
.bpmn-settings-draft-card span {
  color:
    rgba(177,204,255,.60);

  font-size: 10px;

  font-weight: 720;

  letter-spacing: .08em;
}


#atosy-bpmn-view
.bpmn-settings-draft-card strong {
  overflow: hidden;

  color:
    rgba(247,250,255,.94);

  font-size: 12px;

  text-overflow: ellipsis;

  white-space: nowrap;
}


#atosy-bpmn-view
.bpmn-settings-draft-card small {
  color:
    rgba(214,226,247,.48);

  font-size: 10px;
}


#atosy-bpmn-view
.bpmn-settings-card {
  overflow: hidden;
}


#atosy-bpmn-view
.bpmn-settings-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;

  gap: 16px;
}


#atosy-bpmn-view
.bpmn-settings-card-head h3 {
  margin:
    0 0 4px;
}


#atosy-bpmn-view
.bpmn-settings-status {
  flex: 0 0 auto;

  padding:
    6px 9px;

  border:
    1px solid rgba(255,255,255,.09);

  border-radius:
    999px;

  background:
    rgba(255,255,255,.045);

  color:
    rgba(216,226,245,.58);

  font-size:
    9px;

  font-weight:
    720;
}


#atosy-bpmn-view
.bpmn-settings-status.is-draft {
  border-color:
    rgba(124,173,255,.20);

  background:
    rgba(93,130,255,.12);

  color:
    rgba(218,232,255,.92);
}


#atosy-bpmn-view
.bpmn-settings-meta-grid {
  display: grid;

  grid-template-columns:
    repeat(
      auto-fit,
      minmax(145px,1fr)
    );

  gap: 8px;

  margin-top: 14px;
}


#atosy-bpmn-view
.bpmn-settings-meta-grid > div {
  display: grid;
  gap: 4px;

  padding: 10px;

  border-radius: 12px;

  background:
    rgba(255,255,255,.028);
}


#atosy-bpmn-view
.bpmn-settings-meta-grid span,
#atosy-bpmn-view
.bpmn-settings-rule-grid > div > span {
  color:
    rgba(180,201,239,.50);

  font-size: 9px;

  font-weight: 700;

  letter-spacing: .07em;

  text-transform: uppercase;
}


#atosy-bpmn-view
.bpmn-settings-meta-grid strong {
  overflow-wrap: anywhere;

  color:
    rgba(239,245,255,.90);

  font-size: 11px;
}


#atosy-bpmn-view
.bpmn-settings-rule-grid {
  display: grid;

  grid-template-columns:
    repeat(
      auto-fit,
      minmax(235px,1fr)
    );

  gap: 8px;

  margin-top: 10px;
}


#atosy-bpmn-view
.bpmn-settings-rule-grid > div {
  min-width: 0;

  padding: 10px;

  border:
    1px solid rgba(255,255,255,.05);

  border-radius: 12px;

  background:
    rgba(7,18,46,.16);
}


#atosy-bpmn-view
.bpmn-settings-rule-grid pre {
  overflow: auto;

  max-height: 150px;

  margin:
    7px 0 0;

  color:
    rgba(225,236,255,.78);

  font-size: 10px;

  line-height: 1.5;

  white-space: pre-wrap;

  overflow-wrap: anywhere;
}


#atosy-bpmn-view
.bpmn-settings-actions {
  display: flex;
  flex-wrap: wrap;

  gap: 7px;

  margin-top: 12px;

  padding-top: 12px;

  border-top:
    1px solid rgba(255,255,255,.055);
}


#atosy-bpmn-view
.bpmn-settings-action {
  position: relative;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 34px;

  padding:
    0 13px;

  border:
    1px solid rgba(255,255,255,.13);

  border-radius:
    12px;

  background:
    linear-gradient(
      180deg,
      rgba(255,255,255,.105),
      rgba(255,255,255,.04)
    );

  box-shadow:
    inset 0 1px 0
      rgba(255,255,255,.11),
    0 7px 20px
      rgba(4,13,37,.11);

  color:
    rgba(244,248,255,.92);

  font-size:
    10.5px;

  font-weight:
    690;

  letter-spacing:
    -.01em;

  cursor:
    pointer;

  backdrop-filter:
    blur(18px)
    saturate(145%);

  -webkit-backdrop-filter:
    blur(18px)
    saturate(145%);

  transition:
    transform .16s ease,
    border-color .16s ease,
    background .16s ease,
    box-shadow .16s ease;
}


#atosy-bpmn-view
.bpmn-settings-action:hover {
  transform:
    translateY(-1px);

  border-color:
    rgba(183,211,255,.24);

  background:
    linear-gradient(
      180deg,
      rgba(255,255,255,.15),
      rgba(255,255,255,.065)
    );

  box-shadow:
    inset 0 1px 0
      rgba(255,255,255,.16),
    0 9px 24px
      rgba(4,13,37,.14);
}


#atosy-bpmn-view
.bpmn-settings-action:active {
  transform:
    translateY(0)
    scale(.985);
}


#atosy-bpmn-view
.bpmn-settings-action.is-primary {
  border-color:
    rgba(160,181,255,.30);

  background:
    linear-gradient(
      135deg,
      rgba(115,91,250,.90),
      rgba(79,125,250,.82)
    );

  box-shadow:
    inset 0 1px 0
      rgba(255,255,255,.24),
    0 8px 24px
      rgba(75,91,240,.22);

  color: #fff;
}


#atosy-bpmn-view
.bpmn-settings-action.is-danger {
  border-color:
    rgba(255,135,158,.17);

  background:
    linear-gradient(
      180deg,
      rgba(255,96,128,.10),
      rgba(255,96,128,.035)
    );

  color:
    rgba(255,210,220,.90);
}


#atosy-bpmn-view
.bpmn-settings-action.is-danger:hover {
  border-color:
    rgba(255,145,166,.29);

  background:
    linear-gradient(
      180deg,
      rgba(255,99,131,.16),
      rgba(255,99,131,.06)
    );
}



/* =========================================================
   265b — BPMN SUBJECT SLOT MUTATION UI
   APPLE LIQUID
   ========================================================= */

#atosy-bpmn-view
.bpmn-subject-slot-section {
  display: grid;
  gap: 14px;
}


#atosy-bpmn-view
.bpmn-subject-slot-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}


#atosy-bpmn-view
.bpmn-subject-slot-kicker {
  display: block;

  margin-bottom: 5px;

  color:
    rgba(183,207,255,.58);

  font-size: 10px;

  font-weight: 760;

  letter-spacing: .12em;
}


#atosy-bpmn-view
.bpmn-subject-slot-section-head h3 {
  margin: 0;
}


#atosy-bpmn-view
.bpmn-subject-slot-section-head p {
  margin: 6px 0 0;

  max-width: 760px;

  color:
    rgba(214,226,247,.56);

  font-size: 11px;

  line-height: 1.55;
}


#atosy-bpmn-view
.bpmn-subject-slot-create-panel {
  display: grid;
  gap: 12px;

  padding: 15px;

  border:
    1px solid rgba(156,191,255,.12);

  border-radius: 18px;

  background:
    linear-gradient(
      145deg,
      rgba(255,255,255,.055),
      rgba(255,255,255,.022)
    );

  box-shadow:
    inset 0 1px 0
      rgba(255,255,255,.055),
    0 12px 30px
      rgba(5,15,42,.09);

  backdrop-filter:
    blur(20px)
    saturate(140%);

  -webkit-backdrop-filter:
    blur(20px)
    saturate(140%);
}


#atosy-bpmn-view
.bpmn-subject-slot-create-grid {
  display: grid;

  grid-template-columns:
    repeat(
      auto-fit,
      minmax(180px,1fr)
    );

  gap: 10px;
}


#atosy-bpmn-view
.bpmn-subject-slot-create-grid label {
  display: grid;
  gap: 5px;

  min-width: 0;
}


#atosy-bpmn-view
.bpmn-subject-slot-create-grid label > span {
  color:
    rgba(184,205,242,.55);

  font-size: 9px;

  font-weight: 730;

  letter-spacing: .07em;

  text-transform: uppercase;
}


#atosy-bpmn-view
.bpmn-subject-slot-create-grid input,
#atosy-bpmn-view
.bpmn-subject-slot-create-grid select,
#atosy-bpmn-view
.bpmn-subject-slot-create-grid textarea {
  width: 100%;

  box-sizing: border-box;

  border:
    1px solid rgba(255,255,255,.095);

  border-radius: 11px;

  outline: none;

  background:
    rgba(8,19,47,.26);

  color:
    rgba(241,246,255,.93);

  font: inherit;

  font-size: 10.5px;

  transition:
    border-color .16s ease,
    background .16s ease,
    box-shadow .16s ease;
}


#atosy-bpmn-view
.bpmn-subject-slot-create-grid input,
#atosy-bpmn-view
.bpmn-subject-slot-create-grid select {
  min-height: 36px;

  padding:
    0 10px;
}


#atosy-bpmn-view
.bpmn-subject-slot-create-grid textarea {
  min-height: 78px;

  padding: 9px;

  resize: vertical;

  font-family:
    ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace;
}


#atosy-bpmn-view
.bpmn-subject-slot-create-grid input:focus,
#atosy-bpmn-view
.bpmn-subject-slot-create-grid select:focus,
#atosy-bpmn-view
.bpmn-subject-slot-create-grid textarea:focus {
  border-color:
    rgba(137,173,255,.32);

  background:
    rgba(15,31,73,.38);

  box-shadow:
    0 0 0 3px
      rgba(102,126,255,.08);
}


#atosy-bpmn-view
.bpmn-subject-slot-json-field {
  grid-column:
    span 2;
}


#atosy-bpmn-view
.bpmn-subject-slot-create-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 12px;
}


#atosy-bpmn-view
.bpmn-subject-slot-required {
  display: inline-flex;
  align-items: center;

  gap: 7px;

  color:
    rgba(226,235,252,.73);

  font-size: 10.5px;
}


#atosy-bpmn-view
.bpmn-subject-slot-card {
  position: relative;

  align-items: stretch;

  border:
    1px solid rgba(255,255,255,.065);

  border-radius: 15px;

  background:
    linear-gradient(
      145deg,
      rgba(255,255,255,.035),
      rgba(255,255,255,.015)
    );
}


#atosy-bpmn-view
.bpmn-subject-slot-card small {
  display: block;

  margin-top: 4px;

  color:
    rgba(198,213,240,.44);

  font-size: 9px;
}


#atosy-bpmn-view
.bpmn-subject-slot-json {
  min-width: 0;

  padding: 9px;

  border-radius: 11px;

  background:
    rgba(7,17,43,.18);
}


#atosy-bpmn-view
.bpmn-subject-slot-json > span {
  color:
    rgba(180,201,239,.47);

  font-size: 8.5px;

  font-weight: 720;

  letter-spacing: .06em;

  text-transform: uppercase;
}


#atosy-bpmn-view
.bpmn-subject-slot-json pre {
  overflow: auto;

  max-height: 115px;

  margin: 6px 0 0;

  color:
    rgba(222,233,252,.72);

  font-size: 9px;

  line-height: 1.45;

  white-space: pre-wrap;

  overflow-wrap: anywhere;
}


#atosy-bpmn-view
.bpmn-subject-slot-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;

  gap: 7px;
}


#atosy-bpmn-view
.bpmn-subject-slot-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 34px;

  padding:
    0 13px;

  border:
    1px solid rgba(255,255,255,.13);

  border-radius: 12px;

  background:
    linear-gradient(
      180deg,
      rgba(255,255,255,.105),
      rgba(255,255,255,.04)
    );

  box-shadow:
    inset 0 1px 0
      rgba(255,255,255,.11),
    0 7px 20px
      rgba(4,13,37,.11);

  color:
    rgba(244,248,255,.92);

  font-size: 10.5px;

  font-weight: 690;

  cursor: pointer;

  backdrop-filter:
    blur(18px)
    saturate(145%);

  -webkit-backdrop-filter:
    blur(18px)
    saturate(145%);

  transition:
    transform .16s ease,
    border-color .16s ease,
    background .16s ease,
    box-shadow .16s ease;
}


#atosy-bpmn-view
.bpmn-subject-slot-action:hover {
  transform:
    translateY(-1px);

  border-color:
    rgba(182,210,255,.24);

  background:
    linear-gradient(
      180deg,
      rgba(255,255,255,.15),
      rgba(255,255,255,.065)
    );
}


#atosy-bpmn-view
.bpmn-subject-slot-action:active {
  transform:
    scale(.985);
}


#atosy-bpmn-view
.bpmn-subject-slot-action.is-primary {
  border-color:
    rgba(158,181,255,.30);

  background:
    linear-gradient(
      135deg,
      rgba(113,90,249,.91),
      rgba(76,123,250,.84)
    );

  box-shadow:
    inset 0 1px 0
      rgba(255,255,255,.24),
    0 8px 24px
      rgba(73,89,239,.22);

  color: #fff;
}


#atosy-bpmn-view
.bpmn-subject-slot-action.is-danger {
  border-color:
    rgba(255,138,160,.18);

  background:
    linear-gradient(
      180deg,
      rgba(255,98,130,.10),
      rgba(255,98,130,.035)
    );

  color:
    rgba(255,211,220,.92);
}


#atosy-bpmn-view
.bpmn-subject-slot-action:disabled {
  opacity: .48;

  cursor: wait;

  transform: none;
}


@media (max-width: 780px) {

  #atosy-bpmn-view
  .bpmn-subject-slot-json-field {
    grid-column:
      span 1;
  }

}

