/* Four Corners Investments — investor portal theme */
:root {
  --fci-navy: #1a365d;
  --fci-navy-dark: #0f2744;
  --fci-navy-light: #2c5282;
  --fci-accent: #2b6cb0;
  --fci-gold: #b7791f;
  --fci-bg: #f7fafc;
  --fci-card-border: #e2e8f0;
  --fci-text: #1a202c;
  --fci-muted: #718096;
  --fci-row-hover: #edf2f7;
  --fci-stripe: #f8fafc;
  --bs-primary: #1a365d;
  --bs-primary-rgb: 26, 54, 93;
  --bs-link-color: #2b6cb0;
  --bs-link-hover-color: #1a365d;
}

html {
  font-size: 15px;
  position: relative;
  min-height: 100%;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

body {
  margin: 0;
  margin-bottom: 4.5rem;
  color: var(--fci-text);
  background-color: var(--fci-bg);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.5;
}

/* ── Nav ─────────────────────────────────────────────────────────── */
.navbar-fci {
  background: #fff !important;
  border-bottom: 1px solid var(--fci-card-border) !important;
  box-shadow: 0 1px 3px rgba(26, 54, 93, 0.06);
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
}

.navbar-fci .navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  color: var(--fci-navy) !important;
  letter-spacing: 0.01em;
}

.navbar-fci .navbar-brand img {
  height: 40px;
  width: 40px;
  object-fit: contain;
  border-radius: 4px;
}

.navbar-fci .brand-text {
  font-size: 0.95rem;
  line-height: 1.15;
}

.navbar-fci .brand-text small {
  display: block;
  font-weight: 400;
  font-size: 0.7rem;
  color: var(--fci-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.navbar-fci .nav-link {
  color: var(--fci-navy) !important;
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.45rem 0.75rem !important;
}

.navbar-fci .nav-link:hover,
.navbar-fci .nav-link:focus {
  color: var(--fci-accent) !important;
}

.navbar-fci .nav-link.active {
  color: var(--fci-accent) !important;
  font-weight: 650;
}

.navbar-fci .dropdown-menu {
  border: 1px solid var(--fci-card-border);
  box-shadow: 0 8px 24px rgba(15, 39, 68, 0.1);
  border-radius: 0.4rem;
  padding: 0.35rem;
}

.navbar-fci .dropdown-item {
  border-radius: 0.3rem;
  font-size: 0.9rem;
  padding: 0.4rem 0.75rem;
  color: var(--fci-text);
}

.navbar-fci .dropdown-item:hover {
  background: var(--fci-row-hover);
  color: var(--fci-navy);
}

.navbar-fci .dropdown-item.active {
  background: rgba(43, 108, 176, 0.12);
  color: var(--fci-navy);
  font-weight: 600;
}

.navbar-fci .btn-link.nav-link {
  text-decoration: none;
}

/* Account control: icon + "Account" + name + caret (Bootstrap dropdown-toggle) */
.navbar-fci .account-menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  max-width: 16rem;
}

.navbar-fci .account-menu-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: rgba(26, 54, 93, 0.08);
  color: var(--fci-navy);
  flex-shrink: 0;
}

.navbar-fci .account-menu-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.15;
  min-width: 0;
}

.navbar-fci .account-menu-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fci-muted);
}

.navbar-fci .account-menu-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--fci-navy);
  max-width: 11rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.navbar-fci .account-menu-toggle:hover .account-menu-icon,
.navbar-fci .account-menu-toggle:focus .account-menu-icon {
  background: rgba(26, 54, 93, 0.14);
}

.navbar-fci .account-menu-dropdown {
  min-width: 12rem;
}

.navbar-fci .account-logout-form {
  margin: 0;
}

