:root {
  --navy: #0D1B2E;
  --navy-mid: #152643;
  --navy-light: #1E3A5F;
  --blue: #2A7FD4;
  --blue-bright: #3B9EE8;
  --blue-light: #D6EAF8;
  --silver: #B8C8D8;
  --silver-light: #E8EEF4;
  --white: #FFFFFF;
  --cream: #F4F7FA;
  --text-main: #0D1B2E;
  --text-muted: #5A6E85;
  --border: rgba(13, 27, 46, 0.1);
  --error: #DC2626;
  --success: #059669;
  --radius: 4px;
  --radius-lg: 8px;
  --admin-sidebar-width: 260px;
  --admin-topbar-height: 56px;
}

* { box-sizing: border-box; }

html {
  cursor: default;
  height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--text-main);
  line-height: 1.5;
  cursor: default;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
}

body * {
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  caret-color: transparent;
  -webkit-user-modify: read-only;
}

a, button, .btn, .btn-primary, .btn-small, .tabs__btn, .action-card, .admin-sidebar__link, .admin-sidebar__account-link, .admin-topbar__toggle, .publish-field__label, label {
  cursor: pointer;
}

input, textarea, select,
input *, textarea *, select * {
  cursor: text;
  user-select: text;
  -webkit-user-select: text;
  -moz-user-select: text;
  caret-color: auto;
  -webkit-user-modify: read-write;
}

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-bright); }

h1, h2, h3, legend {
  font-family: 'Barlow Condensed', sans-serif;
  letter-spacing: 0.02em;
}

/* ── Admin shell (sidebar layout) ── */
.admin-shell {
  display: flex;
  min-height: 100vh;
  width: 100%;
}

.admin-sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 280;
  background: rgba(13, 27, 46, 0.45);
  backdrop-filter: blur(2px);
}

.admin-sidebar-backdrop:not([hidden]) {
  display: block;
}

.admin-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 300;
  width: var(--admin-sidebar-width);
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, var(--navy) 0%, #0a1525 100%);
  color: var(--white);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 4px 0 24px rgba(13, 27, 46, 0.12);
}

.admin-sidebar__head {
  flex-shrink: 0;
  padding: 1.25rem 1rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-sidebar__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--white);
}

.admin-sidebar__brand:hover {
  color: var(--white);
  text-decoration: none;
}

.admin-sidebar__brand-mark {
  flex-shrink: 0;
  width: 2.35rem;
  height: 2.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-bright) 100%);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.admin-sidebar__brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.25;
}

.admin-sidebar__brand-text strong {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-sidebar__brand-text span {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.48);
  letter-spacing: 0.04em;
}

.admin-sidebar__nav {
  flex: 1;
  overflow-y: auto;
  padding: 0.85rem 0.65rem;
}

.admin-sidebar__label {
  margin: 0.85rem 0 0.35rem;
  padding: 0 0.65rem;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
}

.admin-sidebar__label:first-child {
  margin-top: 0;
}

.admin-sidebar__link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.62rem 0.75rem;
  margin-bottom: 0.15rem;
  border-radius: var(--radius-lg);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.84rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
  border-left: 3px solid transparent;
}

.admin-sidebar__link:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.07);
  text-decoration: none;
}

.admin-sidebar__link.is-active {
  color: var(--white);
  background: rgba(42, 127, 212, 0.18);
  border-left-color: var(--blue-bright);
}

.admin-sidebar__link--external {
  color: rgba(255, 255, 255, 0.58);
}

.admin-sidebar__icon {
  flex-shrink: 0;
  width: 1.1rem;
  height: 1.1rem;
  opacity: 0.85;
}

.admin-sidebar__account {
  flex-shrink: 0;
  padding: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.12);
}

.admin-sidebar__account-user {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.65rem;
}

.admin-sidebar__avatar {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--blue);
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 700;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.15);
}

.admin-sidebar__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.admin-sidebar__account-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.3;
}

.admin-sidebar__account-meta strong {
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-sidebar__account-meta span {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.45);
}

.admin-sidebar__account-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.admin-sidebar__account-link {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.55rem;
  border: 0;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.72);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.admin-sidebar__account-link:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  text-decoration: none;
}

.admin-sidebar__account-link.is-active {
  background: rgba(42, 127, 212, 0.25);
  color: var(--white);
}

