/* Family Portal — design system
 * Layout: top bar + left sidebar + main content (side-by-side on desktop)
 * Theme: American red / white / blue, soft corners
 */

:root {
  --fp-red: #B22234;
  --fp-blue: #3C3B6E;
  --fp-blue-dark: #2a294f;
  --fp-white: #ffffff;
  --fp-light: #eef1f7;
  --fp-border: #e0e4ee;
  --fp-text: #343a55;
  --fp-text-muted: #6b728a;
  --fp-radius: 0.9rem;
  --fp-radius-sm: 0.6rem;
  --fp-sidebar-w: 15rem;
  --fp-topbar-h: 3.5rem;

  --bs-primary: #3C3B6E;
  --bs-danger: #B22234;
  --bs-body-color: #343a55;
  --bs-secondary-color: #6b728a;
  --bs-border-radius: 0.6rem;
  --bs-border-radius-sm: 0.5rem;
  --bs-border-radius-lg: 0.9rem;
  --bs-link-color: #3C3B6E;
  --bs-link-hover-color: #B22234;
  --bs-code-color: #3C3B6E;
}

/* —— Base —— */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body,
.app-body {
  margin: 0;
  background: var(--fp-light);
  min-height: 100%;
  color: var(--fp-text);
  display: flex;
  flex-direction: column;
}

a { color: var(--fp-blue); }
a:hover { color: var(--fp-red); }

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.86em;
  color: var(--fp-blue) !important;
  background: rgba(60, 59, 110, 0.1);
  border-radius: 0.4rem;
  padding: 0.12rem 0.4rem;
}

/* Soft corners */
.card, .card-fp, .stat-tile, .btn, .form-control, .form-select,
.alert, .badge, .list-group, .list-group-item, .modal-content, .dropdown-menu, .panel {
  border-radius: var(--fp-radius-sm) !important;
}
.card, .card-fp, .panel {
  border-radius: var(--fp-radius) !important;
  overflow: hidden;
}
.btn, .btn-sm { border-radius: 999px !important; }
.btn { padding-left: 1rem; padding-right: 1rem; }

.form-control, .form-select {
  border-radius: var(--fp-radius-sm) !important;
  color: var(--fp-text);
}
.form-control::placeholder { color: #9aa0b4; }

/*
 * Input groups: one joined control (not pill-on-pill).
 * Global .btn uses full pill radius; that looks broken inside groups.
 */
.input-group {
  border-radius: var(--fp-radius-sm);
}
.input-group > .form-control,
.input-group > .form-select,
.input-group > .input-group-text,
.input-group > .btn {
  border-radius: 0 !important;
}
.input-group > :first-child {
  border-top-left-radius: var(--fp-radius-sm) !important;
  border-bottom-left-radius: var(--fp-radius-sm) !important;
}
.input-group > :last-child {
  border-top-right-radius: var(--fp-radius-sm) !important;
  border-bottom-right-radius: var(--fp-radius-sm) !important;
}
.input-group-text {
  color: var(--fp-text-muted);
  background: #f5f6fa;
  border-color: var(--fp-border);
}
.input-group > .btn {
  padding-left: 1.1rem;
  padding-right: 1.1rem;
  font-weight: 600;
  z-index: 1;
}
.input-group:not(.has-validation) > :not(:first-child):not(.dropdown-menu) {
  margin-left: -1px;
}

/* Search bars (recipes + shared) — single joined control */
.fp-search {
  max-width: 28rem;
  width: 100%;
  box-shadow: 0 0.08rem 0.35rem rgba(60, 59, 110, 0.05);
}
.fp-search:focus-within {
  box-shadow: 0 0 0 0.18rem rgba(60, 59, 110, 0.16);
}
.fp-search > .form-control,
.fp-search > .input-group-text,
.fp-search > .btn {
  min-height: 2.55rem;
}
.fp-search > .input-group-text {
  padding-left: 0.85rem;
  padding-right: 0.55rem;
  color: var(--fp-blue);
  background: #fff;
}
.fp-search > .form-control {
  border-left-width: 0;
  padding-left: 0.25rem;
}
.fp-search > .form-control:focus {
  z-index: 2;
  box-shadow: none;
  border-color: var(--fp-border);
  border-left-width: 0;
}
.fp-search > .btn-primary {
  border-color: var(--fp-blue);
  white-space: nowrap;
}
.recipe-toolbar {
  margin-bottom: 1rem;
}

.alert { border-radius: var(--fp-radius) !important; color: var(--fp-text); }
.alert-soft-success {
  background: #eef8f0;
  border: 1px solid #c5e6cc;
  color: #2d5a38;
}
.alert-soft-warning {
  background: #fff8eb;
  border: 1px solid #f0d9a8;
  color: #6b4e16;
}

/* —— Top bar —— */
.fp-stripe {
  height: 5px;
  flex-shrink: 0;
  background: linear-gradient(90deg, var(--fp-red) 0 28%, var(--fp-white) 28% 42%, var(--fp-blue) 42% 100%);
}

.navbar-fp {
  flex-shrink: 0;
  background: linear-gradient(105deg, var(--fp-blue) 0%, var(--fp-blue-dark) 100%);
  border-bottom: 3px solid var(--fp-red);
  box-shadow: 0 2px 8px rgba(60, 59, 110, 0.15);
  min-height: var(--fp-topbar-h);
  display: block;
  padding: 0;
}

.navbar-fp-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 0.55rem 1rem;
}

