/* ============================================================
   Account / My Account area styles
   ============================================================ */

/* ── Layout ─────────────────────────────────────────────── */

/* Bootstrap container-fluid + row + col-* handle macro layout.
   account-page-wrap provides page-level top/bottom spacing only. */

.account-page-wrap {
  padding-top: 22px;
  padding-bottom: 56px;
}

/* ── Sidebar ─────────────────────────────────────────────── */

.account-sidebar {
  background: #fff;
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 16px; /* gap on mobile before content panel */
}

.account-sidebar nav {
  display: flex;
  flex-direction: column;
}

.account-sidebar-link {
  display: block;
  padding: 12px 16px;
  font-size: 15px;
  color: var(--primary-accent, #2563a8);
  text-decoration: none;
  text-align: left;
  border-bottom: 1px solid var(--border-primary);
}

.account-sidebar-link:last-child {
  border-bottom: none;
}

.account-sidebar-link:hover {
  background: var(--bg-subtle, #f5f7fa);
  color: var(--primary-accent, #2563a8);
  text-decoration: underline;
}

/* No active/visited state on sidebar — matches live site */

/* ── Main content panel ─────────────────────────────────── */

/* Width/fill handled by Bootstrap col-lg-8 col-md-9. */
.account-main {
  min-width: 0;
}

.account-panel-body {
  padding: 24px 24px 28px;
}

.account-section-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 24px;
  line-height: 1.3;
}

/* ── Personal details form ──────────────────────────────── */

.account-form {
  max-width: 100%;
}

.account-field {
  margin-bottom: 20px;
}

.account-label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.account-required {
  color: #c0392b;
  margin-left: 2px;
}

.account-input {
  display: block;
  width: 100%;
  height: 44px;
  padding: 0 12px;
  font-size: 15px;
  color: var(--text-primary);
  background: #fff;
  border: 1px solid var(--border-default, #d0d5dd);
  border-radius: 6px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.account-input:focus {
  border-color: var(--primary-accent, #2563a8);
  box-shadow: 0 0 0 3px rgba(37, 99, 168, 0.15);
}

.account-input--readonly,
.account-input[readonly] {
  background: #f0f0f0;
  color: var(--text-secondary, #666);
  cursor: default;
}

.account-input--readonly:focus,
.account-input[readonly]:focus {
  border-color: var(--border-default, #d0d5dd);
  box-shadow: none;
}

.account-form-actions {
  display: flex;
  justify-content: flex-end;
  padding-top: 8px;
}

.account-form-status {
  min-height: 20px;
  margin: 0 0 8px;
  color: var(--success, #2e7d32);
  font-size: 14px;
}

/* ── Filings table ───────────────────────────────────────── */

.account-filings-head {
  padding: 20px 18px 14px;
}

.account-export-btn {
  font-size: 13px;
}

.account-filings-table {
  border-top: 1px solid var(--border-primary);
}

.account-filings-row {
  display: grid;
  grid-template-columns: 2fr 1.2fr 1fr 0.6fr 1fr;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-primary);
  align-items: center;
  font-size: 14px;
  color: var(--text-primary);
}

.account-filings-row--head {
  font-weight: 700;
  font-size: 13px;
  padding: 10px 18px;
  background: transparent;
  border-bottom: 1px solid var(--border-primary);
}

.account-filings-row--empty {
  grid-template-columns: 1fr;
}

.account-filings-subtext {
  display: block;
  font-size: 13px;
  color: var(--text-secondary, #666);
  margin-top: 2px;
}

.account-empty-state {
  padding: 20px 0;
  color: var(--text-secondary, #666);
  font-size: 14px;
}

/* ── Terms & Conditions ─────────────────────────────────── */

.account-terms-body {
  max-width: 100%;
}

.account-terms-list {
  margin: 0 0 24px;
  padding-left: 22px;
}

.account-terms-list li {
  margin-bottom: 16px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-primary);
}

.account-terms-list li strong {
  display: block;
  margin-bottom: 6px;
}

.account-terms-list li em {
  font-style: normal;
  font-weight: 700;
}

.account-terms-list ul {
  margin-top: 8px;
  padding-left: 20px;
}

.account-terms-list ul li {
  margin-bottom: 10px;
}

.account-terms-list p {
  margin: 4px 0 0;
  font-size: 14px;
  line-height: 1.6;
}

.account-terms-footer {
  list-style: none;
  padding: 16px 0 0;
  margin: 0;
  border-top: 1px solid var(--border-primary);
  font-size: 14px;
  color: var(--text-secondary, #666);
}

/* ── Responsive ─────────────────────────────────────────── */

/* Column stacking handled by Bootstrap col-sm-12 at 767px.
   Only component-level responsive rules remain here. */

@media (max-width: 767px) {
  .account-filings-row {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .account-filings-row--head {
    display: none;
  }
}