.admin-sidebar__account-link--danger {
  color: #FCA5A5;
}

.admin-sidebar__account-link--danger:hover {
  background: rgba(220, 38, 38, 0.2);
  color: #FECACA;
}

.admin-sidebar__logout {
  margin: 0;
}

.admin-body {
  flex: 1;
  min-width: 0;
  margin-left: var(--admin-sidebar-width);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.admin-topbar {
  display: none;
  align-items: center;
  gap: 0.75rem;
  position: sticky;
  top: 0;
  z-index: 200;
  min-height: var(--admin-topbar-height);
  padding: 0 1rem;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(13, 27, 46, 0.04);
}

.admin-topbar__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--navy);
}

.admin-topbar__toggle svg {
  width: 1.15rem;
  height: 1.15rem;
}

.admin-topbar__title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy);
}

.admin-main {
  flex: 1 0 auto;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.75rem 2rem;
}

.admin-footer {
  flex-shrink: 0;
  margin-top: auto;
  padding: 1rem 1.75rem;
  color: var(--text-muted);
  font-size: 0.78rem;
  border-top: 1px solid var(--border);
  background: var(--white);
}

.admin-footer p {
  margin: 0;
}

.admin-shell .admin-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.admin-shell .admin-footer__credit {
  margin-top: 0 !important;
}

.admin-footer__credit {
  margin-top: 0.45rem !important;
  font-size: 0.76rem;
  color: var(--text-muted);
}

.admin-footer__credit a {
  color: var(--blue);
  text-decoration: none;
}

.admin-footer__credit a:hover {
  text-decoration: underline;
}

.profile-card--single {
  max-width: 34rem;
}

.profile-details--compact {
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.profile-form {
  margin-top: 0.25rem;
}

.profile-avatar-field {
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}

.profile-avatar-field__row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.profile-avatar-field__preview {
  flex-shrink: 0;
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--blue-light);
  border: 2px solid var(--border);
}

.profile-avatar-field__preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profile-avatar-field__initial {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--navy);
}

.profile-avatar-field__controls {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.55rem;
}

.profile-avatar-field__upload {
  position: relative;
  overflow: hidden;
}

.profile-avatar-field__remove[hidden] {
  display: none;
}

.profile-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 1rem;
  align-items: start;
}

.profile-card__title {
  margin: 0 0 0.85rem;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--navy);
}

.profile-card__hint {
  margin: -0.35rem 0 1rem;
  color: var(--text-muted);
  font-size: 0.84rem;
}

.profile-details {
  margin: 0;
}

.profile-details__row {
  display: grid;
  grid-template-columns: 8rem 1fr;
  gap: 0.75rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--border);
}

.profile-details__row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.profile-details__row dt {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.profile-details__row dd {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-main);
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: capitalize;
}

.badge--info {
  background: var(--blue-light);
  color: var(--navy);
}