.navbar-fp .navbar-brand {
  color: #fff !important;
  font-weight: 600;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  white-space: nowrap;
}

.navbar-fp-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.navbar-fp .btn { border-radius: 999px !important; }
.navbar-fp .btn-outline-light {
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
}
.navbar-fp .btn-light {
  color: var(--fp-blue);
  font-weight: 600;
}
.nav-user {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.875rem;
  margin-right: 0.25rem;
}

/* —— App layout: SIDEBAR LEFT | CONTENT RIGHT —— */
.app-layout {
  display: flex;
  flex-direction: row;
  flex: 1 1 auto;
  align-items: stretch;
  width: 100%;
  min-height: 0;
}

.sidebar-fp {
  flex: 0 0 var(--fp-sidebar-w);
  width: var(--fp-sidebar-w);
  max-width: var(--fp-sidebar-w);
  background: #fff;
  border-right: 1px solid var(--fp-border);
  border-bottom-right-radius: var(--fp-radius);
  padding: 0.85rem 0.65rem;
  overflow-y: auto;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.sidebar-nav .nav-link {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--fp-blue);
  text-decoration: none;
  border-radius: 999px;
  padding: 0.55rem 0.9rem;
  font-size: 0.95rem;
  transition: background 0.15s ease, color 0.15s ease;
}

.sidebar-nav .nav-link i {
  flex: 0 0 1.1rem;
  font-size: 1.05rem;
  opacity: 0.9;
  text-align: center;
}

.sidebar-nav .nav-link:hover {
  background: rgba(60, 59, 110, 0.08);
  color: var(--fp-blue-dark);
}

.sidebar-nav .nav-link.active {
  background: rgba(60, 59, 110, 0.14);
  color: var(--fp-blue-dark);
  font-weight: 600;
}

.main-panel {
  flex: 1 1 auto;
  min-width: 0; /* critical: allow shrink without wrapping under sidebar */
  width: auto;
  max-width: none;
  padding: 1.5rem 1.75rem 2rem;
  overflow-x: auto;
}

/* Mobile: stack sidebar above content */
@media (max-width: 767.98px) {
  .app-layout {
    flex-direction: column;
  }
  .sidebar-fp {
    flex: 0 0 auto;
    width: 100%;
    max-width: none;
    border-right: 0;
    border-bottom: 1px solid var(--fp-border);
    border-bottom-right-radius: 0;
  }
  .sidebar-nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.35rem;
  }
  .sidebar-nav .nav-link {
    padding: 0.4rem 0.75rem;
    font-size: 0.875rem;
  }
  .main-panel {
    padding: 1rem;
  }
}

/* —— Type —— */
.page-title {
  color: var(--fp-blue);
  font-weight: 700;
  margin-bottom: 0.2rem;
  letter-spacing: -0.02em;
}
.page-sub {
  color: var(--fp-text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}
.section-gap { margin-bottom: 1.25rem; }
.meta-muted,
.text-muted-fp {
  color: var(--fp-text-muted) !important;
  font-size: 0.85rem;
}
.text-body-fp {
  color: var(--fp-text) !important;
}
.empty-state {
  color: var(--fp-text-muted);
  font-size: 0.95rem;
  padding: 0.85rem 1rem;
}

/* —— Buttons —— */
.btn-primary {
  background-color: var(--fp-blue);
  border-color: var(--fp-blue);
}
.btn-primary:hover {
  background-color: var(--fp-blue-dark);
  border-color: var(--fp-blue-dark);
}
.btn-danger {
  background-color: var(--fp-red);
  border-color: var(--fp-red);
}
.btn-outline-primary {
  color: var(--fp-blue);
  border-color: var(--fp-blue);
}
.btn-outline-primary:hover {
  background: var(--fp-blue);
  border-color: var(--fp-blue);
  color: #fff;
}
.btn-outline-secondary {
  color: var(--fp-text-muted);
  border-color: var(--fp-border);
}
.btn-ghost {
  background: transparent;
  border: 0;
  color: var(--fp-blue);
  font-weight: 500;
  padding: 0.25rem 0.65rem;
}
.btn-ghost:hover {
  background: rgba(60, 59, 110, 0.08);
  color: var(--fp-blue-dark);
}
.btn-ghost.text-danger:hover {
  background: rgba(178, 34, 52, 0.08);
  color: var(--fp-red);
}

/* —— Cards / panels —— */
.card-fp {
  border: 1px solid var(--fp-border);
  border-left: 4px solid var(--fp-blue);
  box-shadow: 0 0.15rem 0.65rem rgba(60, 59, 110, 0.06);
  background: #fff;
  color: var(--fp-text);
}
.card-fp .card-header {
  background: #fafbfe;
  border-bottom: 1px solid var(--fp-border);
  font-weight: 600;
  color: var(--fp-blue);
  padding: 0.75rem 1.1rem;
}
.card-header-link {
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--fp-blue);
}
.card-header-link:hover { color: var(--fp-red); }
.card-fp .card-body { color: var(--fp-text); }
.card-fp.accent-red { border-left-color: var(--fp-red); }

