#globalLoadingOverlay{
position:fixed;
top:0;
left:0;
width:100%;
height:100%;
background:rgba(255,255,255,0.6);
z-index:9999;
display:none;
align-items:center;
justify-content:center;
backdrop-filter: blur(2px);
}

.loading-box{
background:white;
padding:20px 35px;
border-radius:10px;
box-shadow:0 8px 20px rgba(0,0,0,0.15);
text-align:center;
font-size:14px;
}
/* Spinner in front of the select2 "Mencari..." row while a search request runs. */
.select2-results__option.loading-results::before {
  content: "";
  display: inline-block;
  width: 0.9em;
  height: 0.9em;
  margin-right: 0.5em;
  vertical-align: -0.1em;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: select2-search-spin 0.7s linear infinite;
}

@keyframes select2-search-spin {
  to { transform: rotate(360deg); }
}

/* Red border on a select2 box whose field failed validation. */
.select2-container.is-invalid .select2-selection {
  border-color: var(--bs-danger, #ff3e1d);
}

/* Radio groups (segmented buttons or option cards) wrapped in `.option-group`. */
.option-group.btn-group > .btn {
  flex: 1 1 0;
}

.option-group.is-invalid .btn,
.option-group.is-invalid .custom-option {
  border-color: var(--bs-danger, #ff3e1d);
}

/* Form split into sections: title and hint on the left, fields on the right (stacked below lg). */
.form-section-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.form-section-title .bx {
  color: var(--bs-primary, #696cff);
  font-size: 1.15rem;
}

.form-section-hint {
  font-size: 0.8125rem;
  color: var(--bs-secondary-color, #8592a3);
  margin-bottom: 1rem;
}

/* Data tables with wrapping text columns; add `dt-fluid` to the table. Short columns use `text-nowrap`. */
table.dt-fluid thead th,
table.dt-fluid tbody td {
  font-size: 13px;
  vertical-align: middle;
  color: #5f6f89;
}

table.dt-fluid thead th {
  white-space: nowrap;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: #384551;
  background-color: #f4f5f7;
  border-bottom: 0;
}

table.dt-fluid thead th:first-child {
  border-radius: 0.5rem 0 0 0.5rem;
}

table.dt-fluid thead th:last-child {
  border-radius: 0 0.5rem 0.5rem 0;
}

table.dt-fluid tbody td {
  border-bottom: 1px solid #eceef1;
}

table.dt-fluid tbody td {
  white-space: normal;
  overflow-wrap: anywhere;
  padding-top: 0.45rem;
  padding-bottom: 0.45rem;
  line-height: 1.35;
}

/* At most two lines; the full text is in the title attribute. */
table.dt-fluid .dt-clamp {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

table.dt-fluid tbody td.text-nowrap {
  white-space: nowrap;
  overflow-wrap: normal;
}

table.dt-fluid tbody tr:hover td {
  background-color: rgba(105, 108, 255, 0.04);
  transition: background-color 0.2s ease;
}

/* Drag handle on the right edge of a resizable header cell. */
table.dt-fluid thead th.dt-resizable {
  position: relative;
}

.dt-resize-handle {
  position: absolute;
  top: 20%;
  right: 0;
  width: 9px;
  height: 60%;
  cursor: col-resize;
  touch-action: none;
  user-select: none;
  display: none;
}

.dt-resize-handle::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  right: 3px;
  width: 2px;
  border-radius: 1px;
  background: currentColor;
  opacity: 0.15;
}

.dt-resize-handle:hover::after,
.dt-resize-handle.is-dragging::after {
  background: var(--bs-primary, #696cff);
  opacity: 1;
}

@media (min-width: 992px) {
  .dt-resize-handle {
    display: block;
  }
}

/* Toolbar above a data table: search box, filter, sort and column menus. */
.dt-toolbar .dt-search {
  width: 20rem;
  max-width: 100%;
}

.dt-toolbar .dropdown-menu label.dropdown-item {
  cursor: pointer;
}

/* Copyright line at the bottom of the sidebar; hidden while the sidebar is collapsed. */
.menu-vertical .menu-copyright {
  flex-shrink: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-top-color: var(--bs-border-color, #e6e8eb);
}

.layout-menu-collapsed:not(.layout-menu-hover) .menu-vertical .menu-copyright {
  display: none;
}

.dt-toolbar .btn-outline-secondary,
.dt-toolbar .input-group-text {
  background-color: var(--bs-card-bg, #fff);
}

.dt-toolbar .dt-filter-menu {
  width: 22rem;
  max-width: calc(100vw - 2rem);
}

/* Row number column and action column stay narrow; the action menu is the last column. */
table.dt-fluid thead th:first-child,
table.dt-fluid tbody td:first-child {
  width: 1%;
  padding-left: 0.75rem;
  padding-right: 0.25rem;
}

table.dt-fluid tbody td:last-child .btn-icon {
  --bs-btn-padding-x: 0.25rem;
}

table.dt-fluid .dropdown-item > i {
  margin-right: 0.5rem;
}

/* Minimum widths for text columns of tables that scroll sideways. */
table.dt-fluid .dt-min-md {
  min-width: 150px;
}

table.dt-fluid .dt-min-lg {
  min-width: 240px;
}

/* Cells pinned by FixedColumns cover the columns that scroll underneath them. */
table.dt-fluid tbody td.dtfc-fixed-left,
table.dt-fluid tbody td.dtfc-fixed-right {
  z-index: 2;
  background-color: var(--bs-card-bg, #fff);
}

table.dt-fluid thead th.dtfc-fixed-left,
table.dt-fluid thead th.dtfc-fixed-right {
  z-index: 3;
  background-color: #f4f5f7;
}

table.dt-fluid tbody tr:hover td.dtfc-fixed-left,
table.dt-fluid tbody tr:hover td.dtfc-fixed-right {
  background-color: #f7f7ff;
}

table.dt-fluid td.dtfc-fixed-left {
  box-shadow: 1px 0 0 #eceef1;
}

table.dt-fluid td.dtfc-fixed-right {
  box-shadow: -1px 0 0 #eceef1;
}

/* A pinned cell whose menu is open sits above the pinned cells of the rows below it. */
table.dt-fluid td.dtfc-fixed-left:has(.dropdown-menu.show),
table.dt-fluid td.dtfc-fixed-right:has(.dropdown-menu.show) {
  z-index: 5;
}

/* Read-state markers of the letter lists: a bold row with a coloured bar on its left edge. */
table.dt-fluid tbody tr.row-unread-tujuan > td,
table.dt-fluid tbody tr.row-need-dispo > td,
table.dt-fluid tbody tr.row-unread-cc > td {
  font-weight: 600;
}

table.dt-fluid tbody tr.row-unread-tujuan > td {
  background-color: rgba(105, 108, 255, 0.07);
}

table.dt-fluid tbody tr.row-unread-tujuan > td:first-child {
  box-shadow: inset 3px 0 0 #696cff;
}

table.dt-fluid tbody tr.row-need-dispo > td:first-child {
  box-shadow: inset 3px 0 0 #008a00;
}

table.dt-fluid tbody tr.row-unread-cc > td:first-child {
  box-shadow: inset 3px 0 0 #cc0dcc;
}

table.dt-fluid tbody tr.row-unread-tujuan > td.dtfc-fixed-left,
table.dt-fluid tbody tr.row-unread-tujuan > td.dtfc-fixed-right {
  background-color: #f3f3ff;
}

.dt-dot {
  display: inline-block;
  width: 0.55rem;
  height: 0.55rem;
  margin-right: 0.35rem;
  border-radius: 50%;
}

.dt-dot-unread-recipient {
  background: #696cff;
}

.dt-dot-need-disposition {
  background: #008a00;
}

.dt-dot-unread-cc {
  background: #cc0dcc;
}

/* Agenda history panel on the meeting page: wider than the default offcanvas on large screens. */
.offcanvas.agenda-history {
  width: 36rem;
  max-width: 100%;
}

/* Result and conclusion in the agenda history: about five lines, faded out, until expanded. */
.agenda-history .history-rich {
  max-height: 7.5em;
  overflow: hidden;
  position: relative;
  overflow-wrap: anywhere;
}

.agenda-history .history-rich.is-cut:not(.is-expanded)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2.5em;
  background: linear-gradient(to bottom, transparent, var(--bs-offcanvas-bg, #fff));
}

.agenda-history .history-rich.is-expanded {
  max-height: none;
}

.agenda-history .history-rich > :last-child {
  margin-bottom: 0;
}

.agenda-history .history-rich p,
.agenda-history .history-rich ul,
.agenda-history .history-rich ol {
  margin-bottom: 0.25rem;
}

.agenda-history .history-rich img {
  max-width: 100%;
  height: auto;
}

.agenda-history .history-rich table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
}

/* Employee options in the select2 dropdown (employee-select.js): name, position and unit. */
.employee-option {
  padding: 0.125rem 0;
}

.employee-option-text {
  min-width: 0;
  line-height: 1.3;
}

.employee-option-muted {
  color: var(--bs-secondary-color, #8592a3);
}

.select2-results__option--highlighted .employee-option-muted {
  color: inherit;
  opacity: 0.85;
}

/* Discussion panel of a minutes item: comments, replies and approvals above the composer. */
.offcanvas.discussion-panel {
  width: 34rem;
  max-width: 100%;
}

.discussion-panel .discussion-item,
.discussion-panel .discussion-event {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--bs-border-color, #e6e8eb);
}

.discussion-panel .discussion-reply {
  padding: 0.5rem 0 0.5rem 0.75rem;
  border-bottom: 0;
  border-left: 2px solid var(--bs-border-color, #e6e8eb);
}

.discussion-panel .discussion-item.is-new > .d-flex {
  background: rgba(105, 108, 255, 0.06);
  border-radius: 0.375rem;
  margin: -0.25rem;
  padding: 0.25rem;
}

.discussion-panel .discussion-text {
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.discussion-panel .discussion-mention {
  color: var(--bs-primary, #696cff);
  font-weight: 500;
}

.discussion-panel .discussion-mentions {
  top: 100%;
  left: 0;
  width: 100%;
  max-height: 16rem;
  overflow-y: auto;
}

.discussion-count {
  position: relative;
}

.discussion-count .discussion-unread {
  position: absolute;
  top: -0.35rem;
  right: -0.35rem;
  font-size: 0.625rem;
}

/* Side column of the risalah approval page; it stays in view while the minutes scroll. */
@media (min-width: 992px) {
  .approval-side {
    position: sticky;
    top: 5.5rem;
  }
}