.role-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.role-badge--admin { background: #DBEAFE; color: #1D4ED8; }
.role-badge--sales_lead { background: #EDE9FE; color: #6D28D9; }
.role-badge--sales_person { background: #D1FAE5; color: #047857; }

.page-header {
  margin: 0 -1.75rem 1.25rem;
  padding: 1.1rem 1.75rem;
  background: var(--white);
  border: none;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  box-shadow: 0 1px 0 rgba(13, 27, 46, 0.04);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.page-header__lead {
  flex: 1 1 16rem;
  min-width: 0;
}

.page-header__title {
  margin: 0;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--navy);
  line-height: 1.25;
}

.page-header__trail {
  flex: 0 1 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.45rem;
  margin-left: auto;
  text-align: right;
}

.page-header__content {
  min-width: 0;
}

.page-header__breadcrumb {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.35;
}

.page-header__breadcrumb a {
  color: var(--blue);
  font-weight: 500;
  text-decoration: none;
}

.page-header__breadcrumb a:hover {
  color: var(--blue-bright);
  text-decoration: underline;
}

.page-header__sep {
  color: var(--text-muted);
  opacity: 0.55;
  font-size: 0.78rem;
  user-select: none;
}

.page-header__current {
  color: var(--text-muted);
  font-weight: 500;
}

.page-header__subtitle {
  margin: 0.35rem 0 0;
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.page-header__subtitle a {
  color: var(--blue);
  font-weight: 500;
}

.page-header__subtitle code {
  font-size: 0.72rem;
}

.page-header__extra {
  margin-top: 0.35rem;
}

.page-header__actions {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
}

.page-header h1 {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  color: var(--text-main);
}

.page-header p:not(.page-header__subtitle) {
  margin: 0.28rem 0 0;
  color: var(--text-muted);
  font-size: 0.76rem;
}

.page-header a.btn {
  font-size: 0.78rem;
}

@media (max-width: 640px) {
  .page-header__trail {
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
  }
}

.breadcrumb-link {
  margin: 0 0 0.28rem;
  font-size: 0.76rem;
}

.login-page {
  flex: 1 0 auto;
  display: grid;
  place-items: center;
  padding: 2rem;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
}

.login-card {
  width: 100%;
  max-width: 440px;
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(13, 27, 46, 0.25);
  border-top: 3px solid var(--blue);
}

.login-card h1 {
  margin: 0;
  font-size: 1.8rem;
  text-transform: uppercase;
  color: var(--navy);
}

.login-subtitle { color: var(--text-muted); margin: 0.5rem 0 1.5rem; font-size: 0.92rem; }

.card, .table-card, .stat-card, .action-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 1px 3px rgba(13, 27, 46, 0.04);
}

.card { padding: 1.5rem; }

.stats-grid, .card-grid {
  display: grid;
  gap: 1rem;
}

.stats-grid { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); margin-bottom: 1.5rem; }
.card-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.stat-card, .action-card { padding: 1.25rem; }

.stat-card {
  border-top: 3px solid var(--blue);
}

.action-card {
  display: block;
  color: inherit;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.action-card:hover {
  transform: translateY(-2px);
  border-color: var(--blue);
  box-shadow: 0 4px 24px rgba(42, 127, 212, 0.11);
  text-decoration: none;
}

.action-card h2 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  text-transform: uppercase;
  color: var(--text-main);
}

.action-card p { margin: 0; color: var(--text-muted); font-size: 0.85rem; }

.stat-label {
  display: block;
  color: var(--text-muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.35rem;
}

.stat-card strong {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.5rem;
  color: var(--blue);
}

.table-card { overflow-x: auto; }

table { width: 100%; border-collapse: collapse; }

th, td {
  padding: 0.875rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

th {
  background: var(--silver-light);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  font-weight: 600;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-bottom: 0.85rem;
}

.form-group label,
.form label {
  font-size: 0.74rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin: 0;
}

.form input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]),
.form textarea,
.form select {
  width: 100%;
  margin-top: 0;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem;
  color: var(--text-main);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]):focus,
.form textarea:focus,
.form select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(42, 127, 212, 0.12);
}

.form input.input-error,
.form textarea.input-error {
  border-color: var(--error);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.form textarea.code-input {
  font-family: Consolas, 'Courier New', monospace;
  font-size: 0.88rem;
  line-height: 1.6;
}

fieldset {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem 0.25rem;
  margin: 0 0 1.25rem;
  background: var(--cream);
}

legend {
  padding: 0 0.5rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--navy);
}

.form-actions { margin-top: 1.25rem; }

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: background 0.2s, transform 0.15s;
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--blue-bright);
}

.btn-secondary {
  background: var(--white);
  color: var(--navy);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--blue-light);
  color: var(--navy);
  text-decoration: none;
}

.btn-small {
  padding: 0.4rem 0.85rem;
  font-size: 0.78rem;
  background: var(--blue-light);
  color: var(--navy);
  font-weight: 600;
}

.btn-small:hover {
  background: var(--blue);
  color: var(--white);
  text-decoration: none;
}

.alert {
  padding: 0.875rem 1rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  font-size: 0.88rem;
}

.alert-error {
  background: #FEF2F2;
  color: var(--error);
  border: 1px solid #FECACA;
}

.alert-success {
  background: #ECFDF5;
  color: var(--success);
  border: 1px solid #A7F3D0;
}

.field-error {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.78rem;
  color: var(--error);
}

