/* Greenlight admin — small additions on top of the Ameen template (main/css/style.css). */

.brand-logo .gl-brand {
  font-weight: 700;
  font-size: 18px;
  line-height: 60px;
  color: #fff;
  white-space: nowrap;
}

.brand-logo .gl-brand span {
  color: #6ed3cf;
}

.gl-stat {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px;
}

.gl-stat__icon {
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #fff;
  background: #6ed3cf;
}

.gl-stat__icon.bg-1 { background: #6ed3cf; }
.gl-stat__icon.bg-2 { background: #28a745; }
.gl-stat__icon.bg-3 { background: #ffc107; }
.gl-stat__icon.bg-4 { background: #17a2b8; }
.gl-stat__icon.bg-5 { background: #dc3545; }

.gl-stat__value {
  font-size: 26px;
  font-weight: 600;
  line-height: 1.1;
  margin: 0;
}

.gl-stat__label {
  margin: 0;
  color: #828282;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.gl-tabs { margin-bottom: 18px; }
.gl-tabs .nav-link { cursor: pointer; }

.gl-filter-bar { row-gap: 12px; }
.gl-filter-bar .form-control,
.gl-filter-bar .custom-select { min-width: 140px; }

.gl-kv {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0;
  border-bottom: 1px solid #f1f2f0;
  font-size: 14px;
}
.gl-kv:last-child { border-bottom: none; }
.gl-kv .gl-kv-label { color: #828282; flex: 0 0 auto; }
.gl-kv .gl-kv-value { text-align: right; word-break: break-word; }
.gl-kv-total { border-top: 2px solid #e1e4dc; margin-top: 6px; padding-top: 12px; font-weight: 700; }

.gl-pre {
  background: #12283a;
  color: #e7f0ea;
  padding: 16px;
  border-radius: 6px;
  font-size: 12.5px;
  overflow: auto;
  max-height: 420px;
  white-space: pre-wrap;
  word-break: break-word;
}

.gl-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.gl-muted { color: #828282; }
.gl-nowrap { white-space: nowrap; }

.table td, .table th { vertical-align: middle; }
.table .gl-client-email { font-size: 12px; color: #828282; }

.login-bg .gl-brand-login {
  font-weight: 700;
  font-size: 22px;
  color: #12283a;
}
.login-bg .gl-brand-login span { color: #1e7145; }

/* The template's fixed .header uses z-index 99999999 (and #preloader even higher),
   so they paint over every Bootstrap modal (z-index 1050) and clip the dialog's
   title. Give the layers a sane order: header < preloader < backdrop < modal. */
.header { z-index: 1030 !important; }
#preloader { z-index: 1040 !important; }
.modal-backdrop { z-index: 1050 !important; }
.modal { z-index: 1055 !important; }

/* Vertically center the dialog (Bootstrap 4 aligns it to the top by default). */
.modal-dialog {
  display: flex;
  align-items: center;
  min-height: calc(100% - 3.5rem);
}

/* Show modals instantly and dead-center, so they never render half-faded or
   shifted up behind the header. */
.modal.fade { transition: none; }
.modal.fade .modal-dialog { transform: none; }

/* Compact service badge with hover-for-details affordance */
.gl-service-badge {
  display: inline-block;
  font-weight: 500;
  color: #1a3628;
  background-color: #eaf5ee;
  border: 1px solid #c7e5d2;
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 12px;
  line-height: 1.35;
  white-space: nowrap;
  cursor: help;
  transition: all .15s ease-in-out;
}
.gl-service-badge:hover {
  background-color: #d7ecdf;
  border-color: #aedec0;
  color: #10241b;
}
