* { box-sizing: border-box; }

    body {
      font-family: 'Comfortaa', cursive;
      margin: 0;
      padding: 18px;
      background: linear-gradient(135deg, #eef3ff 0%, #f7f8fb 48%, #ffffff 100%);
      min-height: 100vh;
      display: flex;
      align-items: center;
      justify-content: center;
      color: #263238;
    }

    .card {
      background: rgba(255,255,255,0.96);
      border: 1px solid rgba(23,70,212,0.08);
      border-radius: 22px;
      max-width: 780px;
      width: 100%;
      padding: 22px;
      box-shadow: 0 18px 45px rgba(23,70,212,0.12);
    }

    .header {
      display: grid;
      grid-template-columns: 110px 1fr;
      gap: 16px;
      align-items: center;
      margin-bottom: 16px;
    }

    .header img {
      width: 110px;
      height: 82px;
      object-fit: cover;
      border-radius: 16px;
      background: #f4f6fb;
    }

    h1 {
      font-size: 1.35rem;
      color: #1746d4;
      margin: 0 0 7px;
      letter-spacing: 0.2px;
    }

    .subtitle {
      font-size: 0.84rem;
      color: #607080;
      margin: 0;
      line-height: 1.45;
    }

    .section-title {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      margin: 14px 0 10px;
      padding-top: 12px;
      border-top: 1px solid #edf0f5;
    }

    .section-title span {
      font-weight: 700;
      color: #1746d4;
      font-size: 0.95rem;
    }

    .badge {
      font-size: 0.68rem;
      color: #1746d4;
      background: #eef3ff;
      padding: 6px 9px;
      border-radius: 999px;
      white-space: nowrap;
    }

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

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

    .full { grid-column: 1 / -1; }

    label {
      display: block;
      font-weight: 600;
      margin: 0 0 6px;
      color: #263238;
      font-size: 0.78rem;
    }

    input, textarea, select {
      width: 100%;
      padding: 11px 12px;
      border-radius: 12px;
      border: 1px solid #d7deea;
      background: #fbfcff;
      font-size: 0.86rem;
      display: block;
      font-family: 'Comfortaa', cursive;
      outline: none;
      transition: 0.18s ease;
    }

    input:focus, textarea:focus, select:focus {
      border-color: #1746d4;
      box-shadow: 0 0 0 4px rgba(23,70,212,0.08);
      background: #ffffff;
    }

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

    input[type="file"] {
      background: #fafafa;
      font-size: 0.82rem;
    }

    ::placeholder { color: #9aa7b6; }

    small {
      display: block;
      margin-top: 6px;
      font-size: 0.72rem;
      color: #73808d;
      line-height: 1.35;
    }

    .error-message {
      color: #d93025;
      font-size: 0.76rem;
      margin-top: 6px;
      display: none;
      text-align: left;
    }

    .conditional-panel {
      display: none;
      margin-top: 12px;
      padding: 14px;
      border-radius: 18px;
      border: 1px solid #e0e7f5;
      background: linear-gradient(180deg, #ffffff 0%, #f8faff 100%);
    }

    .conditional-panel.active {
      display: block;
      animation: fadeIn 0.18s ease;
    }

    @keyframes fadeIn {
      from { opacity: 0; transform: translateY(4px); }
      to { opacity: 1; transform: translateY(0); }
    }

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

    .choice-pill {
      position: relative;
      display: inline-flex;
      align-items: center;
      gap: 7px;
      padding: 9px 11px;
      border-radius: 999px;
      border: 1px solid #d7deea;
      background: #ffffff;
      cursor: pointer;
      font-size: 0.78rem;
      user-select: none;
    }

    .choice-pill input {
      width: auto;
      margin: 0;
      accent-color: #1746d4;
    }

    .choice-pill:has(input:checked) {
      border-color: #1746d4;
      background: #eef3ff;
      color: #1746d4;
      font-weight: 700;
    }

    .choice-pill.readonly {
      background: #eef1f5;
      color: #68727f;
      border-color: #d5dce7;
      cursor: not-allowed;
      opacity: 0.95;
    }

    .choice-pill.readonly input {
      cursor: not-allowed;
    }

    .file-list {
      margin-top: 8px;
      font-size: 0.76rem;
      color: #536170;
      line-height: 1.45;
      word-break: break-word;
    }

    .actions {
      display: grid;
      grid-template-columns: 1fr;
      gap: 10px;
      margin-top: 16px;
    }

    button {
      width: 100%;
      padding: 13px 14px;
      background: #1746d4;
      color: white;
      font-size: 0.95rem;
      font-weight: 700;
      border: none;
      border-radius: 13px;
      cursor: pointer;
      font-family: 'Comfortaa', cursive;
      box-shadow: 0 10px 22px rgba(23,70,212,0.22);
    }

    button:hover { background: #0e35b1; }
    button:disabled { background: #96a0ad; cursor: not-allowed; box-shadow: none; }


    .inline-action {
      margin-top: 12px;
      display: grid;
      grid-template-columns: 1fr;
    }

    .secondary-button {
      background: #eef3ff;
      color: #1746d4;
      border: 1px solid #bfd0ff;
      box-shadow: none;
    }

    .secondary-button:hover {
      background: #dfe8ff;
    }

    .offboarding-search-wrap {
      max-width: 520px;
    }

    .employee-search-results {
      display: none;
      margin-top: 10px;
      border: 1px solid #d7deea;
      border-radius: 14px;
      background: #ffffff;
      overflow: hidden;
    }

    .employee-result-item {
      width: 100%;
      padding: 10px 12px;
      border: 0;
      border-bottom: 1px solid #edf0f5;
      background: #ffffff;
      color: #263238;
      text-align: left;
      box-shadow: none;
      border-radius: 0;
      font-size: 0.78rem;
      font-weight: 600;
    }

    .employee-result-item:hover {
      background: #eef3ff;
      color: #1746d4;
    }

    .employee-result-item:last-child {
      border-bottom: 0;
    }

    footer {
      margin-top: 14px;
      font-size: 0.72rem;
      text-align: center;
      color: #8792a0;
    }



    .custom-modal-backdrop {
      position: fixed;
      inset: 0;
      display: none;
      align-items: center;
      justify-content: center;
      background: rgba(20, 28, 45, 0.52);
      z-index: 9999;
      padding: 18px;
    }

    .custom-modal-backdrop.active { display: flex; }

    .custom-modal-box {
      width: min(420px, 100%);
      background: #ffffff;
      border-radius: 20px;
      border: 1px solid #dfe6f5;
      box-shadow: 0 24px 70px rgba(23,70,212,0.22);
      padding: 20px;
      text-align: center;
      animation: modalPop 0.18s ease;
    }

    @keyframes modalPop {
      from { opacity: 0; transform: translateY(8px) scale(0.98); }
      to { opacity: 1; transform: translateY(0) scale(1); }
    }

    .custom-modal-icon {
      width: 48px;
      height: 48px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      border-radius: 999px;
      background: #eef3ff;
      color: #1746d4;
      font-size: 24px;
      margin-bottom: 10px;
    }

    .custom-modal-title {
      margin: 0 0 8px;
      color: #1746d4;
      font-size: 1rem;
      font-weight: 700;
    }

    .custom-modal-message {
      margin: 0 0 16px;
      color: #536170;
      font-size: 0.84rem;
      line-height: 1.55;
    }

    .custom-modal-button {
      width: auto;
      min-width: 120px;
      padding: 11px 18px;
      border-radius: 12px;
      box-shadow: none;
      font-size: 0.86rem;
    }

	.mom-info-box {
	  margin-top: 12px;
	  padding: 12px 14px;
	  border-radius: 12px;
	  background: #eef3ff;
	  border: 1px solid #cbd8ff;
	  color: #1746d4;
	  font-size: 0.78rem;
	  line-height: 1.55;
	}
	
	.mom-disclaimer-box {
	  padding: 14px 16px;
	  border-radius: 14px;
	  background: #fffaf0;
	  border: 1px solid #f1d9a6;
	  color: #5f4b1f;
	  font-size: 0.78rem;
	  line-height: 1.6;
	}

	.mom-disclaimer-box p {
	  margin: 0 0 10px;
	}

	.mom-disclaimer-box p:last-child {
	  margin-bottom: 0;
	}

	.mom-disclaimer-box ul {
	  margin: 8px 0 12px 18px;
	  padding: 0;
	}

	.mom-disclaimer-box li {
	  margin-bottom: 6px;
	}

	.mom-consent-row {
	  display: flex;
	  align-items: flex-start;
	  gap: 10px;
	  margin-top: 12px;
	  padding: 12px 14px;
	  border-radius: 12px;
	  background: #eef3ff;
	  border: 1px solid #cbd8ff;
	  cursor: pointer;
	}

	.mom-consent-row input {
	  width: auto;
	  margin: 2px 0 0;
	  flex: 0 0 auto;
	}

	.mom-consent-row span {
	  font-size: 0.78rem;
	  line-height: 1.5;
	  color: #1746d4;
	}

    @media (max-width: 680px) {
      body { padding: 10px; align-items: flex-start; }
      .card { padding: 16px; border-radius: 18px; }
      .header { grid-template-columns: 1fr; text-align: center; gap: 10px; }
      .header img { width: 100%; height: 95px; }
      .grid, .grid-3 { grid-template-columns: 1fr; }
      .badge { display: none; }
      h1 { font-size: 1.15rem; }
    }

/* ==========================================================
   MOM TIME AND PARTICIPANTS
   ========================================================== */

.mom-time-select {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid #d8dfec;
  border-radius: 12px;
  background: #ffffff;
  color: #1f2937;
  font-family: inherit;
  font-size: 0.86rem;
  cursor: pointer;
}

.mom-time-select:focus {
  outline: none;
  border-color: #3153df;
  box-shadow: 0 0 0 3px rgba(49, 83, 223, 0.12);
}

.mom-participant-entry {
  display: flex;
  align-items: stretch;
  gap: 10px;
}

.mom-participant-entry input {
  flex: 1;
  min-width: 0;
}

.mom-participant-add-button {
  min-width: 110px;
  padding: 10px 16px;
  border: 0;
  border-radius: 12px;
  background: #3153df;
  color: #ffffff;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.mom-participant-add-button:hover {
  background: #2442c8;
}

.mom-participant-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.mom-participant-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid #dfe5f2;
  border-radius: 12px;
  background: #f7f9ff;
}

.mom-participant-name {
  min-width: 0;
  color: #25324b;
  font-size: 0.84rem;
  overflow-wrap: anywhere;
}

.mom-participant-remove {
  flex: 0 0 auto;
  border: 0;
  background: transparent;
  color: #d14343;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.mom-participant-empty {
  padding: 10px 12px;
  border: 1px dashed #d8dfec;
  border-radius: 12px;
  color: #8791a5;
  font-size: 0.8rem;
}

@media (max-width: 640px) {
  .mom-participant-entry {
    flex-direction: column;
  }

  .mom-participant-add-button {
    width: 100%;
  }
}
/* ==========================================================
   MOM PARTICIPANT CHIP FIX
   ========================================================== */

.mom-participant-entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  gap: 10px;
  width: 100%;
}

.mom-participant-entry input {
  width: 100%;
  min-width: 0;
  height: 42px;
  box-sizing: border-box;
}

.mom-participant-add-button {
  width: auto;
  min-width: 110px;
  height: 42px;
  padding: 9px 16px;
  border: 0;
  border-radius: 12px;
  background: #3153df;
  color: #ffffff;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.mom-participant-list {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  width: 100%;
}

.mom-participant-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  min-height: 34px;
  padding: 6px 8px 6px 12px;
  border: 1px solid #d8e0ff;
  border-radius: 999px;
  background: #eef2ff;
  box-sizing: border-box;
}

.mom-participant-name {
  display: block;
  min-width: 0;
  max-width: 260px;
  color: #25324b;
  font-size: 0.82rem;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mom-participant-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #d14343;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.mom-participant-remove:hover {
  background: rgba(209, 67, 67, 0.12);
}

.mom-participant-empty {
  width: 100%;
  padding: 10px 12px;
  border: 1px dashed #d8dfec;
  border-radius: 12px;
  color: #8791a5;
  font-size: 0.8rem;
  box-sizing: border-box;
}

@media (max-width: 640px) {
  .mom-participant-entry {
    grid-template-columns: 1fr;
  }

  .mom-participant-add-button {
    width: 100%;
  }

  .mom-participant-list {
    align-items: stretch;
  }

  .mom-participant-item {
    width: 100%;
    justify-content: space-between;
    border-radius: 12px;
  }

  .mom-participant-name {
    max-width: none;
    white-space: normal;
    overflow-wrap: anywhere;
  }
}
/* ==========================================================
   MOM RESPONSIVE FORM LAYOUT
   ========================================================== */

.mom-layout-grid {
  display: grid;
  grid-template-columns:
    minmax(0, 1.15fr)
    minmax(0, 1fr);
  grid-template-areas:
    "title        date"
    "title        start"
    "title        end"
    "leader       location"
    "participants file";
  align-items: start;
  gap: 14px 16px;
}

.mom-title-field {
  grid-area: title;
}

.mom-date-field {
  grid-area: date;
}

.mom-start-field {
  grid-area: start;
}

.mom-end-field {
  grid-area: end;
}

.mom-leader-field {
  grid-area: leader;
}

.mom-location-field {
  grid-area: location;
}

.mom-participants-field {
  grid-area: participants;
  min-width: 0;
}

.mom-file-field {
  grid-area: file;
  min-width: 0;
}

.mom-title-field textarea {
  width: 100%;
  min-height: 160px;
  padding: 11px 12px;
  border: 1px solid #d8dfec;
  border-radius: 12px;
  box-sizing: border-box;
  resize: vertical;
  font-family: inherit;
  font-size: 0.86rem;
  color: #25324b;
  background: #ffffff;
}

.mom-title-field textarea:focus {
  outline: none;
  border-color: #3153df;
  box-shadow:
    0 0 0 3px rgba(49, 83, 223, 0.12);
}

.mom-title-field small {
  display: block;
  margin-top: 6px;
}

.mom-file-field input[type="file"] {
  width: 100%;
  box-sizing: border-box;
}

.mom-participants-field,
.mom-file-field {
  height: 100%;
}

@media (max-width: 720px) {
  .mom-layout-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "title"
      "date"
      "start"
      "end"
      "leader"
      "location"
      "participants"
      "file";
    gap: 13px;
  }

  .mom-title-field textarea {
    min-height: 110px;
  }

  .mom-participant-entry {
    grid-template-columns: minmax(0, 1fr);
  }

  .mom-participant-add-button {
    width: 100%;
  }

  .mom-participant-item {
    width: 100%;
    justify-content: space-between;
    border-radius: 12px;
  }

  .mom-participant-name {
    max-width: none;
    white-space: normal;
    overflow-wrap: anywhere;
  }
}


/* MOM FINAL BEAUTIFICATION START */

#panelMom {
  background:
    linear-gradient(
      180deg,
      rgba(248, 250, 255, 0.96) 0%,
      rgba(255, 255, 255, 1) 100%
    );
  border-color: #dbe3f4;
  box-shadow:
    0 10px 28px rgba(38, 62, 130, 0.07);
}

