/* Shared by admin and portal: date picker, autocomplete, badges. */
.fma-ltr { direction: ltr; text-align: left; unicode-bidi: plaintext; }
.fma-jdp {
  position: absolute; z-index: 100100; width: 260px; background: #fff; color: #1d2733;
  border: 1px solid #d0d7de; border-radius: 10px; box-shadow: 0 10px 30px rgba(15, 30, 50, .18);
  padding: 8px; font-family: inherit; font-size: 13px;
}
.fma-jdp-head { display: flex; align-items: center; justify-content: space-between; gap: 4px; margin-bottom: 6px; }
.fma-jdp-head button { border: 0; background: #f1f4f8; border-radius: 6px; width: 30px; height: 30px; cursor: pointer; font-size: 18px; line-height: 1; color: #1d2733; }
.fma-jdp-head select, .fma-jdp-head input { font-family: inherit; font-size: 13px; padding: 2px 4px; border: 1px solid #d0d7de; border-radius: 6px; min-height: 28px; background: #fff; color: #1d2733; }
.fma-jdp-head input { width: 64px; direction: ltr; }
.fma-jdp-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; }
.fma-jdp-grid b { font-weight: 600; color: #6b7785; padding: 4px 0; font-size: 12px; }
.fma-jdp-grid button { border: 0; background: transparent; border-radius: 6px; height: 30px; cursor: pointer; font-family: inherit; font-size: 13px; color: #1d2733; }
.fma-jdp-grid button:hover { background: #e8f0f8; }
.fma-jdp-grid button.today { outline: 1px solid #1f5f8b; }
.fma-jdp-grid button.sel { background: #1f5f8b; color: #fff; }
.fma-jdp-grid button.fri { color: #c0392b; }
.fma-jdp-grid button.sel.fri { color: #fff; }
.fma-jdp-foot { display: flex; justify-content: space-between; margin-top: 6px; }
.fma-jdp-foot button { border: 0; background: none; color: #1f5f8b; cursor: pointer; font-family: inherit; font-size: 13px; padding: 4px 6px; }

.fma-ac { display: none; position: absolute; z-index: 100050; top: 100%; inset-inline-start: 0; min-width: 320px; max-height: 300px; overflow: auto; background: #fff; border: 1px solid #d0d7de; border-radius: 8px; box-shadow: 0 8px 24px rgba(15, 30, 50, .15); }
.fma-ac button { display: block; width: 100%; text-align: start; border: 0; background: none; padding: 8px 10px; cursor: pointer; font-family: inherit; font-size: 13px; border-bottom: 1px solid #f0f2f5; color: #1d2733; }
.fma-ac button:hover { background: #eef5fb; }
.fma-ac-empty { padding: 10px; color: #6b7785; }

.fma-badge { display: inline-block; padding: 1px 9px; border-radius: 999px; font-size: 12px; line-height: 20px; background: #eef1f5; color: #3b4754; white-space: nowrap; }
.fma-badge-green { background: #e3f6ec; color: #067647; }
.fma-badge-red { background: #fde8e7; color: #b42318; }
.fma-badge-amber { background: #fff3d6; color: #8a5a00; }
.fma-badge-blue { background: #e4f0fb; color: #1f5f8b; }
.fma-badge-gray { background: #eef1f5; color: #5b6673; }
.fma-muted { color: #6b7785; }
.fma-req { color: #b42318; }
.fma-choices label { display: inline-flex; align-items: center; gap: 4px; margin-left: 14px; margin-bottom: 4px; font-weight: 400; }