.panel {
  background: #fff;
  border: 1px solid var(--fp-border);
  border-radius: var(--fp-radius);
  box-shadow: 0 0.15rem 0.65rem rgba(60, 59, 110, 0.05);
  overflow: hidden;
  color: var(--fp-text);
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1.15rem;
  background: #fafbfe;
  border-bottom: 1px solid var(--fp-border);
}
.panel-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 650;
  color: var(--fp-blue);
}
.panel-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.5rem;
  height: 1.5rem;
  padding: 0 0.45rem;
  border-radius: 999px;
  background: rgba(60, 59, 110, 0.12);
  color: var(--fp-blue);
  font-size: 0.8rem;
  font-weight: 600;
}
.panel-body {
  padding: 1.15rem 1.25rem 1.25rem;
  color: var(--fp-text);
}
.panel-create {
  border-left: 4px solid var(--fp-red);
  background: linear-gradient(180deg, #fffafb 0%, #fff 40%);
}
.panel-head-create {
  background: linear-gradient(180deg, #fff5f6 0%, #fffafb 100%);
}
.panel-create .panel-title { color: var(--fp-red); }

/* —— Stats —— */
.stat-tile {
  background: #fff;
  padding: 1.1rem 1.2rem;
  border: 1px solid var(--fp-border);
  border-top: 3px solid var(--fp-red);
  border-radius: var(--fp-radius) !important;
  height: 100%;
  box-shadow: 0 0.12rem 0.5rem rgba(60, 59, 110, 0.05);
  color: var(--fp-text);
}
.stat-tile .label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--fp-text-muted);
  margin-bottom: 0.3rem;
}
.stat-tile .value {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--fp-blue);
  word-break: break-word;
}
.stat-tile a {
  font-size: 0.85rem;
  color: var(--fp-blue);
}

/* —— Tables —— */
.table-fp,
.table {
  --bs-table-color: var(--fp-text);
  --bs-table-bg: #fff;
  --bs-table-striped-bg: #f8f9fc;
  --bs-table-hover-bg: rgba(60, 59, 110, 0.04);
  --bs-table-border-color: var(--fp-border);
  color: var(--fp-text);
  margin-bottom: 0;
}

.table-fp thead th,
.table thead th {
  background: var(--fp-blue) !important;
  color: #fff !important;
  font-weight: 600;
  font-size: 0.85rem;
  border: 0;
  padding: 0.7rem 1rem;
  text-align: left;
  vertical-align: middle;
}

.table-fp tbody td,
.table tbody td {
  color: var(--fp-text);
  border-color: var(--fp-border);
  padding: 0.7rem 1rem;
  text-align: left;
  vertical-align: middle;
}

.table-fp tbody tr:hover td {
  background: rgba(60, 59, 110, 0.03);
}

.tag-action {
  display: inline-block;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--fp-blue);
  background: rgba(60, 59, 110, 0.1);
  border-radius: 999px;
  padding: 0.2rem 0.65rem;
  white-space: nowrap;
}

.badge-role {
  background: var(--fp-blue);
  color: #fff;
  border-radius: 999px !important;
}

/* —— Forwarders —— */
.form-narrow { max-width: 28rem; }
.info-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
}
.info-primary {
  font-size: 1.15rem;
  font-weight: 650;
  color: var(--fp-blue);
}
.border-top-soft {
  border-top: 1px solid var(--fp-border) !important;
}
.fwd-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.fwd-item {
  background: var(--fp-light);
  border: 1px solid var(--fp-border);
  border-radius: var(--fp-radius);
  padding: 0.85rem 1rem;
}
.fwd-item-main {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}
.fwd-rule {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.65rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9rem;
}
.fwd-from {
  background: #fff;
  border: 1px solid var(--fp-border);
  color: var(--fp-blue);
  font-weight: 600;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
}
.fwd-to {
  background: #fff;
  border: 1px solid rgba(178, 34, 52, 0.25);
  color: #8b1e2d;
  font-weight: 500;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
}
.fwd-to-arrow {
  color: #8a8fa3;
  font-weight: 700;
  user-select: none;
}
.fwd-edit-form {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px dashed var(--fp-border);
}
.fwd-live-preview {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88rem;
  color: var(--fp-text-muted);
  background: #fff;
  border: 1px dashed rgba(178, 34, 52, 0.35);
  border-radius: var(--fp-radius-sm);
  padding: 0.65rem 0.85rem;
}
.actions-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}
.meta-muted {
  color: var(--fp-text-muted) !important;
  font-size: 0.85rem;
}