.navbar-fci .account-logout-btn {
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.navbar-fci .account-logout-btn:hover {
  background: var(--fci-row-hover);
  color: var(--fci-navy);
}

/* ── Main content ────────────────────────────────────────────────── */
main.site-main {
  padding-top: 1.25rem;
  padding-bottom: 2.5rem;
  min-height: calc(100vh - 10rem);
}

/* ── Breadcrumb ──────────────────────────────────────────────────── */
.breadcrumb-fci {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-bottom: 0.75rem;
  font-size: 0.85rem;
}

.breadcrumb-fci ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
  color: var(--fci-muted);
}

.breadcrumb-fci ol li:not(:last-child)::after {
  content: "/";
  margin-left: 0.35rem;
  color: var(--fci-card-border);
}

.breadcrumb-fci a {
  color: var(--fci-accent);
  text-decoration: none;
  font-weight: 500;
}

.breadcrumb-fci a:hover {
  color: var(--fci-navy);
  text-decoration: underline;
}

.breadcrumb-fci .breadcrumb-back {
  font-weight: 600;
  white-space: nowrap;
}

/* ── Page header ─────────────────────────────────────────────────── */
.page-header {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--fci-card-border);
}

.page-header h1 {
  margin: 0;
  font-size: 1.65rem;
  font-weight: 650;
  color: var(--fci-navy);
  letter-spacing: -0.02em;
}

.page-header .page-subtitle {
  margin: 0.35rem 0 0;
  color: var(--fci-muted);
  font-size: 0.95rem;
}

.portal-flash {
  margin-bottom: 1rem;
}

/* ── Home hero ───────────────────────────────────────────────────── */
.home-hero {
  text-align: center;
  padding: 1.75rem 1rem 1.5rem;
  margin-bottom: 1.75rem;
  background: linear-gradient(180deg, #fff 0%, var(--fci-bg) 100%);
  border: 1px solid var(--fci-card-border);
  border-radius: 0.75rem;
  box-shadow: 0 1px 2px rgba(15, 39, 68, 0.04);
}

.home-hero img {
  height: 96px;
  width: 96px;
  object-fit: contain;
  margin-bottom: 0.75rem;
}

.home-hero h1 {
  font-size: 1.5rem;
  font-weight: 650;
  color: var(--fci-navy);
  margin: 0 0 0.35rem;
}

.home-hero p {
  margin: 0;
  color: var(--fci-muted);
  font-size: 1rem;
}

.home-hero .secure-note {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: var(--fci-muted);
  letter-spacing: 0.02em;
}

/* ── Portal cards (home) ─────────────────────────────────────────── */
.portal-section-title {
  font-size: 0.75rem;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--fci-muted);
  margin: 1.5rem 0 0.75rem;
}

.portal-card {
  display: block;
  height: 100%;
  padding: 1.1rem 1.15rem;
  background: #fff;
  border: 1px solid var(--fci-card-border);
  border-radius: 0.6rem;
  text-decoration: none !important;
  color: inherit !important;
  box-shadow: 0 1px 2px rgba(15, 39, 68, 0.04);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.portal-card:hover {
  border-color: var(--fci-navy-light);
  box-shadow: 0 6px 16px rgba(26, 54, 93, 0.1);
  transform: translateY(-1px);
  color: inherit !important;
}

.portal-card .card-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--fci-navy);
  margin: 0 0 0.35rem;
}

.portal-card .card-desc {
  font-size: 0.85rem;
  color: var(--fci-muted);
  margin: 0;
  line-height: 1.4;
}

.portal-card .card-cta {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--fci-accent);
}

.portal-card:hover .card-cta {
  color: var(--fci-navy);
}

.portal-card .card-meta {
  margin: 0.4rem 0 0;
  font-size: 0.78rem;
  color: var(--fci-muted);
  font-variant-numeric: tabular-nums;
}

.badge-new {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.12rem 0.4rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  vertical-align: middle;
  color: #fff;
  background: var(--fci-accent);
  border-radius: 0.25rem;
}