.field-hint {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

code {
  background: var(--silver-light);
  padding: 0.15rem 0.4rem;
  border-radius: var(--radius);
  font-size: 0.85em;
  color: var(--navy);
}

@media (max-width: 960px) {
  .admin-body {
    margin-left: 0;
  }

  .admin-topbar {
    display: flex;
  }

  .admin-sidebar {
    transform: translateX(-100%);
    transition: transform 0.25s ease;
  }

  .admin-shell.is-sidebar-open .admin-sidebar {
    transform: translateX(0);
  }

  .admin-main {
    padding: 0 1rem 1.5rem;
  }

  .page-header {
    margin-left: -1rem;
    margin-right: -1rem;
    padding: 1rem;
  }

  .admin-footer {
    padding: 1rem;
    text-align: center;
  }
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 768px) {
  .form-row { grid-template-columns: 1fr; }
}

.tabs__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.75rem;
}

.tabs__btn {
  background: var(--silver-light);
  border: 1px solid var(--border);
  color: var(--navy);
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.tabs__btn.is-active {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
}

.tabs__panel { display: none; }
.tabs__panel.is-active { display: block; }

.repeater-item {
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 1rem;
  margin-bottom: 0.75rem;
  background: var(--white);
}

.subsection-title {
  margin: 1.25rem 0 0.75rem;
  font-size: 1rem;
  color: var(--navy-light);
}

.media-field { margin-bottom: 1rem; }

.media-field__controls {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.media-field__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.media-field__upload {
  position: relative;
  overflow: hidden;
  margin: 0;
}

.media-field__upload input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.media-field__remove {
  background: #FEE2E2;
  color: var(--error);
  border: 1px solid #FECACA;
}

.media-field__remove:hover {
  background: var(--error);
  color: var(--white);
}

.media-preview {
  margin-top: 0.5rem;
}

.media-preview img {
  max-width: 180px;
  max-height: 120px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.media-preview__file {
  display: inline-block;
  padding: 0.35rem 0.6rem;
  background: var(--silver-light);
  border-radius: var(--radius);
  font-size: 0.8rem;
}

.btn-danger {
  background: #FEE2E2;
  color: var(--error);
}

.btn-danger:hover {
  background: var(--error);
  color: var(--white);
}

.empty-state {
  padding: 2rem;
  color: var(--text-muted);
  text-align: center;
}

.row-unread td {
  font-weight: 600;
}

.enquiry-detail {
  padding: 1.5rem;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.5rem;
}

.detail-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.detail-item--full {
  grid-column: 1 / -1;
  margin-top: 0.5rem;
}

.detail-label {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.detail-message {
  white-space: pre-wrap;
  line-height: 1.6;
  color: var(--text-main);
  background: var(--silver-light);
  border-radius: var(--radius);
  padding: 1rem;
}

@media (max-width: 768px) {
  .detail-grid {
    grid-template-columns: 1fr;
  }
}

.table-actions-bar {
  display: flex;
  gap: 0.35rem;
  align-items: center;
  flex-wrap: nowrap;
}

td.table-actions {
  width: 1%;
  white-space: nowrap;
}

.table-thumb {
  display: block;
  width: 48px;
  height: 32px;
  object-fit: contain;
  border-radius: 4px;
  background: var(--surface-muted, #f4f6f9);
  border: 1px solid var(--border, #dde3ea);
}

.inline-form {
  display: inline-flex;
  align-items: center;
  margin: 0;
}

.inline-form button {
  margin: 0;
}

.form-group--checkbox label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.88rem;
  color: var(--text-main);
}

.publish-field {
  margin-bottom: 0.85rem;
}

.publish-field--compact {
  margin-bottom: 0.75rem;
}

.publish-field--compact .publish-field__label {
  padding: 0.75rem 0.9rem;
}

.publish-field--compact .publish-field__title {
  font-size: 0.82rem;
}

.publish-field--compact .publish-field__hint {
  font-size: 0.74rem;
}

.publish-field__label {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--white);
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  margin: 0;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  color: inherit;
}

.publish-field__label:hover {
  border-color: rgba(42, 127, 212, 0.35);
  background: rgba(214, 234, 248, 0.18);
}

.publish-field__input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  pointer-events: none;
}

.publish-field__switch {
  flex-shrink: 0;
  width: 2.6rem;
  height: 1.45rem;
  border-radius: 999px;
  background: #CBD5E1;
  border: 1px solid #B8C8D8;
  position: relative;
  transition: background 0.2s, border-color 0.2s;
  margin-top: 0.1rem;
}

.publish-field__switch::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 1px 4px rgba(13, 27, 46, 0.22);
  transition: transform 0.2s ease;
}

.publish-field__input:checked + .publish-field__switch {
  background: var(--blue);
  border-color: var(--blue);
}

.publish-field__input:checked + .publish-field__switch::after {
  transform: translateX(1.15rem);
}

.publish-field__input:focus-visible + .publish-field__switch {
  box-shadow: 0 0 0 3px rgba(42, 127, 212, 0.22);
}

.publish-field__content {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.publish-field__title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.35;
}

.publish-field__hint {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.publish-field__input:checked ~ .publish-field__content .publish-field__title {
  color: var(--navy);
}

.pipeline-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.pipeline-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1rem 1.1rem;
  box-shadow: 0 2px 12px rgba(13, 27, 46, 0.06);
  border-top: 3px solid var(--blue);
}

.pipeline-card__label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.pipeline-card__value {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.8rem;
  color: var(--navy);
}

.pipeline-card--new { border-top: 3px solid #2563EB; }
.pipeline-card--due { border-top: 3px solid #D97706; }
.pipeline-card--won { border-top: 3px solid #059669; }
.pipeline-card--lost { border-top: 3px solid #DC2626; }

.filter-bar {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)) auto;
  gap: 0.85rem;
  align-items: end;
  padding: 1rem;
  margin-bottom: 1rem;
}

.enquiry-filters {
  padding: 1.1rem 1.25rem 1.25rem;
  margin-bottom: 1rem;
  border-top: 3px solid var(--blue);
}

.enquiry-filters__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border);
}

.enquiry-filters__title {
  margin: 0 0 0.2rem;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--navy);
}

.enquiry-filters__subtitle {
  margin: 0;
  font-size: 0.84rem;
  color: var(--text-muted);
}

.enquiry-filters__clear {
  flex-shrink: 0;
  padding: 0.45rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  background: var(--white);
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.enquiry-filters__clear:hover {
  color: var(--error);
  border-color: #FECACA;
  background: #FEF2F2;
  text-decoration: none;
}

.enquiry-filters__quick,
.enquiry-filters__active {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 0.9rem;
}

.enquiry-filters__quick-label,
.enquiry-filters__active-label {
  flex-shrink: 0;
  min-width: 5.5rem;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.38rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--white);
  color: var(--text-main);
  font-size: 0.78rem;
  font-weight: 500;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s, color 0.2s, box-shadow 0.2s;
}

.filter-chip:hover {
  border-color: var(--blue);
  color: var(--blue);
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(42, 127, 212, 0.08);
}

.filter-chip.is-active {
  border-color: var(--blue);
  background: var(--blue-light);
  color: var(--navy);
  font-weight: 600;
}

.filter-chip--urgent.is-active {
  border-color: #DC2626;
  background: #FEE2E2;
  color: #B91C1C;
}

.filter-chip--urgent.is-active:hover {
  border-color: #B91C1C;
  background: #FECACA;
  color: #991B1B;
}

.enquiry-filters__active .filter-chip.is-active {
  border-color: #0D9488;
  background: #CCFBF1;
  color: #0F766E;
}

.enquiry-filters__active .filter-chip.is-active:hover {
  border-color: #DC2626;
  background: #FEE2E2;
  color: #B91C1C;
}

.enquiry-filters__form {
  margin: 0;
}

.enquiry-filters__search {
  margin-bottom: 0.85rem;
}

.enquiry-filters__search label,
.enquiry-filters__field label {
  display: block;
  margin: 0 0 0.3rem;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.enquiry-filters__search input,
.enquiry-filters__field input,
.enquiry-filters__field select {
  width: 100%;
  margin: 0;
  padding: 0.62rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem;
  color: var(--text-main);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.enquiry-filters__search input {
  padding-left: 2.35rem;
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%235A6E85' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='7' cy='7' r='5'/%3E%3Cpath d='m11 11 3 3'/%3E%3C/svg%3E") no-repeat 0.85rem center;
}

.enquiry-filters__search input:focus,
.enquiry-filters__field input:focus,
.enquiry-filters__field select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(42, 127, 212, 0.12);
}

.enquiry-filters__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 0.85rem;
  align-items: end;
  padding-top: 0.85rem;
  border-top: 1px dashed var(--border);
}

.enquiry-filters__submit {
  display: flex;
  align-items: flex-end;
}

.enquiry-filters__submit .btn {
  width: 100%;
  white-space: nowrap;
}

.filter-bar__group label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.filter-bar__actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.lead-cell {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.lead-cell__meta {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.source-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
}

.source-badge--home { background: #E0F2FE; color: #0369A1; }
.source-badge--category { background: #EDE9FE; color: #6D28D9; }
.source-badge--modal { background: #FFEDD5; color: #C2410C; }
.source-badge--admin { background: #DCFCE7; color: #15803D; }

.status-badge,
.priority-badge,
.value-badge,
.timeline-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.status-badge--new { background: #DBEAFE; color: #1D4ED8; }
.status-badge--contacted { background: #E0E7FF; color: #4338CA; }
.status-badge--qualified { background: #EDE9FE; color: #6D28D9; }
.status-badge--quote_sent { background: #FEF3C7; color: #B45309; }
.status-badge--negotiation { background: #FFEDD5; color: #C2410C; }
.status-badge--won { background: #D1FAE5; color: #047857; }
.status-badge--lost { background: #FEE2E2; color: #B91C1C; }
.status-badge--on_hold { background: #F3F4F6; color: #4B5563; }

.priority-badge--low { background: #F3F4F6; color: #6B7280; }
.priority-badge--medium { background: #E0F2FE; color: #0369A1; }
.priority-badge--high { background: #FEF3C7; color: #B45309; }
.priority-badge--urgent { background: #FEE2E2; color: #B91C1C; }

.value-badge {
  background: #ECFDF5;
  color: #047857;
}

.row-due {
  background: rgba(217, 119, 6, 0.06);
}

.due-text {
  color: #B45309;
  font-weight: 600;
}

.lead-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.65rem;
}

.crm-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.crm-panel {
  padding: 1.25rem;
}

.crm-panel__title {
  margin: 0 0 1rem;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--navy);
}

.crm-panel--timeline {
  margin-bottom: 1.5rem;
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.timeline-item {
  border-left: 3px solid var(--blue-light);
  padding: 0.75rem 0 0.75rem 1rem;
  background: var(--silver-light);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.timeline-item__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
  margin-bottom: 0.45rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.timeline-item__text {
  margin: 0;
  white-space: pre-wrap;
  line-height: 1.55;
  color: var(--text-main);
}

.timeline-badge--call { background: #DBEAFE; color: #1D4ED8; }
.timeline-badge--email { background: #EDE9FE; color: #6D28D9; }
.timeline-badge--meeting { background: #FFEDD5; color: #C2410C; }
.timeline-badge--whatsapp { background: #D1FAE5; color: #047857; }
.timeline-badge--note { background: #F3F4F6; color: #4B5563; }

.list-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  margin-bottom: 1rem;
  border-top: 3px solid var(--blue);
  background: linear-gradient(180deg, var(--white) 0%, #fbfcfe 100%);
}

.list-toolbar__form {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex: 1;
  min-width: 0;
  flex-wrap: nowrap;
}

.list-toolbar__field {
  display: flex;
  align-items: stretch;
  min-width: 0;
}

.list-toolbar__field--search {
  flex: 1 1 14rem;
}

.list-toolbar__field--select {
  flex: 0 0 auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--white);
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(13, 27, 46, 0.04);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.list-toolbar__field--select:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(42, 127, 212, 0.12);
}

.list-toolbar__field-label {
  display: inline-flex;
  align-items: center;
  padding: 0 0.75rem;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  background: var(--cream);
  border-right: 1px solid var(--border);
  white-space: nowrap;
}

.list-toolbar__input,
.list-toolbar__select {
  margin: 0;
  border: 0;
  background: transparent;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.86rem;
  color: var(--text-main);
  outline: none;
}

.list-toolbar__input {
  width: 100%;
  height: 2.5rem;
  padding: 0 0.85rem 0 2.4rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background-color: var(--white);
  box-shadow: 0 1px 2px rgba(13, 27, 46, 0.04);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.list-toolbar__input--search {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%235A6E85' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='7' cy='7' r='5'/%3E%3Cpath d='m11 11 3 3'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 0.85rem center;
}

.list-toolbar__input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(42, 127, 212, 0.12);
}

.list-toolbar__select {
  height: 2.5rem;
  min-width: 8.5rem;
  padding: 0 2rem 0 0.75rem;
  appearance: none;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%235A6E85' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m2.5 4.5 3.5 3.5 3.5-3.5'/%3E%3C/svg%3E") no-repeat right 0.75rem center;
  cursor: pointer;
}

.list-toolbar__chips {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
  padding-left: 0.15rem;
}

.list-toolbar__chips .filter-chip {
  min-height: 2.5rem;
  padding-top: 0.55rem;
  padding-bottom: 0.55rem;
}

.list-toolbar__actions {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
}

.list-toolbar__actions .btn-small {
  min-height: 2.5rem;
  padding-top: 0.55rem;
  padding-bottom: 0.55rem;
}

.list-toolbar__meta {
  margin: 0;
  flex-shrink: 0;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
  padding-left: 0.75rem;
  border-left: 1px solid var(--border);
}

.product-filter-tags-field {
  margin-bottom: 1rem;
}

.filter-tags-checkboxes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  padding: 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: 0 1px 2px rgba(13, 27, 46, 0.04);
}

.filter-tag-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--white);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
  font-size: 0.82rem;
  color: var(--text-main);
}

.filter-tag-checkbox:hover {
  border-color: var(--blue);
  background: rgba(214, 234, 248, 0.18);
}

.filter-tag-checkbox input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  pointer-events: none;
}

.filter-tag-checkbox__box {
  flex-shrink: 0;
  width: 1rem;
  height: 1rem;
  border: 1.5px solid var(--border);
  border-radius: 3px;
  background: var(--white);
  position: relative;
  transition: border-color 0.15s, background 0.15s;
}

.filter-tag-checkbox__label {
  line-height: 1.2;
}

.filter-tag-checkbox input:checked + .filter-tag-checkbox__box {
  border-color: var(--blue);
  background: var(--blue);
}

.filter-tag-checkbox input:checked + .filter-tag-checkbox__box::after {
  content: '';
  position: absolute;
  left: 0.2rem;
  top: 0.05rem;
  width: 0.28rem;
  height: 0.55rem;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.filter-tag-checkbox input:checked ~ .filter-tag-checkbox__label {
  color: var(--navy);
  font-weight: 600;
}

.filter-tag-checkbox:has(input:checked) {
  border-color: var(--blue);
  background: var(--blue-light);
}

.filter-tag-checkbox:has(input:focus-visible) {
  box-shadow: 0 0 0 3px rgba(42, 127, 212, 0.12);
}

.field-hint--warning {
  color: #B45309;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.list-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border-top: 1px solid var(--border);
}

.list-pagination__summary {
  margin: 0;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.list-pagination__links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.list-pagination__page {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  height: 2rem;
  padding: 0 0.45rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text-main);
  font-size: 0.78rem;
  font-weight: 500;
  text-decoration: none;
}

.list-pagination__page:hover {
  border-color: var(--blue);
  color: var(--blue);
  text-decoration: none;
}

.list-pagination__page.is-active {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
}

@media (max-width: 768px) {
  .list-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .list-toolbar__form {
    flex-wrap: wrap;
  }

  .list-toolbar__field--search,
  .list-toolbar__field--select {
    flex: 1 1 100%;
  }

  .list-toolbar__field--select {
    max-width: none;
  }

  .list-toolbar__chips,
  .list-toolbar__actions {
    width: 100%;
  }

  .list-toolbar__meta {
    border-left: 0;
    padding-left: 0;
    padding-top: 0.35rem;
    border-top: 1px solid var(--border);
  }

  .list-pagination {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 1100px) {
  .pipeline-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filter-bar {
    grid-template-columns: 1fr 1fr;
  }

  .enquiry-filters__grid {
    grid-template-columns: 1fr 1fr;
  }

  .enquiry-filters__submit {
    grid-column: 1 / -1;
  }

  .crm-layout {
    grid-template-columns: 1fr;
  }

  .profile-layout {
    grid-template-columns: 1fr;
  }

  .profile-avatar-field__row {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 768px) {
  .pipeline-grid,
  .filter-bar,
  .enquiry-filters__grid {
    grid-template-columns: 1fr;
  }

  .enquiry-filters__quick,
  .enquiry-filters__active {
    align-items: flex-start;
    flex-direction: column;
  }
}