/* —— Landing —— */
.landing-hero {
  position: relative;
  background: linear-gradient(135deg, var(--fp-blue) 0%, #45437a 55%, #8b3a4a 130%);
  color: #fff;
  border-radius: 1.15rem;
  padding: 2.75rem 2rem 2.5rem;
  margin-bottom: 1.75rem;
  overflow: hidden;
  box-shadow: 0 0.45rem 1.35rem rgba(60, 59, 110, 0.22);
}
.landing-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 36rem;
}
.landing-kicker {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.85;
  margin-bottom: 0.5rem;
}
.landing-hero h1 {
  font-weight: 800;
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  letter-spacing: -0.03em;
  margin-bottom: 0.65rem;
  color: #fff;
}
.landing-lead {
  font-size: 1.05rem;
  opacity: 0.92;
  margin-bottom: 1.35rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.95);
}
.landing-actions .btn-light {
  color: var(--fp-blue);
  font-weight: 600;
  border-radius: 999px !important;
}
.landing-flag {
  position: absolute;
  right: -1rem;
  top: 0;
  bottom: 0;
  width: min(42%, 280px);
  background: repeating-linear-gradient(180deg, var(--fp-red) 0 14px, #fff 14px 28px);
  opacity: 0.22;
  border-radius: 1.15rem 1.15rem 1.15rem 0;
}
.landing-flag::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 42%;
  height: 45%;
  background: var(--fp-blue);
  border-radius: 0 0 0.5rem 0;
  opacity: 0.95;
}
.landing-card .landing-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.85rem;
  background: rgba(60, 59, 110, 0.1);
  color: var(--fp-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}
.landing-card.accent-red .landing-icon {
  background: rgba(178, 34, 52, 0.1);
}

/* —— Files —— */
.files-crumbs {
  font-size: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem;
  background: #fff;
  border: 1px solid var(--fp-border);
  border-radius: var(--fp-radius);
  padding: 0.55rem 0.9rem;
  color: var(--fp-text);
}
.files-crumbs a {
  text-decoration: none;
  font-weight: 500;
  color: var(--fp-blue);
}
.files-crumbs .sep {
  color: #adb5bd;
  margin: 0 0.15rem;
}
.files-crumbs .current {
  color: var(--fp-text-muted);
  font-weight: 600;
}
.files-table td {
  vertical-align: middle;
  color: var(--fp-text);
}
.file-editor {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.875rem;
  line-height: 1.45;
  min-height: 420px;
  resize: vertical;
  background: #fafbfe !important;
  color: var(--fp-text) !important;
}

.login-card {
  max-width: 400px;
  margin: 2rem auto;
}
.footer-fp {
  border-top: 2px solid var(--fp-blue);
  background: #fff;
  margin-top: auto;
  color: var(--fp-text-muted);
}
.form-narrow { max-width: 28rem; }
.info-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
}
.info-primary {
  font-size: 1.15rem;
  font-weight: 650;
  color: var(--fp-blue);
}
.border-top-soft {
  border-top: 1px solid var(--fp-border) !important;
}
.actions-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}
.meta-muted {
  color: var(--fp-text-muted) !important;
  font-size: 0.85rem;
}
.tag-action {
  display: inline-block;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--fp-blue);
  background: rgba(60, 59, 110, 0.1);
  border-radius: 999px;
  padding: 0.2rem 0.65rem;
  white-space: nowrap;
}
.text-muted-fp {
  color: var(--fp-text-muted) !important;
}
.text-body-fp {
  color: var(--fp-text) !important;
}
.table-fp,
.table {
  --bs-table-color: var(--fp-text);
  --bs-table-bg: #fff;
  --bs-table-border-color: var(--fp-border);
  color: var(--fp-text);
  margin-bottom: 0;
}
.table-fp thead th,
.table thead th {
  background: var(--fp-blue) !important;
  color: #fff !important;
  font-weight: 600;
  font-size: 0.85rem;
  border: 0;
  padding: 0.7rem 1rem;
  text-align: left;
  vertical-align: middle;
}
.table-fp tbody td,
.table tbody td {
  color: var(--fp-text);
  border-color: var(--fp-border);
  padding: 0.7rem 1rem;
  text-align: left;
  vertical-align: middle;
}

/* —— Roles admin —— */
.roles-tabs {
  gap: 0.4rem;
  flex-wrap: wrap;
}
.roles-tabs .nav-link {
  border-radius: 999px !important;
  color: var(--fp-blue);
  background: #fff;
  border: 1px solid var(--fp-border);
  font-weight: 600;
  padding: 0.45rem 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.roles-tabs .nav-link:hover {
  background: rgba(60, 59, 110, 0.06);
  color: var(--fp-blue-dark);
  border-color: rgba(60, 59, 110, 0.25);
}
.roles-tabs .nav-link.active {
  background: var(--fp-blue) !important;
  border-color: var(--fp-blue) !important;
  color: #fff !important;
}
.roles-tab-count {
  font-size: 0.75rem;
  font-weight: 600;
  opacity: 0.75;
  background: rgba(60, 59, 110, 0.1);
  border-radius: 999px;
  padding: 0.1rem 0.45rem;
}
.roles-tabs .nav-link.active .roles-tab-count {
  background: rgba(255, 255, 255, 0.2);
  opacity: 1;
}

.roles-card {
  max-width: 52rem;
}
.roles-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem 1.5rem;
}
.roles-card-title {
  font-size: 1.05rem;
  font-weight: 650;
  color: var(--fp-blue);
  line-height: 1.3;
}
.roles-quota {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 10rem;
}
.roles-quota .form-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--fp-text-muted);
  font-weight: 600;
}
.roles-quota-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.roles-quota-row .form-control {
  width: 5.5rem;
}
.roles-quota-hint {
  white-space: nowrap;
  font-size: 0.78rem !important;
}