/* ── Admin filter toolbar ────────────────────────────────────────── */
.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem 1.25rem;
  padding: 0.85rem 1rem;
  margin-bottom: 1.25rem;
  background: #fff;
  border: 1px solid var(--fci-card-border);
  border-radius: 0.5rem;
  box-shadow: 0 1px 2px rgba(15, 39, 68, 0.04);
}

.admin-toolbar .toolbar-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.5rem;
}

.admin-toolbar label {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--fci-navy);
  white-space: nowrap;
}

.admin-toolbar select {
  min-width: 10rem;
  max-width: 18rem;
  font-size: 0.9rem;
  border-radius: 0.35rem;
  border: 1px solid var(--fci-card-border);
  padding: 0.3rem 0.5rem;
  background: #fff;
}

.admin-toolbar .btn {
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 0.35rem;
  padding: 0.35rem 0.85rem;
}

/* ── Tables ──────────────────────────────────────────────────────── */
.table-docs {
  background: #fff;
  border: 1px solid var(--fci-card-border);
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(15, 39, 68, 0.04);
  margin-bottom: 1rem;
}

.table-docs table {
  margin-bottom: 0;
  vertical-align: middle;
}

.table-docs thead th {
  background: var(--fci-navy);
  color: #fff;
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border: none;
  padding: 0.75rem 1rem;
  white-space: nowrap;
}

.table-docs tbody td {
  padding: 0.7rem 1rem;
  border-color: var(--fci-card-border);
  font-size: 0.95rem;
}

.table-docs tbody tr:nth-child(even) {
  background: var(--fci-stripe);
}

.table-docs tbody tr:hover {
  background: var(--fci-row-hover);
}

.table-docs .col-date {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* Download control */
a.download-link,
.table-docs a.download-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--fci-accent) !important;
  text-decoration: none !important;
  padding: 0.25rem 0.55rem;
  border-radius: 0.3rem;
  border: 1px solid transparent;
}

a.download-link:hover,
.table-docs a.download-link:hover {
  color: var(--fci-navy) !important;
  background: rgba(43, 108, 176, 0.08);
  border-color: rgba(43, 108, 176, 0.25);
  text-decoration: none !important;
}

a.download-link::before {
  content: "↓";
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1;
}

/* Empty state */
.empty-docs {
  text-align: center;
  padding: 2.25rem 1.25rem;
  color: var(--fci-muted);
  background: #fff;
  border: 1px dashed var(--fci-card-border);
  border-radius: 0.5rem;
}

.empty-docs-title {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 650;
  color: var(--fci-navy);
}

.empty-docs-body {
  margin: 0 auto;
  max-width: 28rem;
  font-size: 0.92rem;
  line-height: 1.45;
}

.empty-docs-contact {
  margin: 0.85rem 0 0;
  font-size: 0.9rem;
}

.empty-docs-contact a {
  font-weight: 600;
  color: var(--fci-accent);
  text-decoration: none;
}

.empty-docs-contact a:hover {
  text-decoration: underline;
}

