/* ============================================================
   PROJECT MANHATTAN — organisation.css
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Poppins', 'DM Sans', sans-serif;
  background: #f4f6fb;
  color: #1a1a2e;
  min-height: 100vh;
}

/* ── NAV ─────────────────────────────────────────────────── */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  height: 56px;
  background: #fff;
  border-bottom: 1px solid #e8eaf0;
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-brand { display: flex; flex-direction: column; line-height: 1.1; }
.nav-project { font-size: 9px; font-weight: 700; letter-spacing: 2px; color: #9aa0b4; }
.nav-manhattan { font-size: 15px; font-weight: 800; color: #1a1a2e; }
.nav-links {
  display: flex; list-style: none; gap: 4px; align-items: center;
  position: absolute; left: 50%; transform: translateX(-50%);
}
.nav-links a {
  text-decoration: none; font-size: 13px; font-weight: 500;
  color: #6b7280; padding: 6px 12px; border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: #1a6fdb; background: #eef4fd; }
.nav-dropdown { position: relative; }
.nav-dropdown-menu {
  display: none; position: absolute; top: calc(100% + 8px); left: 0;
  background: #fff; border: 1px solid #e8eaf0; border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.10); min-width: 160px;
  overflow: hidden; list-style: none; z-index: 200;
}
.nav-dropdown:hover .nav-dropdown-menu { display: block; }
.nav-dropdown-menu li a { display: block; padding: 9px 16px; font-size: 13px; color: #4a4e69; }
.nav-dropdown-menu li a:hover { background: #f4f6fb; color: #1a6fdb; }
.nav-right { display: flex; align-items: center; }
.nav-profile { position: relative; display: flex; align-items: center; gap: 8px; cursor: pointer; }
.nav-avatar {
  width: 32px; height: 32px; border-radius: 50%; background: #1a6fdb;
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700;
}
.nav-email { font-size: 12px; color: #6b7280; font-weight: 500; }
.nav-profile-dropdown {
  position: absolute; top: calc(100% + 8px); right: 0; background: #fff;
  border: 1px solid #e8eaf0; border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.10); min-width: 160px; overflow: hidden; z-index: 200;
}
.nav-profile-name { padding: 10px 16px 6px; font-size: 12px; font-weight: 700; color: #1a1a2e; border-bottom: 1px solid #f0f2f8; }
.nav-dropdown-link { display: flex; align-items: center; gap: 8px; padding: 9px 16px; font-size: 13px; color: #4a4e69; text-decoration: none; font-weight: 500; }
.nav-dropdown-link:hover { background: #f4f6fb; color: #1a6fdb; }
.nav-profile-dropdown button { width: 100%; padding: 9px 16px; background: none; border: none; border-top: 1px solid #f0f2f8; text-align: left; font-family: 'Poppins', 'DM Sans', sans-serif; font-size: 13px; color: #e63946; cursor: pointer; font-weight: 500; }
.nav-profile-dropdown button:hover { background: #fff5f5; }

/* ── PAGE ────────────────────────────────────────────────── */
.page-wrapper { padding: 24px 32px; }
.page-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.page-header-left { display: flex; align-items: baseline; gap: 12px; }
.page-header h1 { font-size: 22px; font-weight: 800; color: #1a1a2e; }
.page-subtitle { font-size: 12px; color: #9aa0b4; font-weight: 500; background: #f0f2f8; padding: 3px 10px; border-radius: 20px; }

/* ── INFO BANNER ─────────────────────────────────────────── */
.info-banner {
  display: flex; align-items: center; justify-content: space-between;
  background: #eef4fd; border: 1px solid #c7dcf8; border-radius: 10px;
  padding: 12px 16px; margin-bottom: 24px; gap: 16px;
}
.info-banner-content { display: flex; align-items: center; gap: 10px; flex: 1; }
.info-banner-content p { font-size: 13px; color: #1a6fdb; }
.info-banner-content strong { font-weight: 700; }
.btn-request { padding: 7px 16px; background: #1a6fdb; color: #fff; border: none; border-radius: 7px; font-family: 'Poppins', 'DM Sans', sans-serif; font-size: 12px; font-weight: 600; cursor: pointer; white-space: nowrap; transition: background 0.2s; }
.btn-request:hover { background: #1560c4; }

/* ── SEARCH ──────────────────────────────────────────────── */
.search-filter-row { display: flex; gap: 12px; margin-bottom: 20px; }
.search-wrapper { display: flex; align-items: center; gap: 8px; background: #fff; border: 1.5px solid #e0e3ed; border-radius: 8px; padding: 7px 12px; width: 280px; }
.search-wrapper:focus-within { border-color: #1a6fdb; }
.search-wrapper svg { color: #9aa0b4; flex-shrink: 0; }
.search-wrapper input { border: none; outline: none; font-family: 'Poppins', 'DM Sans', sans-serif; font-size: 13px; color: #1a1a2e; width: 100%; background: transparent; }
.filter-select { padding: 7px 12px; background: #fff; border: 1.5px solid #e0e3ed; border-radius: 8px; font-family: 'Poppins', 'DM Sans', sans-serif; font-size: 13px; color: #1a1a2e; outline: none; cursor: pointer; }

/* ── COMPANIES GRID ──────────────────────────────────────── */
.companies-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }

/* ── COMPANY CARD ────────────────────────────────────────── */
.company-card { background: #fff; border: 1px solid #e8eaf0; border-radius: 12px; padding: 20px; display: flex; flex-direction: column; gap: 12px; cursor: pointer; transition: box-shadow 0.2s, transform 0.2s; }
.company-card:hover { box-shadow: 0 8px 24px rgba(26,111,219,0.10); transform: translateY(-2px); }
.company-card-header { display: flex; align-items: center; justify-content: space-between; }
.company-card-icon { width: 44px; height: 44px; border-radius: 10px; background: #eef4fd; display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 800; color: #1a6fdb; }
.company-card-name { font-size: 15px; font-weight: 700; color: #1a1a2e; }
.company-card-industry { font-size: 12px; color: #9aa0b4; }
.company-card-meta { display: flex; gap: 8px; flex-wrap: wrap; }
.meta-chip { display: flex; align-items: center; gap: 4px; background: #f4f6fb; border: 1px solid #e8eaf0; border-radius: 6px; padding: 3px 8px; font-size: 11px; color: #4a4e69; font-weight: 500; }

/* ── STATUS BADGE ────────────────────────────────────────── */
.status-badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 700; }
.status-badge.active { background: #dcfce7; color: #16a34a; }
.status-badge.pending { background: #fef3c7; color: #d97706; }
.status-badge.suspended { background: #fff0f1; color: #e63946; }

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn-create { display: flex; align-items: center; gap: 6px; background: #1a6fdb; color: #fff; border: none; border-radius: 8px; padding: 8px 18px; font-family: 'Poppins', 'DM Sans', sans-serif; font-size: 13px; font-weight: 600; cursor: pointer; transition: background 0.2s; }
.btn-create:hover { background: #1560c4; }
.btn-invite { display: flex; align-items: center; gap: 6px; background: #1a6fdb; color: #fff; border: none; border-radius: 7px; padding: 7px 14px; font-family: 'Poppins', 'DM Sans', sans-serif; font-size: 12px; font-weight: 600; cursor: pointer; }
.btn-invite:hover { background: #1560c4; }

/* ── ORG DETAIL ──────────────────────────────────────────── */
.org-detail-layout { display: grid; grid-template-columns: 300px 1fr; gap: 20px; margin-bottom: 24px; }
@media (max-width: 900px) { .org-detail-layout { grid-template-columns: 1fr; } }
.org-info-card { background: #fff; border: 1px solid #e8eaf0; border-radius: 12px; padding: 20px; display: flex; flex-direction: column; gap: 14px; height: fit-content; }
.org-info-name { font-size: 18px; font-weight: 800; color: #1a1a2e; }
.org-info-row { display: flex; flex-direction: column; gap: 2px; padding: 8px 0; border-bottom: 1px solid #f0f2f8; }
.org-info-row:last-child { border-bottom: none; }
.org-info-label { font-size: 10px; font-weight: 700; color: #9aa0b4; text-transform: uppercase; letter-spacing: 0.5px; }
.org-info-value { font-size: 13px; font-weight: 500; color: #1a1a2e; }
.org-members-card { background: #fff; border: 1px solid #e8eaf0; border-radius: 12px; padding: 20px; }
.card-header-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid #f0f2f8; }
.card-header-row h2 { font-size: 15px; font-weight: 700; color: #1a1a2e; }
.member-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid #f4f6fb; }
.member-row:last-child { border-bottom: none; }
.member-avatar { width: 36px; height: 36px; border-radius: 50%; background: #1a6fdb; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; flex-shrink: 0; }
.member-info { flex: 1; }
.member-name { font-size: 13px; font-weight: 600; color: #1a1a2e; }
.member-email { font-size: 11px; color: #9aa0b4; }
.member-role-badge { padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 700; text-transform: capitalize; }
.member-role-badge.company_admin { background: #fef3c7; color: #d97706; }
.member-role-badge.editor { background: #eef4fd; color: #1a6fdb; }
.member-role-badge.viewer { background: #f4f6fb; color: #6b7280; }

/* ── ASSOCIATED ──────────────────────────────────────────── */
.associated-section { background: #fff; border: 1px solid #e8eaf0; border-radius: 12px; padding: 20px; }
.associated-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; margin-top: 16px; }
.view-only-badge { font-size: 10px; font-weight: 700; color: #9aa0b4; background: #f4f6fb; padding: 3px 8px; border-radius: 20px; border: 1px solid #e8eaf0; }

/* ── FORM TABS ───────────────────────────────────────────── */
.form-tabs { display: flex; gap: 4px; margin-bottom: 20px; border-bottom: 1px solid #e8eaf0; padding-bottom: 0; }
.form-tab { padding: 8px 16px; border: none; background: none; font-family: 'Poppins', 'DM Sans', sans-serif; font-size: 13px; font-weight: 500; color: #6b7280; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color 0.2s, border-color 0.2s; }
.form-tab:hover { color: #1a6fdb; }
.form-tab.active { color: #1a6fdb; border-bottom-color: #1a6fdb; font-weight: 600; }
.form-tab-panel { display: none; flex-direction: column; gap: 14px; }
.form-tab-panel.active { display: flex; }

/* ── COORDS ──────────────────────────────────────────────── */
.coords-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.map-preview { border: 1.5px solid #e0e3ed; border-radius: 10px; overflow: hidden; height: 200px; }
.map-placeholder { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: #9aa0b4; font-size: 12px; background: #f9fafc; }
.map-frame { width: 100%; height: 100%; border: none; }

/* ── CERTIFICATIONS ──────────────────────────────────────── */
.cert-hint { font-size: 12px; color: #9aa0b4; margin-bottom: 12px; }
.cert-list { display: flex; flex-direction: column; gap: 8px; }
.cert-item { border: 1.5px solid #e0e3ed; border-radius: 10px; overflow: hidden; transition: border-color 0.2s; }
.cert-item.selected { border-color: #1a6fdb; }
.cert-toggle { display: flex; align-items: center; gap: 10px; padding: 12px 14px; cursor: pointer; background: #fff; width: 100%; border: none; font-family: 'Poppins', 'DM Sans', sans-serif; text-align: left; }
.cert-toggle:hover { background: #f9fafc; }
.cert-checkbox { width: 16px; height: 16px; accent-color: #1a6fdb; cursor: pointer; }
.cert-name { font-size: 13px; font-weight: 600; color: #1a1a2e; flex: 1; }
.cert-current-badge { font-size: 10px; font-weight: 700; color: #16a34a; background: #dcfce7; padding: 2px 8px; border-radius: 20px; }
.cert-history-btn { font-size: 11px; color: #1a6fdb; background: none; border: none; cursor: pointer; font-family: 'Poppins', 'DM Sans', sans-serif; font-weight: 600; text-decoration: underline; padding: 0; }
.cert-details { padding: 14px; background: #f9fafc; border-top: 1px solid #e8eaf0; display: none; flex-direction: column; gap: 10px; }
.cert-details.open { display: flex; }
.cert-details-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* ── CERT HISTORY ────────────────────────────────────────── */
.cert-history-item { display: flex; flex-direction: column; gap: 3px; padding: 10px 0; border-bottom: 1px solid #f0f2f8; }
.cert-history-item:last-child { border-bottom: none; }
.cert-history-period { font-size: 13px; font-weight: 600; color: #1a1a2e; }
.cert-history-number { font-size: 12px; color: #6b7280; }
.cert-history-status { font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 20px; align-self: flex-start; }
.cert-history-status.active { background: #dcfce7; color: #16a34a; }
.cert-history-status.expired { background: #f4f6fb; color: #9aa0b4; }

/* ── LOADING ─────────────────────────────────────────────── */
.loading-state { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 100px 32px; color: #9aa0b4; font-size: 13px; }
.spinner { width: 32px; height: 32px; border: 3px solid #e8eaf0; border-top-color: #1a6fdb; border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── MODAL ───────────────────────────────────────────────── */
.modal-overlay { position: fixed; inset: 0; background: rgba(15,20,40,0.45); backdrop-filter: blur(6px); z-index: 1000; display: flex; align-items: center; justify-content: center; }
.modal-box { background: #fff; border-radius: 14px; padding: 36px 32px; max-width: 420px; width: 90%; display: flex; flex-direction: column; align-items: center; gap: 14px; box-shadow: 0 24px 60px rgba(0,0,0,0.15); text-align: center; animation: modalPop 0.25s ease; }
.modal-box.large { max-width: 640px; align-items: stretch; text-align: left; gap: 0; padding: 0; max-height: 90vh; display: flex; flex-direction: column; }
@keyframes modalPop { from { transform: scale(0.92); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal-header { display: flex; align-items: center; justify-content: space-between; padding: 18px 24px; border-bottom: 1px solid #e8eaf0; flex-shrink: 0; }
.modal-header h3 { font-size: 16px; font-weight: 700; color: #1a1a2e; }
.modal-close-btn { background: none; border: none; font-size: 20px; color: #9aa0b4; cursor: pointer; line-height: 1; padding: 2px 6px; border-radius: 4px; }
.modal-close-btn:hover { color: #e63946; }
.modal-body-content { padding: 20px 24px; display: flex; flex-direction: column; gap: 14px; overflow-y: auto; flex: 1; }
.modal-footer-actions { display: flex; gap: 10px; padding: 14px 24px; border-top: 1px solid #e8eaf0; justify-content: flex-end; flex-shrink: 0; }
.modal-icon { width: 56px; height: 56px; background: #eef4fd; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.modal-title { font-size: 16px; font-weight: 700; color: #1a1a2e; }
.modal-body { font-size: 13px; color: #6b7280; line-height: 1.6; }
.modal-actions { display: flex; gap: 10px; width: 100%; }
.modal-cancel-btn { flex: 1; padding: 9px; background: #fff; border: 1.5px solid #e0e3ed; border-radius: 8px; font-family: 'Poppins', 'DM Sans', sans-serif; font-size: 13px; font-weight: 600; color: #4a4e69; cursor: pointer; }
.modal-cancel-btn:hover { border-color: #1a6fdb; color: #1a6fdb; }
.modal-ok-btn { flex: 1; padding: 9px; background: #1a6fdb; color: #fff; border: none; border-radius: 8px; font-family: 'Poppins', 'DM Sans', sans-serif; font-size: 13px; font-weight: 600; cursor: pointer; }
.modal-ok-btn:hover { background: #1560c4; }
.btn-cancel-modal { padding: 8px 20px; background: #fff; border: 1.5px solid #e0e3ed; border-radius: 8px; font-family: 'Poppins', 'DM Sans', sans-serif; font-size: 13px; font-weight: 600; color: #4a4e69; cursor: pointer; }
.btn-save-modal { padding: 8px 20px; background: #1a6fdb; color: #fff; border: none; border-radius: 8px; font-family: 'Poppins', 'DM Sans', sans-serif; font-size: 13px; font-weight: 600; cursor: pointer; }
.btn-save-modal:hover { background: #1560c4; }
.btn-edit-modal { padding: 8px 20px; background: #fff; border: 1.5px solid #1a6fdb; color: #1a6fdb; border-radius: 8px; font-family: 'Poppins', 'DM Sans', sans-serif; font-size: 13px; font-weight: 600; cursor: pointer; }
.btn-edit-modal:hover { background: #eef4fd; }

/* ── FORM ────────────────────────────────────────────────── */
.form-section-title { font-size: 13px; font-weight: 700; color: #1a1a2e; margin-bottom: 4px; padding-top: 4px; border-top: 1px solid #f0f2f8; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-group { display: flex; flex-direction: column; gap: 5px; }
.form-group label { font-size: 12px; font-weight: 600; color: #4a4e69; }
.form-group input, .form-group select, .form-group textarea { padding: 8px 12px; border: 1.5px solid #e0e3ed; border-radius: 8px; font-family: 'Poppins', 'DM Sans', sans-serif; font-size: 13px; color: #1a1a2e; background: #fff; outline: none; transition: border-color 0.2s; -webkit-appearance: none; appearance: none; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: #1a6fdb; }
.form-group select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239aa0b4' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; padding-right: 30px; }
.required { color: #e63946; }

/* ── COMPANY PHOTO UPLOAD ────────────────────────────────── */
.company-photo-upload {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px;
  background: #f9fafc;
  border: 1.5px dashed #e0e3ed;
  border-radius: 10px;
}

.company-photo-preview {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #eef4fd;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  border: 2px solid #e0e3ed;
}

.company-photo-info { display: flex; flex-direction: column; gap: 4px; }

.btn-upload-photo {
  padding: 5px 12px;
  background: #fff;
  border: 1.5px solid #e0e3ed;
  border-radius: 6px;
  font-family: 'Poppins', 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: #4a4e69;
  cursor: pointer;
  margin-top: 4px;
  transition: border-color 0.2s, color 0.2s;
  align-self: flex-start;
}
.btn-upload-photo:hover { border-color: #1a6fdb; color: #1a6fdb; }

/* ── FORM SECTION DIVIDER ────────────────────────────────── */
.form-section-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 0;
}
.form-section-divider span {
  font-size: 11px;
  font-weight: 700;
  color: #9aa0b4;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}
.form-section-divider::before,
.form-section-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e8eaf0;
}
/* ── USERS TAB ───────────────────────────────────────────── */
.users-create-msg {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 40px;
  text-align: center;
  color: #9aa0b4;
  font-size: 13px;
}

.users-tab-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f0f2f8;
}

.users-tab-hint {
  font-size: 12px;
  color: #9aa0b4;
  max-width: 340px;
}

.btn-add-member {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #1a6fdb;
  color: #fff;
  border: none;
  border-radius: 7px;
  padding: 7px 14px;
  font-family: 'Poppins', 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.btn-add-member:hover { background: #1560c4; }

.form-member-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #f4f6fb;
}
.form-member-row:last-child { border-bottom: none; }

.form-member-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #1a6fdb;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}

.form-member-info { flex: 1; }
.form-member-name { font-size: 13px; font-weight: 600; color: #1a1a2e; }
.form-member-email { font-size: 11px; color: #9aa0b4; }

.form-member-role {
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
}
.form-member-role.company_admin { background: #fef3c7; color: #d97706; }
.form-member-role.contributor { background: #eef4fd; color: #1a6fdb; }
.form-member-role.member { background: #f4f6fb; color: #6b7280; }

.btn-remove-member {
  background: none;
  border: none;
  color: #e63946;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 6px;
  font-family: 'Poppins', 'DM Sans', sans-serif;
}
.btn-remove-member:hover { background: #fff0f1; }

.form-member-role-select {
  padding: 4px 8px;
  border: 1.5px solid #e0e3ed;
  border-radius: 6px;
  font-family: 'Poppins', 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: #1a1a2e;
  background: #fff;
  outline: none;
  cursor: pointer;
}
.form-member-role-select:focus { border-color: #1a6fdb; }


/* ══ NEW PILL NAV ══════════════════════════════════════════ */
.topbar {
  display: flex;
  align-items: center;
  padding: 14px 28px;
  gap: 20px;
  background: #f0f2f7;
  flex-shrink: 0;
}

.topbar-brand {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 999px;
  padding: 8px 16px;
  box-shadow: 0 1px 6px rgba(0,0,0,0.07);
  text-decoration: none;
  line-height: 1.1;
  flex-shrink: 0;
}

.topbar-brand-project {
  display: block;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #9aa0b4;
}

.topbar-brand-name {
  display: block;
  font-size: 16px;
  font-weight: 800;
  color: #1a1a2e;
}

.topbar-nav {
  flex: 1;
  display: flex;
  justify-content: center;
  overflow: visible;
  position: relative;
}
.nav-pill {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: #fff;
  border-radius: 999px;
  padding: 5px 7px;
  box-shadow: 0 1px 6px rgba(0,0,0,0.07);
  overflow: visible;
  position: relative;
}

.nav-pill-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 400;
  color: #6b7280;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
  position: relative;
}

.nav-pill-item:hover { background: #f0f2f7; color: #1a1a2e; }
.nav-pill-item.active { background: #f0f2f7; color: #1a1a2e; font-weight: 600; }

.nav-item-wrap {
  position: relative;
}

.nav-item-wrap::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 12px;
  background: transparent;
}

.nav-item-wrap:hover .nav-pill-dropdown { display: block; }

.nav-item-wrap:hover .nav-dropdown { display: block; }

.nav-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: #fff;
  border: 1px solid #e8eaf0;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.10);
  min-width: 160px;
  padding: 6px;
  z-index: 500;
}

.nav-dropdown a {
  display: block;
  padding: 8px 12px;
  font-size: 13px;
  color: #4a4e69;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 500;
}

.nav-dropdown a:hover { background: #f0f2f7; color: #1a6fdb; }

.nav-pill-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  padding-top: 8px;
  background: transparent;
  z-index: 500;
  min-width: 160px;
}

.nav-pill-dropdown-inner {
  background: #fff;
  border: 1px solid #e8eaf0;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.10);
  padding: 6px;
}



.nav-pill-item::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 12px;
  background: transparent;
}

.nav-pill-dropdown a {
  display: block;
  padding: 8px 12px;
  font-size: 13px;
  color: #4a4e69;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 500;
}

.nav-pill-dropdown a:hover { background: #f0f2f7; color: #1a6fdb; }

.nav-pill-dropdown a {
  display: block;
  padding: 8px 12px;
  font-size: 13px;
  color: #4a4e69;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 500;
}

.nav-pill-dropdown a:hover { background: #f0f2f7; color: #1a6fdb; }

.topbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border-radius: 999px;
  padding: 5px 8px 5px 5px;
  box-shadow: 0 1px 6px rgba(0,0,0,0.07);
  flex-shrink: 0;
}

.topbar-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #1a6fdb;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.topbar-email {
  font-size: 12px;
  font-weight: 500;
  color: #4a4e69;
}

.topbar-settings {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #1a6fdb;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  position: relative;
}

.topbar-profile-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #fff;
  border: 1px solid #e8eaf0;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.10);
  min-width: 176px;
  overflow: hidden;
  z-index: 999;
}

.topbar-profile-dropdown.open { display: block; }

.topbar-profile-name {
  padding: 11px 15px 7px;
  font-size: 12px;
  font-weight: 700;
  color: #1a1a2e;
  border-bottom: 1px solid #e8eaf0;
}

.topbar-profile-dropdown a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 15px;
  font-size: 13px;
  color: #4a4e69;
  text-decoration: none;
  font-weight: 500;
}

.topbar-profile-dropdown a:hover { background: #f0f2f7; color: #1a6fdb; }

.topbar-profile-dropdown button {
  width: 100%;
  padding: 9px 15px;
  background: none;
  border: none;
  border-top: 1px solid #e8eaf0;
  text-align: left;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  color: #e63946;
  cursor: pointer;
}

.topbar-profile-dropdown button:hover { background: #fff0f1; }

/* ── UTILITIES ───────────────────────────────────────────── */
.hidden { display: none !important; }
.no-data { font-size: 13px; color: #9aa0b4; padding: 20px 0; text-align: center; }