.roles-perm-list {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}
.roles-cat-title {
  margin: 0 0 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--fp-text-muted);
}
.roles-perm-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(14.5rem, 1fr));
  gap: 0.4rem;
}
.roles-perm {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin: 0;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--fp-border);
  border-radius: var(--fp-radius-sm);
  background: #fafbfe;
  cursor: pointer;
  transition: border-color 0.12s ease, background 0.12s ease, box-shadow 0.12s ease;
}
.roles-perm:hover {
  border-color: rgba(60, 59, 110, 0.3);
  background: #fff;
}
.roles-perm.is-on,
.roles-perm:has(input:checked) {
  border-color: rgba(60, 59, 110, 0.35);
  background: rgba(60, 59, 110, 0.06);
  box-shadow: inset 3px 0 0 var(--fp-blue);
}
.roles-perm .form-check-input {
  margin-top: 0.2rem;
  flex-shrink: 0;
  cursor: pointer;
}
.roles-perm-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}
.roles-perm-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--fp-text);
  line-height: 1.25;
}
.roles-perm-desc {
  font-size: 0.75rem;
  color: var(--fp-text-muted);
  line-height: 1.3;
}

.roles-card-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  background: #fafbfe;
  border-top: 1px solid var(--fp-border);
  padding: 0.75rem 1.1rem;
}

.card-fp .card-footer {
  background: #fafbfe;
  border-top: 1px solid var(--fp-border);
}

@media (max-width: 575.98px) {
  .roles-perm-grid {
    grid-template-columns: 1fr;
  }
  .roles-card-head {
    flex-direction: column;
  }
}

/* roles-perm: single-line name layout */
.roles-perm {
  align-items: center;
}
.roles-perm .form-check-input {
  margin-top: 0;
}
.roles-perm-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--fp-text);
  line-height: 1.25;
}

/* —— DataTables (activity log & shared) —— */
.activity-dt-wrap {
  padding: 1rem 1.15rem 1.1rem;
}
.activity-dt-wrap .dt-container {
  color: var(--fp-text);
}
.activity-dt-wrap .dt-layout-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin-bottom: 0.85rem;
}
.activity-dt-wrap .dt-layout-row:last-child {
  margin-bottom: 0;
  margin-top: 0.85rem;
}
.activity-dt-wrap .dt-layout-table {
  margin: 0;
}
.activity-dt-wrap .dt-search label,
.activity-dt-wrap .dt-length label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  font-size: 0.875rem;
  color: var(--fp-text-muted);
  font-weight: 500;
}
.activity-dt-wrap .dt-search input,
.activity-dt-wrap .dt-length select {
  border: 1px solid var(--fp-border);
  border-radius: 999px !important;
  color: var(--fp-text);
  background: #fff;
  font-size: 0.875rem;
  padding: 0.35rem 0.85rem;
  min-height: 2.1rem;
}
.activity-dt-wrap .dt-search input {
  min-width: 12rem;
}
.activity-dt-wrap .dt-search input:focus,
.activity-dt-wrap .dt-length select:focus {
  border-color: var(--fp-blue);
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(60, 59, 110, 0.15);
}
.activity-dt-wrap .dt-info {
  font-size: 0.85rem;
  color: var(--fp-text-muted) !important;
  padding-top: 0.15rem;
}
.activity-dt-wrap .dt-paging .pagination {
  margin: 0;
  gap: 0.25rem;
  flex-wrap: wrap;
}
.activity-dt-wrap .dt-paging .page-link {
  border-radius: 999px !important;
  color: var(--fp-blue);
  border-color: var(--fp-border);
  min-width: 2.1rem;
  text-align: center;
  font-size: 0.875rem;
  padding: 0.3rem 0.65rem;
}
.activity-dt-wrap .dt-paging .page-item.active .page-link {
  background-color: var(--fp-blue);
  border-color: var(--fp-blue);
  color: #fff;
}
.activity-dt-wrap .dt-paging .page-item.disabled .page-link {
  color: #a0a5b8;
  background: #f5f6fa;
}
.activity-dt-wrap .dt-paging .page-link:hover {
  background: rgba(60, 59, 110, 0.08);
  color: var(--fp-blue-dark);
  border-color: rgba(60, 59, 110, 0.25);
}
.activity-dt-wrap .dt-paging .page-item.active .page-link:hover {
  background-color: var(--fp-blue-dark);
  border-color: var(--fp-blue-dark);
  color: #fff;
}