#panelMom .section-title {
  margin-bottom: 14px;
}

#panelMom .section-title span {
  font-weight: 700;
  letter-spacing: 0.01em;
}

#panelMom .badge {
  padding: 6px 11px;
  border-radius: 999px;
  background: #eef2ff;
  color: #3153df;
  font-size: 0.74rem;
  font-weight: 600;
}

.mom-layout-grid {
  gap: 15px 16px;
}

.mom-layout-grid label {
  display: block;
  margin-bottom: 6px;
  color: #1f2b45;
  font-weight: 600;
}

.mom-layout-grid input,
.mom-layout-grid select,
.mom-layout-grid textarea {
  border: 1px solid #d6deee;
  background: #ffffff;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

.mom-layout-grid input:hover,
.mom-layout-grid select:hover,
.mom-layout-grid textarea:hover {
  border-color: #b8c4de;
}

.mom-layout-grid input:focus,
.mom-layout-grid select:focus,
.mom-layout-grid textarea:focus {
  outline: none;
  border-color: #3c5be7;
  background: #ffffff;
  box-shadow:
    0 0 0 3px rgba(60, 91, 231, 0.12);
}

.mom-title-field textarea {
  min-height: 125px;
  max-height: 210px;
  line-height: 1.55;
  resize: vertical;
}

.mom-title-field small,
.mom-file-field small {
  color: #7b879d;
  line-height: 1.45;
}

.mom-date-field input,
.mom-start-field select,
.mom-end-field select,
.mom-location-field input,
.mom-leader-field input {
  min-height: 42px;
}

.mom-participant-entry {
  gap: 10px;
}

.mom-participant-add-button {
  min-width: 110px;
  box-shadow:
    0 6px 14px rgba(49, 83, 223, 0.18);
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease;
}

.mom-participant-add-button:hover {
  transform: translateY(-1px);
  box-shadow:
    0 8px 18px rgba(49, 83, 223, 0.24);
}

.mom-participant-add-button:active {
  transform: translateY(0);
}

.mom-participant-list {
  min-height: 38px;
}

.mom-participant-item {
  border-color: #d7dfff;
  background: #f0f3ff;
  box-shadow:
    0 2px 6px rgba(49, 83, 223, 0.06);
}

.mom-participant-remove {
  border: 1px solid rgba(209, 67, 67, 0.14);
  background: rgba(255, 255, 255, 0.72);
}

.mom-participant-empty {
  padding: 9px 12px;
  background: rgba(250, 251, 255, 0.7);
}

/* Tombol file bawaan browser */
.mom-file-field input[type="file"] {
  min-height: 44px;
  padding: 5px;
  border: 1px solid #d6deee;
  border-radius: 12px;
  background: #ffffff;
  color: #68748a;
  font-family: inherit;
  cursor: pointer;
}

.mom-file-field input[type="file"]::file-selector-button {
  margin-right: 10px;
  padding: 8px 13px;
  border: 0;
  border-radius: 9px;
  background: #eef2ff;
  color: #3153df;
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
  transition:
    background 0.15s ease,
    color 0.15s ease;
}

.mom-file-field input[type="file"]::file-selector-button:hover {
  background: #3153df;
  color: #ffffff;
}

#panelMom .info-box,
#panelMom .notice,
#panelMom .mom-info {
  border: 1px solid #d4defd;
  border-radius: 12px;
  background: #f3f6ff;
  line-height: 1.55;
}

@media (max-width: 720px) {
  #panelMom {
    padding-left: 14px;
    padding-right: 14px;
  }

  .mom-title-field textarea {
    min-height: 105px;
  }

  .mom-layout-grid {
    gap: 13px;
  }

  .mom-participant-add-button {
    min-height: 42px;
  }

  .mom-file-field input[type="file"] {
    width: 100%;
  }
}

/* MOM FINAL BEAUTIFICATION END */
