
/* MOFT portal landing/dashboard - Admin UX v2.15 */
body.portal-dashboard {
  min-height: 100vh;
  background: #f4f7f9;
  color: #243442;
  font-size: 14px;
}

.portal-dashboard .mainWrapper,
.portal-dashboard .contentWrapper {
  min-height: 100vh;
}

.portal-dashboard .mainHeader {
  padding: 0;
  background: #fff;
  border-top: 4px solid #25a9df;
  box-shadow: 0 4px 18px rgba(15,23,42,.07);
}

.portal-dashboard .mainHeader > .container-fluid {
  padding: 0;
}

.portal-dashboard .topHeader {
  padding: 8px 24px;
  background: linear-gradient(100deg, var(--primary-color-dark) 0%, var(--primary-color) 65%, #2697cc 135%);
  color: #fff;
}

.portal-dashboard .topHeader .header-menu {
  display: inline-flex;
  vertical-align: middle;
  margin-left: 6px;
}

.portal-dashboard .topHeader .nav-link,
.portal-dashboard .topHeader .header-menu button {
  border: 0;
  border-radius: 10px;
  min-height: 36px;
  padding: 8px 12px;
  background: rgba(255,255,255,.08);
  color: #fff;
}

.portal-dashboard #versionClient {
  display: inline-flex;
  margin-left: 8px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(0,0,0,.10);
  color: rgba(255,255,255,.78);
  font-size: 10px;
}

.portal-dashboard .bottomHeader {
  display: none;
}

.portal-dashboard-main {
  padding: 28px 28px 42px;
}

.portal-dashboard-shell {
  width: 100%;
  max-width: 1480px;
  margin: 0 auto;
}

.portal-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 22px;
  padding: 22px 24px;
  border: 1px solid #dfe8ee;
  border-radius: 18px;
  background: linear-gradient(135deg, #ffffff 0%, #f7fbfd 100%);
  box-shadow: 0 8px 24px rgba(15,23,42,.05);
}

.portal-hero-brand {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.portal-logo-mark {
  width: 78px;
  height: 78px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 78px;
  padding: 12px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid #e2ebf0;
}

.portal-logo-mark img {
  width: 100%;
  max-height: 52px;
  object-fit: contain;
}

.portal-eyebrow,
.portal-card-kicker {
  color: #258bd1;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.portal-hero-copy h1 {
  margin: 4px 0 6px;
  color: #132638;
  font-size: 28px;
  font-weight: 600;
}

.portal-hero-copy p {
  max-width: 760px;
  margin: 0;
  color: #687b8a;
  line-height: 1.5;
}

.portal-hero-hint {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  max-width: 330px;
  padding: 13px 15px;
  border-radius: 14px;
  background: #eef7fd;
  color: #416478;
}

.portal-hero-hint > i {
  margin-top: 2px;
  color: #258bd1;
}

.portal-hero-hint div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.portal-hero-hint strong {
  color: #254a61;
}

.portal-hero-hint span {
  font-size: 12px;
  line-height: 1.4;
}

.portal-workspace-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(390px, .9fr);
  gap: 22px;
  align-items: start;
}

.portal-card {
  min-width: 0;
  border: 1px solid #dfe8ee;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15,23,42,.05);
  overflow: hidden;
}

.portal-card-header {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 18px 20px;
  border-bottom: 1px solid #e9eff3;
  background: #fbfdfe;
}

.portal-card-icon {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 40px;
  border-radius: 12px;
  background: #eef6ff;
  color: #258bd1;
}

.portal-card-header h2 {
  margin: 3px 0 4px;
  color: #1d3040;
  font-size: 18px;
  font-weight: 600;
}

.portal-card-header p {
  margin: 0;
  color: #718291;
  font-size: 12px;
}

.portal-card-body {
  padding: 18px 20px 20px;
}

.portal-filter-section {
  padding: 15px;
  border: 1px solid #e8eef2;
  border-radius: 14px;
  background: #fbfcfd;
}

.portal-filter-section + .portal-filter-section {
  margin-top: 14px;
}

.portal-filter-section-title {
  margin-bottom: 12px;
  color: #344957;
  font-size: 13px;
  font-weight: 600;
}

.portal-dashboard .form-group {
  margin-bottom: 0;
}

.portal-dashboard .form-group label {
  display: block;
  margin-bottom: 5px;
  color: #516473;
  font-size: 12px;
  font-weight: 500;
}

.portal-dashboard .form-control,
.portal-dashboard .k-input,
.portal-dashboard .k-picker {
  min-height: 39px;
  border-radius: 9px;
  border-color: #d5e0e7;
  background: #fff;
}

.portal-autocomplete-field {
  position: relative;
}

.portal-search-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #e9eff3;
}

.portal-search-actions .btn-primary {
  min-height: 40px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 10px;
}

.portal-results-card {
  position: sticky;
  top: 18px;
  min-height: 640px;
}

.portal-results-header .searchResultNum {
  display: inline-block;
  margin-top: 4px;
  color: #738696;
}

.portal-results-body {
  position: relative;
  min-height: 550px;
  max-height: calc(100vh - 260px);
  overflow: auto;
}

.portal-results-empty-state {
  min-height: 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-bottom: 14px;
  padding: 20px;
  border: 1px dashed #d6e1e8;
  border-radius: 14px;
  background: #f8fafb;
  color: #7b8c99;
  text-align: center;
}

.portal-results-empty-state > i {
  font-size: 23px;
  color: #9aacb8;
}

.portal-results-empty-state strong {
  color: #4b6070;
  font-size: 14px;
}

.portal-results-empty-state span {
  font-size: 12px;
}

.portal-dashboard .searchResultList .card {
  margin-bottom: 10px;
  border: 1px solid #e2eaf0;
  border-radius: 13px;
  box-shadow: 0 4px 12px rgba(15,23,42,.04);
}

.portal-dashboard #searchResultListLoader {
  text-align: center;
  padding: 18px;
}

@media (max-width: 1100px) {
  .portal-workspace-grid {
    grid-template-columns: 1fr;
  }

  .portal-results-card {
    position: static;
    min-height: auto;
  }

  .portal-results-body {
    min-height: 260px;
    max-height: none;
  }
}

@media (max-width: 767px) {
  .portal-dashboard-main {
    padding: 18px 14px 30px;
  }

  .portal-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .portal-hero-hint {
    max-width: none;
  }
}