/* Keep blue thead + tag chips under DataTables sorting UI */
.activity-dt-wrap table.dataTable thead > tr > th,
.activity-dt-wrap table.table-fp thead th {
  background: var(--fp-blue) !important;
  color: #fff !important;
  border-bottom: 0 !important;
  vertical-align: middle;
}
.activity-dt-wrap table.dataTable thead > tr > th.dt-ordering-asc,
.activity-dt-wrap table.dataTable thead > tr > th.dt-ordering-desc,
.activity-dt-wrap table.dataTable thead > tr > th.dt-orderable-asc,
.activity-dt-wrap table.dataTable thead > tr > th.dt-orderable-desc {
  background: var(--fp-blue) !important;
  color: #fff !important;
}
.activity-dt-wrap table.dataTable thead > tr > th:hover {
  background: var(--fp-blue-dark) !important;
}
.activity-dt-wrap table.dataTable thead .dt-column-order {
  color: rgba(255, 255, 255, 0.85);
  opacity: 0.9;
}
.activity-dt-wrap table.dataTable.table > :not(caption) > * > * {
  border-color: var(--fp-border);
}
.activity-dt-wrap table.dataTable tbody tr:hover td {
  background: rgba(60, 59, 110, 0.03);
}
.activity-dt-wrap .activity-details {
  max-width: 28rem;
  overflow-wrap: anywhere;
  word-break: break-word;
  font-size: 0.85rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.activity-dt-wrap table.dataTable {
  border-collapse: collapse !important;
  margin: 0 !important;
}
.activity-dt-wrap .table-fp {
  border-radius: 0;
}

@media (max-width: 575.98px) {
  .activity-dt-wrap .dt-layout-row {
    flex-direction: column;
    align-items: stretch;
  }
  .activity-dt-wrap .dt-search input {
    min-width: 0;
    width: 100%;
  }
}

/* —— Resource limits (roles + user edit) —— */
.limits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr));
  gap: 0.75rem 1rem;
}
.limits-field .form-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--fp-text);
  margin-bottom: 0.3rem;
}
.limits-field .form-text {
  font-size: 0.75rem;
  color: var(--fp-text-muted);
  margin-top: 0.25rem;
}
.limits-field .form-control {
  max-width: 8rem;
}
.border-bottom-soft {
  border-bottom: 1px solid var(--fp-border) !important;
}

/* —— Recipes module —— */
.recipe-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 480px) {
  .recipe-grid {
    grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr));
  }
}
.recipe-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--fp-border);
  border-radius: var(--fp-radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 0.12rem 0.5rem rgba(60, 59, 110, 0.06);
  border-left: 4px solid var(--fp-blue);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
  height: 100%;
  max-width: 100%;
}
.recipe-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 0.35rem 1rem rgba(60, 59, 110, 0.12);
  color: inherit;
}
.recipe-card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #eef1f7, #dde2ef);
  overflow: hidden;
}
.recipe-card-media img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
  display: block;
}
.recipe-card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fp-text-muted);
  font-size: 2rem;
  opacity: 0.45;
}
.recipe-card-badge {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  background: rgba(178, 34, 52, 0.92);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
}
.recipe-card-body {
  padding: 0.85rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}
.recipe-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--fp-blue);
  margin: 0;
  line-height: 1.3;
}
.recipe-card-summary {
  margin: 0;
  font-size: 0.88rem;
  color: var(--fp-text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.recipe-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.75rem;
  font-size: 0.78rem;
  color: var(--fp-text-muted);
  margin-top: auto;
  padding-top: 0.45rem;
}
.recipe-card-meta i { opacity: 0.8; }

.recipe-diff-easy { color: #2d6a4f; }
.recipe-diff-medium { color: #b36b00; }
.recipe-diff-hard { color: var(--fp-red); }

.recipe-hero {
  margin: 0 0 1rem;
  border-radius: var(--fp-radius);
  overflow: hidden;
  position: relative;
  background: #eef1f7;
  border: 1px solid var(--fp-border);
  width: 100%;
}
.recipe-hero-img {
  width: 100%;
  height: auto;
  max-height: min(52vh, 22rem);
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}
.recipe-hero a {
  display: block;
  position: relative;
  color: inherit;
}
.recipe-hero-zoom {
  position: absolute;
  right: 0.65rem;
  bottom: 0.65rem;
  background: rgba(42, 41, 79, 0.82);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
}
.recipe-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(4.25rem, 1fr));
  gap: 0.5rem;
  max-width: 100%;
}
.recipe-gallery-item {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--fp-radius-sm);
  overflow: hidden;
  border: 2px solid var(--fp-border);
  display: block;
}
.recipe-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.recipe-gallery-item:hover {
  border-color: var(--fp-blue);
}

.recipe-meta-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.recipe-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: rgba(60, 59, 110, 0.08);
  color: var(--fp-blue);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
}

.recipe-ing-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.recipe-ing-item {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin: 0;
  cursor: pointer;
  padding: 0.4rem 0.5rem;
  border-radius: var(--fp-radius-sm);
  transition: background 0.1s ease;
}
.recipe-ing-item:hover { background: rgba(60, 59, 110, 0.05); }
.recipe-ing-item input:checked + span {
  text-decoration: line-through;
  opacity: 0.55;
}
.recipe-ing-item .form-check-input {
  margin-top: 0.25rem;
  flex-shrink: 0;
}

.recipe-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  counter-reset: none;
}
.recipe-step {
  list-style: none;
}
.recipe-step-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin: 0;
  cursor: pointer;
  padding: 0.45rem 0.5rem;
  border-radius: var(--fp-radius-sm);
  transition: background 0.1s ease;
}
.recipe-step-item:hover {
  background: rgba(60, 59, 110, 0.05);
}
.recipe-step-check {
  position: relative;
  flex: 0 0 1.85rem;
  width: 1.85rem;
  height: 1.85rem;
}
.recipe-step-check .form-check-input {
  position: absolute;
  inset: 0;
  width: 1.85rem;
  height: 1.85rem;
  margin: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}