/* Mobile document cards */
.doc-cards {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.doc-card {
  background: #fff;
  border: 1px solid var(--fci-card-border);
  border-radius: 0.5rem;
  padding: 0.85rem 1rem;
  box-shadow: 0 1px 2px rgba(15, 39, 68, 0.04);
}

.doc-card-row {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.25rem 0;
  font-size: 0.92rem;
}

.doc-card-label {
  color: var(--fci-muted);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  flex-shrink: 0;
}

.doc-card-actions {
  margin-top: 0.55rem;
  padding-top: 0.55rem;
  border-top: 1px solid var(--fci-card-border);
}

/* Pagination */
.pagination {
  justify-content: center;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.pagination .page-link {
  color: var(--fci-navy);
  border-color: var(--fci-card-border);
}

.pagination .page-item.active .page-link {
  background-color: var(--fci-navy);
  border-color: var(--fci-navy);
  color: #fff;
}

.pagination .page-link:hover {
  background: var(--fci-row-hover);
  color: var(--fci-navy-dark);
}

/* Buttons */
.btn-primary {
  background-color: var(--fci-navy);
  border-color: var(--fci-navy);
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--fci-navy-dark);
  border-color: var(--fci-navy-dark);
}

.btn-secondary {
  background-color: #4a5568;
  border-color: #4a5568;
}

.btn-secondary:hover {
  background-color: #2d3748;
  border-color: #2d3748;
}

/* Footer */
.footer-fci {
  position: absolute;
  bottom: 0;
  width: 100%;
  min-height: 3.5rem;
  padding: 0.65rem 0;
  background: #fff;
  border-top: 1px solid var(--fci-card-border);
  color: var(--fci-muted);
  font-size: 0.85rem;
}

.footer-fci .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  line-height: 1.3;
}

.footer-fci .footer-links a {
  color: var(--fci-accent);
  text-decoration: none;
  font-weight: 500;
}

.footer-fci .footer-links a:hover {
  text-decoration: underline;
  color: var(--fci-navy);
}

.footer-fci .footer-sep {
  margin: 0 0.35rem;
  color: var(--fci-card-border);
}

/* ── Login / Identity layout ─────────────────────────────────────── */
.login-body {
  min-height: 100vh;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  background: linear-gradient(165deg, #f0f4f8 0%, #e2e8f0 45%, #edf2f7 100%);
}

.login-shell {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

.login-card {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border: 1px solid var(--fci-card-border);
  border-radius: 0.75rem;
  box-shadow: 0 12px 40px rgba(15, 39, 68, 0.1);
  padding: 2rem 1.75rem 1.75rem;
}

.login-card .login-brand {
  text-align: center;
  margin-bottom: 1.5rem;
}

.login-card .login-brand img {
  height: 72px;
  width: 72px;
  object-fit: contain;
  margin-bottom: 0.65rem;
}

.login-card .login-brand h1 {
  font-size: 1.15rem;
  font-weight: 650;
  color: var(--fci-navy);
  margin: 0;
}

.login-card .login-brand p {
  margin: 0.25rem 0 0;
  font-size: 0.85rem;
  color: var(--fci-muted);
}

.login-card h2 {
  font-size: 1.2rem;
  font-weight: 650;
  color: var(--fci-navy);
  margin-bottom: 1rem;
}

.login-session-note {
  margin: 0 0 1rem;
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--fci-muted);
}

.login-card .form-floating,
.login-card .form-group {
  margin-bottom: 0.85rem;
}

.login-card .btn-primary {
  width: 100%;
  padding: 0.55rem;
  font-weight: 600;
}

.login-footer-links {
  margin-top: 1.25rem;
  text-align: center;
  font-size: 0.9rem;
}

.login-footer-links a {
  color: var(--fci-accent);
  text-decoration: none;
  font-weight: 500;
}

.login-footer-links a:hover {
  text-decoration: underline;
  color: var(--fci-navy);
}

.login-secure {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.75rem;
  color: var(--fci-muted);
  letter-spacing: 0.03em;
}

/* Alerts */
.alert {
  border-radius: 0.45rem;
}

/* Focus */
.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-select:focus,
.form-check-input:focus {
  box-shadow: 0 0 0 0.15rem rgba(43, 108, 176, 0.35);
}

/* Utility */
.box-shadow {
  box-shadow: 0 1px 3px rgba(26, 54, 93, 0.06);
}

/* Manage account */
.manage-account .manage-nav .nav-link {
  color: var(--fci-navy);
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.manage-account .manage-nav .nav-link.active {
  background-color: var(--fci-navy);
  color: #fff;
}

.manage-account .manage-nav .nav-link:hover:not(.active) {
  background: var(--fci-row-hover);
  color: var(--fci-navy);
}