.recipe-step-num {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: var(--fp-blue);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.12s ease, color 0.12s ease;
  pointer-events: none;
}
.recipe-step-item.is-done .recipe-step-num,
.recipe-step-check .form-check-input:checked + .recipe-step-num {
  background: #2d6a4f;
}
.recipe-step-item.is-done .recipe-step-num::before,
.recipe-step-check .form-check-input:checked + .recipe-step-num::before {
  content: "✓";
}
.recipe-step-item.is-done .recipe-step-num,
.recipe-step-check .form-check-input:checked + .recipe-step-num {
  color: transparent; /* hide digits; show check via ::before */
  font-size: 0.95rem;
}
.recipe-step-item.is-done .recipe-step-num::before,
.recipe-step-check .form-check-input:checked + .recipe-step-num::before {
  color: #fff;
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 700;
}
.recipe-step-body {
  flex: 1;
  line-height: 1.5;
  padding-top: 0.15rem;
  color: var(--fp-text);
}
.recipe-step-item.is-done .recipe-step-body {
  text-decoration: line-through;
  opacity: 0.55;
}
.recipe-body-row {
  /* ensure min-width doesn't blow out on mobile */
  min-width: 0;
}
.recipe-body-row > [class*="col-"] {
  min-width: 0;
}
.recipe-instructions {
  line-height: 1.55;
  white-space: pre-wrap;
}

.conv-result {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 1.05rem;
  font-weight: 650;
  color: var(--fp-blue);
  background: #fafbfe;
  border: 1px dashed rgba(178, 34, 52, 0.35);
  border-radius: var(--fp-radius-sm);
  padding: 0.85rem 1rem;
  word-break: break-word;
}
.conv-result.is-warn {
  color: #6b4e16;
  border-color: #f0d9a8;
  background: #fff8eb;
  font-weight: 500;
  font-size: 0.9rem;
}
.recipe-conv-modal {
  border: 0;
  border-left: 4px solid var(--fp-red);
  border-radius: var(--fp-radius) !important;
  overflow: hidden;
}
.recipe-conv-modal .modal-header {
  background: #fafbfe;
  border-bottom: 1px solid var(--fp-border);
  color: var(--fp-blue);
}
.recipe-conv-modal .modal-title {
  font-weight: 700;
  color: var(--fp-blue);
}
.recipe-conv-modal .modal-footer {
  border-top: 1px solid var(--fp-border);
  background: #fafbfe;
}
.recipe-conv-inline {
  border-radius: 999px !important;
  padding: 0.2rem 0.55rem !important;
  font-size: 0.8rem;
  line-height: 1.2;
}
.panel-head .recipe-conv-inline {
  flex-shrink: 0;
}
@media (max-width: 575.98px) {
  .recipe-conv-modal .modal-dialog {
    margin: 0.5rem;
    max-width: calc(100% - 1rem);
  }
  .recipe-conv-modal .modal-body {
    padding: 1rem;
  }
  .recipe-conv-modal .form-control,
  .recipe-conv-modal .form-select {
    min-height: 2.65rem;
    font-size: 1rem; /* avoid iOS zoom on focus */
  }
  .conv-result {
    font-size: 0.95rem;
  }
}

/* Form */
.ingredient-rows,
.step-rows {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.ingredient-row {
  display: grid;
  grid-template-columns: 4.5rem 5.5rem 1fr 1fr auto;
  gap: 0.35rem;
  align-items: center;
}
.step-row {
  display: grid;
  grid-template-columns: 1.75rem 1fr auto;
  gap: 0.45rem;
  align-items: start;
}
.step-num {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 999px;
  background: rgba(60, 59, 110, 0.12);
  color: var(--fp-blue);
  font-weight: 700;
  font-size: 0.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.35rem;
}
.recipe-edit-preview,
.recipe-local-preview,
.recipe-upload-block {
  max-width: 100%;
}
.recipe-edit-thumb {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: min(40vh, 14rem);
  aspect-ratio: 16 / 10;
  border-radius: var(--fp-radius-sm);
  border: 1px solid var(--fp-border);
  object-fit: cover;
  background: #eef1f7;
}
.recipe-edit-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(5rem, 1fr));
  gap: 0.65rem;
}
.recipe-edit-gallery-item {
  width: 100%;
  min-width: 0;
}
.recipe-edit-gallery-item img {
  width: 100%;
  aspect-ratio: 1;
  height: auto;
  object-fit: cover;
  border-radius: var(--fp-radius-sm);
  border: 1px solid var(--fp-border);
  display: block;
}
.recipe-edit-gallery-item .actions-inline {
  flex-wrap: wrap;
  gap: 0.15rem;
}
.recipe-extra-upload {
  max-width: 100%;
}

/* Lightbox */
.recipe-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(20, 20, 40, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(0.75rem, env(safe-area-inset-top)) max(0.75rem, env(safe-area-inset-right)) max(0.75rem, env(safe-area-inset-bottom)) max(0.75rem, env(safe-area-inset-left));
  cursor: zoom-out;
}
.recipe-lightbox[hidden] { display: none !important; }
.recipe-lightbox img {
  max-width: 100%;
  max-height: min(88vh, 100%);
  width: auto;
  height: auto;
  border-radius: 0.5rem;
  box-shadow: 0 0.5rem 2rem rgba(0, 0, 0, 0.4);
  cursor: default;
  object-fit: contain;
}
.recipe-lightbox-close {
  position: absolute;
  top: max(0.5rem, env(safe-area-inset-top));
  right: max(0.65rem, env(safe-area-inset-right));
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 2.25rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.9;
  min-width: 2.75rem;
  min-height: 2.75rem;
}
.recipe-lightbox-close:hover { opacity: 1; }

@media (max-width: 767.98px) {
  .ingredient-row {
    grid-template-columns: 1fr 1fr;
  }
  .ingredient-row input[name="ing_name[]"],
  .ingredient-row input[name="ing_note[]"] {
    grid-column: 1 / -1;
  }
  .ingredient-row .ing-remove {
    grid-column: 1 / -1;
    justify-self: end;
  }
  .recipe-hero-img {
    max-height: min(42vh, 16rem);
  }
  .recipe-hero-zoom {
    font-size: 0.72rem;
    padding: 0.3rem 0.55rem;
  }
  .recipe-card:hover {
    transform: none; /* avoid jank on touch */
  }
  .recipe-view .col-lg-5,
  .recipe-view .col-lg-7 {
    min-width: 0; /* prevent flex overflow of images */
  }
}

/* Screen print of live recipe page (fallback) */
@media print {
  .no-print,
  .sidebar-fp,
  .navbar-fp,
  .fp-stripe,
  .recipe-lightbox {
    display: none !important;
  }
  .app-layout {
    display: block !important;
  }
  .main-panel {
    padding: 0 !important;
  }
  .recipe-step-check .form-check-input {
    opacity: 1;
    position: static;
    width: 1rem;
    height: 1rem;
  }
  .recipe-step-num {
    display: none;
  }
}



/* —— Email page (tabbed) —— */
.email-tabs .nav-link {
  gap: 0.4rem;
}
.email-tabs .nav-link i {
  opacity: 0.9;
}
.email-tabs .nav-link.disabled {
  opacity: 0.45;
  pointer-events: none;
}
.email-tab-content {
  max-width: 52rem;
}
.email-tab-card {
  max-width: 52rem;
}
.email-status-block {
  padding: 0.85rem 1rem;
  background: rgba(60, 59, 110, 0.06);
  border-radius: var(--fp-radius-sm);
  border: 1px solid var(--fp-border);
}
.email-subcard {
  margin-top: 1.15rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--fp-border);
}
.email-subcard-title {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--fp-text-muted);
  margin: 0 0 0.65rem;
}
.email-subcard-primary {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}
.email-subcard-danger .email-subcard-title {
  color: var(--fp-red);
}
@media (max-width: 575.98px) {
  .email-tabs {
    width: 100%;
  }
  .email-tabs .nav-item {
    flex: 1 1 auto;
  }
  .email-tabs .nav-link {
    width: 100%;
    justify-content: center;
    font-size: 0.88rem;
    padding: 0.45rem 0.65rem;
  }
  .email-tabs .roles-tab-count {
    display: none;
  }
}

/* Email item lists + modals */
.email-item-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.email-item {
  background: var(--fp-light);
  border: 1px solid var(--fp-border);
  border-radius: var(--fp-radius);
  padding: 0.85rem 1rem;
}
.email-item-main {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}
.email-modal {
  border: 0;
  border-left: 4px solid var(--fp-blue);
  border-radius: var(--fp-radius) !important;
  overflow: hidden;
}
.email-modal .modal-header {
  background: #fafbfe;
  border-bottom: 1px solid var(--fp-border);
}
.email-modal .modal-title {
  font-weight: 700;
  color: var(--fp-blue);
}
.email-modal .modal-footer {
  background: #fafbfe;
  border-top: 1px solid var(--fp-border);
}
@media (max-width: 575.98px) {
  .email-item-main {
    flex-direction: column;
    align-items: stretch;
  }
  .email-item-main .actions-inline {
    justify-content: flex-start;
  }
  .email-modal .modal-dialog {
    margin: 0.5rem;
  }
  .email-modal .form-control,
  .email-modal .form-select {
    min-height: 2.65rem;
    font-size: 1rem;
  }
}

/* Email client setup card */
.email-setup-card {
  padding-top: 1.15rem;
  border-top: 1px solid var(--fp-border);
}
.email-setup-table th {
  width: 8.5rem;
  color: var(--fp-text-muted);
  font-weight: 600;
  font-size: 0.85rem;
  background: transparent !important;
  color: var(--fp-text-muted) !important;
  border: 0;
  padding-left: 0;
  vertical-align: top;
}
.email-setup-table td {
  border: 0;
  padding-right: 0;
  font-size: 0.9rem;
}
.email-setup-table tbody tr + tr th,
.email-setup-table tbody tr + tr td {
  padding-top: 0.55rem;
}
@media (max-width: 575.98px) {
  .email-setup-table th {
    display: block;
    width: auto;
    padding-bottom: 0.15rem;
  }
  .email-setup-table td {
    display: block;
    padding-bottom: 0.65rem;
  }
}
