/* =========================================================
   PBRG ADMIN DASHBOARD
   MASTER CSS
========================================================= */

:root {
  /* PBRG BRAND */
  --pbrg-navy: #002A54;
  --pbrg-gold: #EFBF04;

  /* UI COLORS */
  --page-bg: #F5F7FA;
  --surface: #FFFFFF;
  --border: #E3E8EE;

  --text-primary: #162536;
  --text-secondary: #66778A;
  --text-muted: #96A4B2;

  /* SIDEBAR */
  --sidebar-width: 250px;
  --sidebar-collapsed-width: 72px;

  /* TOPBAR */
  --topbar-height: 72px;

  /* UI */
  --radius: 3px;
  --transition: 220ms ease;
}


/* =========================================================
   RESET
========================================================= */

* {
  box-sizing: border-box;
}

html {
  margin: 0;
  padding: 0;
}

body {
  margin: 0;
  padding: 0;

  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  color: var(--text-primary);
  background: var(--page-bg);

  -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 0;
}


/* =========================================================
   APP
========================================================= */

.admin-app {
  min-height: 100vh;
}


/* =========================================================
   AUTHENTICATION
========================================================= */

.auth-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
  background: var(--page-bg);
}

.auth-screen[hidden] {
  display: none;
}

.auth-panel {
  width: min(100%, 430px);
  padding: 36px;
  background: var(--pbrg-navy);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

.auth-logo {
  display: block;
  width: 170px;
  height: auto;
  margin-bottom: 34px;
}

.auth-heading h1 {
  margin: 6px 0 8px;
  color: #FFFFFF;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  line-height: 1.15;
}

.auth-heading p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 17px;
  margin-top: 28px;
}

.auth-form[hidden] {
  display: none;
}

.auth-link {
  align-self: flex-start;
  padding: 0;
  color: var(--pbrg-gold);
  background: transparent;
  font-size: 12px;
  cursor: pointer;
}

.auth-link:hover {
  text-decoration: underline;
}

.auth-back-link {
  align-self: center;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.auth-field label {
  color: rgba(255, 255, 255, 0.9);
  font-size: 12px;
  font-weight: 600;
}

.auth-field input {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  color: var(--text-primary);
  background: #FFFFFF;
  border: 1px solid #DDE4EB;
  border-radius: var(--radius);
  outline: none;
}

.auth-field input:focus {
  border-color: var(--pbrg-gold);
  box-shadow: 0 0 0 2px rgba(239, 191, 4, 0.2);
}

.auth-message {
  padding: 11px 12px;
  color: #7A3B3B;
  background: #FFF3F3;
  border: 1px solid #EACCCC;
  border-radius: var(--radius);
  font-size: 12px;
  line-height: 1.45;
}

.auth-message-success {
  color: #287A4A;
  background: #EAF6EF;
  border-color: #BFDCC9;
}

.auth-form .auth-submit {
  width: 100%;
  margin-top: 2px;
  background: var(--pbrg-gold);
  border-color: var(--pbrg-gold);
  color: var(--pbrg-navy);
}

.auth-form .auth-submit:hover {
  background: #FFFFFF;
  border-color: #FFFFFF;
  color: var(--pbrg-navy);
}

.auth-submit:disabled {
  opacity: 0.65;
  cursor: wait;
}


/* =========================================================
   SIDEBAR
========================================================= */

.sidebar {
  position: fixed;

  top: 0;
  left: 0;

  width: var(--sidebar-width);
  height: 100vh;

  display: flex;
  flex-direction: column;

  background: var(--pbrg-navy);
  color: #FFFFFF;

  border-right: 1px solid rgba(255, 255, 255, 0.10);

  z-index: 100;

  transition:
    width var(--transition),
    transform var(--transition);
}


/* =========================================================
   SIDEBAR HEADER
========================================================= */

.sidebar-header {
  height: var(--topbar-height);

  padding: 0 16px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  border-bottom: 1px solid rgba(255, 255, 255, 0.12);

  flex-shrink: 0;
}


/* =========================================================
   BRAND
========================================================= */

.brand {
  min-width: 0;

  display: flex;
  align-items: center;
}

.brand-icon {
  display: none;
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.brand-logo {
  width: 150px;
  height: auto;
  object-fit: contain;
  display: block;
}

.brand-text {
  margin-left: 10px;

  display: flex;
  flex-direction: column;

  min-width: 0;

  white-space: nowrap;

  overflow: hidden;

  transition:
    opacity var(--transition),
    width var(--transition),
    margin var(--transition);
}

.brand-name {
  color: #FFFFFF;

  font-family:
    Georgia,
    "Times New Roman",
    serif;

  font-size: 17px;
  font-weight: 700;

  line-height: 1.1;
}

.brand-subtitle {
  margin-top: 3px;

  color: rgba(255, 255, 255, 0.55);

  font-size: 9px;
  font-weight: 700;

  letter-spacing: 0.12em;
}


/* =========================================================
   SIDEBAR TOGGLE
========================================================= */

.sidebar-toggle {
  width: 34px;
  height: 34px;

  display: flex;
  align-items: center;
  justify-content: center;

  flex-shrink: 0;

  color: rgba(255, 255, 255, 0.75);

  background: transparent;

  border: 1px solid transparent;
  border-radius: var(--radius);

  cursor: pointer;

  transition:
    background var(--transition),
    color var(--transition),
    border-color var(--transition);
}

.sidebar-toggle:hover {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.12);

  color: #FFFFFF;
}

.sidebar-toggle svg {
  width: 18px;
  height: 18px;
}


/* =========================================================
   SIDEBAR NAVIGATION
========================================================= */

.sidebar-nav {
  flex: 1;

  padding: 20px 10px;

  overflow-y: auto;
  overflow-x: hidden;
}

.nav-section {
  margin-bottom: 22px;
}

.nav-section-label {
  padding: 0 12px;

  margin-bottom: 7px;

  color: rgba(255, 255, 255, 0.48);

  font-size: 10px;
  font-weight: 700;

  letter-spacing: 0.12em;
}

.nav-item {
  position: relative;

  width: 100%;
  height: 42px;

  display: flex;
  align-items: center;

  gap: 12px;

  padding: 0 12px;

  margin-bottom: 3px;

  background: transparent;

  color: rgba(255, 255, 255, 0.78);

  border-radius: var(--radius);

  text-align: left;

  cursor: pointer;

  transition:
    background var(--transition),
    color var(--transition);
}

.nav-item[hidden] {
  display: none;
}

.nav-item svg {
  width: 18px;
  height: 18px;

  flex-shrink: 0;

  stroke-width: 1.8;
}

.nav-item span {
  overflow: hidden;

  white-space: nowrap;

  font-size: 13px;
}

.nav-item .nav-unread-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-width: 18px;
  height: 18px;
  margin-left: auto;
  padding: 0 5px;

  overflow: visible;

  background: var(--pbrg-gold);
  border-radius: 10px;
  color: var(--pbrg-navy);

  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
}

.nav-parent-item .nav-parent-chevron {
  width: 15px;
  height: 15px;
  margin-left: 4px;
  flex-shrink: 0;
  transition: transform var(--transition);
}

.nav-parent-item[aria-expanded="true"] .nav-parent-chevron {
  transform: rotate(180deg);
}

.nav-submenu {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: -1px 0 6px 30px;
}

.nav-submenu[hidden] {
  display: none;
}

.nav-subitem {
  min-height: 34px;
  padding: 0 12px;
  background: transparent;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  text-align: left;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.nav-subitem:hover,
.nav-subitem.active {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--pbrg-gold);
  color: #FFFFFF;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.08);

  color: #FFFFFF;
}

.nav-item.active {
  background: rgba(255, 255, 255, 0.12);

  color: #FFFFFF;

  font-weight: 600;
}

.nav-item.active::before {
  content: "";

  position: absolute;

  left: 0;
  top: 8px;
  bottom: 8px;

  width: 3px;

  background: var(--pbrg-gold);

  border-radius: 0 2px 2px 0;
}



/* =========================================================
   COLLAPSED SIDEBAR
========================================================= */

.sidebar.collapsed {
  width: var(--sidebar-collapsed-width);
}


/* Header */

.sidebar.collapsed .sidebar-header {
  padding: 0 10px;

  justify-content: center;
  
}

.sidebar.collapsed .brand-logo {
  display: none;
}

.sidebar.collapsed .brand-icon {
  display: block;
}

.sidebar.collapsed .brand-text {
  width: 0;

  margin-left: 0;

  opacity: 0;
}

.sidebar.collapsed .sidebar-toggle {
  position: absolute;

  top: 19px;
  right: -17px;

  width: 34px;
  height: 34px;

  background: var(--pbrg-navy);

  border: 1px solid rgba(255, 255, 255, 0.20);

  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.sidebar.collapsed .sidebar-toggle svg {
  transform: rotate(180deg);
}


/* Navigation */

.sidebar.collapsed .nav-section-label {
  display: none;
}

.sidebar.collapsed .sidebar-nav {
  padding-left: 10px;
  padding-right: 10px;
}

.sidebar.collapsed .nav-item {
  justify-content: center;

  gap: 0;

  padding: 0;

  margin-bottom: 5px;
}

.sidebar.collapsed .nav-item span {
  display: none;
}

.sidebar.collapsed .nav-item .nav-unread-badge {
  position: absolute;
  top: 5px;
  right: 5px;

  display: inline-flex;
}

.sidebar.collapsed .nav-submenu {
  display: none;
}

.sidebar.collapsed .nav-parent-chevron {
  display: none;
}


/* =========================================================
   COLLAPSED TOOLTIP
========================================================= */

.sidebar.collapsed .nav-item::after {
  content: attr(data-tooltip);

  position: absolute;

  left: calc(100% + 10px);
  top: 50%;

  transform: translateY(-50%);

  padding: 7px 10px;

  background: #172A40;
  color: #FFFFFF;

  border-radius: var(--radius);

  font-size: 12px;
  font-weight: 500;

  white-space: nowrap;

  opacity: 0;

  pointer-events: none;

  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.14);

  transition: opacity 120ms ease;

  z-index: 500;
}

.sidebar.collapsed .nav-item:hover::after {
  opacity: 1;
}


/* Footer */

.sidebar.collapsed .sidebar-footer {
  padding-left: 10px;
  padding-right: 10px;
}

.sidebar.collapsed .sidebar-footer-toggle {
  width: 40px;
}

.sidebar.collapsed .sidebar-footer-toggle svg {
  transform: rotate(180deg);
}


/* =========================================================
   MAIN AREA
========================================================= */

.main-area {
  min-width: 0;

  margin-left: var(--sidebar-width);

  transition: margin-left var(--transition);
}

.sidebar.collapsed ~ .main-area {
  margin-left: var(--sidebar-collapsed-width);
}


/* =========================================================
   TOP BAR
========================================================= */

.topbar {
  height: var(--topbar-height);

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 0 28px;

  background: var(--pbrg-navy);

  border-bottom: 1px solid rgba(255, 255, 255, 0.12);

  position: sticky;
  top: 0;

  z-index: 50;
}


/* =========================================================
   TOP BAR CONTEXT
========================================================= */

.topbar-context {
  display: flex;
  align-items: center;

  gap: 9px;

  font-size: 13px;
}

.topbar-brand {
  color: #FFFFFF;

  font-weight: 700;
}

.topbar-divider {
  color: rgba(255, 255, 255, 0.25);
}

#topbarModule {
  color: rgba(255, 255, 255, 0.65);
}


/* =========================================================
   TOP BAR ACTIONS
========================================================= */

.topbar-actions {
  position: relative;

  display: flex;
  align-items: center;

  gap: 5px;
}

.topbar-search {
  width: clamp(320px, 28vw, 360px);
  height: 40px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;

  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  color: rgba(255, 255, 255, 0.72);

  transition: background var(--transition), border-color var(--transition), width var(--transition);
}

.topbar-search:focus-within {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.38);
}

.topbar-search.is-disabled {
  opacity: 0.58;
}

.topbar-search > svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.topbar-search input {
  width: 100%;
  min-width: 0;
  padding: 0;

  background: transparent;
  border: 0;
  outline: 0;
  color: #FFFFFF;
  font-size: 12px;
}

.topbar-search input::placeholder {
  color: rgba(255, 255, 255, 0.62);
}

.topbar-icon-button {
  position: relative;

  width: 40px;
  height: 40px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: transparent;

  color: rgba(255, 255, 255, 0.82);

  border-radius: var(--radius);

  cursor: pointer;

  transition:
    background var(--transition),
    color var(--transition);
}

.topbar-icon-button:hover {
  background: rgba(255, 255, 255, 0.10);

  color: #FFFFFF;
}

.topbar-icon-button:disabled {
  opacity: 0.45;
  cursor: default;
}

.topbar-icon-button svg {
  width: 19px;
  height: 19px;
}

.notification-count {
  position: absolute;

  top: 3px;
  right: 2px;

  min-width: 17px;
  height: 17px;
  padding: 0 4px;

  background: var(--pbrg-gold);

  border: 2px solid var(--pbrg-navy);

  border-radius: 50%;

  color: var(--pbrg-navy);

  font-size: 9px;
  font-weight: 700;
  line-height: 13px;
  text-align: center;
}

.notification-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 48px;
  z-index: 100;

  width: min(340px, calc(100vw - 32px));

  overflow: hidden;

  background: #FFFFFF;
  border: 1px solid #DDE4EB;
  border-radius: var(--radius);
  box-shadow: 0 12px 28px rgba(0, 42, 84, 0.18);
  color: var(--text-primary);
}

.notification-dropdown[hidden] {
  display: none;
}

.notification-dropdown-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;

  padding: 14px 15px;
  border-bottom: 1px solid #E3E8EE;
}

.notification-dropdown-header strong {
  color: var(--pbrg-navy);
  font-size: 13px;
}

.notification-mark-all {
  padding: 0;
  background: transparent;
  color: var(--pbrg-navy);
  font-size: 11px;
  cursor: pointer;
}

.notification-mark-all:hover {
  color: #345B7F;
  text-decoration: underline;
}

.notification-list {
  max-height: 360px;
  overflow-y: auto;
}

.notification-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;

  width: 100%;
  padding: 13px 15px;

  background: #FFFFFF;
  border: 0;
  border-bottom: 1px solid #EEF1F4;
  color: var(--text-primary);
  text-align: left;
  cursor: pointer;
}

.notification-item:hover {
  background: #F8FAFC;
}

.notification-item.is-unread {
  background: #FFF9DD;
  border-left: 3px solid var(--pbrg-gold);
  padding-left: 12px;
}

.notification-item-title {
  color: var(--pbrg-navy);
  font-size: 12px;
  font-weight: 700;
}

.notification-item-description {
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.4;
}

.notification-item-time {
  color: var(--text-muted);
  font-size: 10px;
}

.notification-empty {
  padding: 24px 15px;
  color: var(--text-muted);
  font-size: 12px;
  text-align: center;
}

.account-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 100;

  width: 210px;
  max-width: calc(100vw - 32px);
  padding: 8px;

  background: #FFFFFF;
  border: 1px solid #DDE4EB;
  border-radius: var(--radius);
  box-shadow: 0 12px 28px rgba(0, 42, 84, 0.18);
  color: var(--text-primary);
}

.account-dropdown[hidden] {
  display: none;
}

.account-dropdown-profile {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 7px 8px 10px;
}

.account-dropdown-profile strong {
  color: var(--pbrg-navy);
  font-size: 12px;
}

.account-dropdown-profile span {
  color: var(--text-secondary);
  font-size: 11px;
}

.account-dropdown-divider {
  height: 1px;
  margin: 0 0 6px;
  background: #E3E8EE;
}

.account-sign-out {
  display: flex;
  align-items: center;
  gap: 8px;

  width: 100%;
  min-height: 34px;
  padding: 0 8px;

  background: transparent;
  border-radius: var(--radius);
  color: var(--pbrg-navy);
  font-size: 12px;
  text-align: left;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}

.account-sign-out svg {
  width: 15px;
  height: 15px;
}

.account-sign-out:hover {
  background: #F8FAFC;
  color: #345B7F;
}

.account-sign-out:disabled {
  opacity: 0.65;
  cursor: wait;
}


/* =========================================================
   USER MENU
========================================================= */

.user-menu {
  display: flex;
  align-items: center;

  gap: 9px;

  margin-left: 4px;

  padding: 4px 6px;

  background: transparent;

  color: #FFFFFF;

  border-radius: var(--radius);

  cursor: pointer;

  transition:
    background var(--transition);
}

.user-menu:hover {
  background: rgba(255, 255, 255, 0.10);
}

.user-avatar {
  width: 34px;
  height: 34px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: #FFFFFF;
  color: var(--pbrg-navy);

  border-radius: 50%;

  font-size: 11px;
  font-weight: 700;
}

.user-info {
  display: flex;
  flex-direction: column;

  align-items: flex-start;
}

.user-name {
  color: #FFFFFF;

  font-size: 12px;
  font-weight: 600;
}

.user-role {
  margin-top: 1px;

  color: rgba(255, 255, 255, 0.55);

  font-size: 10px;
}

.user-menu > svg {
  width: 15px;
  height: 15px;

  color: rgba(255, 255, 255, 0.65);
}


/* =========================================================
   PAGE CONTENT
========================================================= */

.page-content {
  width: 100%;
  max-width: 1600px;

  margin: 0 auto;

  padding: 32px;
}


/* =========================================================
   PAGE HEADER
========================================================= */

.page-header {
  margin-bottom: 30px;
}

.page-eyebrow {
  color: var(--pbrg-gold);

  font-size: 10px;
  font-weight: 700;

  letter-spacing: 0.14em;
}

.page-header h1 {
  margin: 5px 0 5px;

  color: var(--pbrg-navy);

  font-family:
    Georgia,
    "Times New Roman",
    serif;

  font-size: 34px;
  font-weight: 700;

  line-height: 1.1;
}

.page-header p {
  margin: 0;

  color: var(--text-secondary);

  font-size: 14px;
}


/* =========================================================
   DASHBOARD PLACEHOLDER
========================================================= */

.dashboard-placeholder {
  min-height: 300px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  padding: 40px;

  text-align: center;

  background: var(--surface);

  border: 1px solid var(--border);

  border-radius: var(--radius);
}

.placeholder-icon {
  width: 52px;
  height: 52px;

  display: flex;
  align-items: center;
  justify-content: center;

  margin-bottom: 16px;

  background: #EEF3F8;

  color: var(--pbrg-navy);

  border-radius: var(--radius);
}

.placeholder-icon svg {
  width: 25px;
  height: 25px;
}

.dashboard-placeholder h2 {
  margin: 0 0 6px;

  color: var(--text-primary);

  font-size: 17px;
}

.dashboard-placeholder p {
  margin: 0;

  color: var(--text-secondary);

  font-size: 13px;
}


/* =========================================================
   MOBILE MENU BUTTON
========================================================= */

.mobile-menu-button {
  display: none;

  width: 40px;
  height: 40px;

  align-items: center;
  justify-content: center;

  background: transparent;

  color: #FFFFFF;

  border-radius: var(--radius);

  cursor: pointer;
}

.mobile-menu-button:hover {
  background: rgba(255, 255, 255, 0.10);
}

.mobile-menu-button svg {
  width: 21px;
  height: 21px;
}


/* =========================================================
   MOBILE OVERLAY
========================================================= */

.mobile-overlay {
  display: none;

  position: fixed;

  inset: 0;

  background: rgba(10, 25, 42, 0.45);

  z-index: 90;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1100px) and (min-width: 768px) {

  /*
     Automatically use the collapsed navigation
     on smaller desktop/tablet screens.
  */

  .sidebar {
    width: var(--sidebar-collapsed-width);
  }

  .sidebar .sidebar-header {
    padding: 0 10px;

    justify-content: center;
  }

  .sidebar .brand-logo {
    display: none;
  }

  .sidebar .brand-icon {
    display: block;
  }

  .sidebar .brand-text {
    width: 0;

    margin-left: 0;

    opacity: 0;
  }

  .sidebar .sidebar-toggle {
    position: absolute;

    top: 19px;
    right: -17px;

    width: 34px;
    height: 34px;

    background: var(--pbrg-navy);

    border: 1px solid rgba(255, 255, 255, 0.20);
  }

  .sidebar .sidebar-toggle svg {
    transform: rotate(180deg);
  }

  .sidebar .nav-section-label {
    display: none;
  }

  .sidebar .nav-item {
    justify-content: center;

    padding: 0;
  }

  .sidebar .nav-item span {
    display: none;
  }

  .sidebar .nav-item::after {
    content: attr(data-tooltip);

    position: absolute;

    left: calc(100% + 10px);
    top: 50%;

    transform: translateY(-50%);

    padding: 7px 10px;

    background: #172A40;
    color: #FFFFFF;

    border-radius: var(--radius);

    font-size: 12px;

    white-space: nowrap;

    opacity: 0;

    pointer-events: none;

    z-index: 500;
  }

  .sidebar .nav-item:hover::after {
    opacity: 1;
  }

  .sidebar .sidebar-footer-toggle {
    width: 40px;
  }

  .sidebar .sidebar-footer-toggle span {
    display: none;
  }

  .sidebar .sidebar-footer-toggle svg {
    transform: rotate(180deg);
  }

  .main-area {
    margin-left: var(--sidebar-collapsed-width);
  }

  /*
     When user explicitly expands it,
     return to the full sidebar.
  */

  .sidebar.collapsed {
    width: var(--sidebar-width);
  }

  .sidebar.collapsed .sidebar-header {
    padding: 0 16px;

    justify-content: space-between;
  }

  .sidebar.collapsed .brand-logo {
  display: none;
  }

  .sidebar.collapsed .brand-icon {
  display: block;
  }

  .sidebar.collapsed .brand-text {
    width: auto;

    margin-left: 10px;

    opacity: 1;
  }

  .sidebar.collapsed .sidebar-toggle {
    position: static;

    width: 34px;
    height: 34px;

    background: transparent;

    border: 1px solid transparent;
  }

  .sidebar.collapsed .sidebar-toggle svg {
    transform: none;
  }

  .sidebar.collapsed .nav-section-label {
    display: block;
  }

  .sidebar.collapsed .nav-item {
    justify-content: flex-start;

    padding: 0 12px;
  }

  .sidebar.collapsed .nav-item span {
    display: block;
  }

  .sidebar.collapsed .nav-item::after {
    display: none;
  }

  .sidebar.collapsed .sidebar-footer-toggle {
    width: 40px;
  }

  .sidebar.collapsed .sidebar-footer-toggle svg {
    transform: none;
  }

  .sidebar.collapsed ~ .main-area {
    margin-left: var(--sidebar-width);
  }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {

  /*
     Mobile sidebar becomes a drawer.
  */

  .sidebar,
  .sidebar.collapsed {
    width: 280px;

    transform: translateX(-100%);

    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.16);
  }

  .sidebar.mobile-open {
    transform: translateX(0);
  }

  /*
     Restore normal expanded appearance
     when mobile drawer is open.
  */

  .sidebar.mobile-open .sidebar-header {
    padding: 0 16px;

    justify-content: space-between;
  }

  .sidebar.mobile-open .brand-text {
    width: auto;

    margin-left: 10px;

    opacity: 1;
  }

  .sidebar.mobile-open .sidebar-toggle {
    display: none;
  }

  .sidebar.mobile-open .nav-section-label {
    display: block;
  }

  .sidebar.mobile-open .nav-item {
    justify-content: flex-start;

    padding: 0 12px;
  }

  .sidebar.mobile-open .nav-item span:not(.nav-unread-badge) {
    display: block;
  }

  .sidebar.mobile-open .nav-submenu {
    display: flex;
    margin-left: 30px;
  }

  .sidebar.mobile-open .nav-submenu[hidden] {
    display: none;
  }

  .sidebar.mobile-open .nav-item::after {
    display: none;
  }

  .sidebar.mobile-open .sidebar-footer {
    display: none;
  }


  /* Main */

  .main-area,
  .sidebar.collapsed ~ .main-area {
    margin-left: 0;
  }


  /* Topbar */

  .topbar {
    height: 64px;

    padding: 0 16px;
  }

  .mobile-menu-button {
    display: flex;
  }

  .topbar-context {
    display: none;
  }

  .topbar-actions {
    margin-left: auto;
  }

  .topbar-search {
    width: clamp(120px, 45vw, 190px);
    height: 38px;
    flex-shrink: 1;
    padding: 0 9px;
  }

  .notification-dropdown {
    right: 0;
  }

  .user-info,
  .user-menu > svg {
    display: none;
  }

  .user-menu {
    padding: 0;

    margin-left: 0;
  }

  .topbar-icon-button {
    width: 38px;
    height: 38px;
  }


  /* Overlay */

  .mobile-overlay.active {
    display: block;
  }


  /* Content */

  .page-content {
    padding: 24px 16px;
  }

  .page-header {
    margin-bottom: 24px;
  }

  .page-header h1 {
    font-size: 30px;
  }

  .dashboard-placeholder {
    min-height: 260px;

    padding: 30px 20px;
  }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 380px) {

  .topbar {
    padding: 0 12px;
  }

  .page-content {
    padding: 20px 12px;
  }

  .page-header h1 {
    font-size: 27px;
  }

  .topbar-icon-button {
    width: 36px;
  }

}

/* ========================================
   OVERVIEW MODULE
======================================== */

.dashboard-section {
  margin-bottom: 28px;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.section-eyebrow {
  display: block;
  margin-bottom: 5px;
  color: #6B7C8F;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-heading h2,
.panel-header h2 {
  margin: 0;
  color: var(--pbrg-navy);
  font-size: 19px;
  font-weight: 700;
}

.panel-header h3 {
  margin: 0;
  color: var(--pbrg-navy);
  font-size: 16px;
  font-weight: 700;
}

.panel-subtitle {
  display: block;
  margin-top: 4px;
  color: #718096;
  font-size: 13px;
}


/* =========================================
   SNAPSHOT
========================================= */

.snapshot-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}


.metric-card {
  position: relative;

  display: flex;
  flex-direction: column;

  min-height: 148px;
  padding: 18px 20px;

  background: #FFFFFF;

  border: 1px solid #E4E9EF;
  border-radius: var(--radius);

  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}


.metric-card:hover {
  border-color: #D4DDE6;

  box-shadow:
    0 4px 14px rgba(0, 42, 84, 0.06);
}


/* ----------------------------------------
   CARD TOP
---------------------------------------- */

.metric-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;

  margin-bottom: 18px;
}


.metric-icon {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 38px;
  height: 38px;

  flex-shrink: 0;

  background: #F1F5F9;

  color: var(--pbrg-navy);

  border-radius: var(--radius);
}


.metric-icon svg {
  width: 18px;
  height: 18px;
}


.metric-status {
  color: #8A98A8;

  font-size: 10px;
  font-weight: 700;

  letter-spacing: 0.06em;
  text-transform: uppercase;
}


/* ----------------------------------------
   CARD CONTENT
---------------------------------------- */

.metric-content {
  min-width: 0;
}


.metric-label {
  display: block;

  color: #64748B;

  font-size: 13px;
  font-weight: 600;
}


.metric-value {
  display: block;

  margin-top: 4px;

  color: var(--pbrg-navy);

  font-size: 28px;
  line-height: 1.1;
  font-weight: 700;

  letter-spacing: -0.02em;
}


.metric-value-money {
  font-size: 24px;
}


.metric-meta {
  display: block;

  margin-top: 6px;

  color: #8A98A8;

  font-size: 12px;
}


/* ----------------------------------------
   RESPONSIVE SNAPSHOT
---------------------------------------- */

@media (max-width: 1100px) {

  .snapshot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

}


@media (max-width: 600px) {

  .snapshot-grid {
    grid-template-columns: 1fr;
  }


  .metric-card {
    min-height: 130px;
    padding: 16px;
  }


  .metric-card-top {
    margin-bottom: 14px;
  }


  .metric-value {
    font-size: 24px;
  }


  .metric-value-money {
    font-size: 22px;
  }

}


/* ========================================
   TWO COLUMN AREA
======================================== */

.overview-two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr);
  gap: 14px;
}

.dashboard-panel {
  background: #FFFFFF;
  border: 1px solid #E4E9EF;
  border-radius: var(--radius);
}

.panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;

  padding: 18px 20px;

  border-bottom: 1px solid #E8EDF2;
}

.panel-header > svg {
  width: 18px;
  height: 18px;
  color: #8A98A8;
}


/* =========================================

   NEEDS ATTENTION

========================================= */

.attention-list {
  display: flex;
  flex-direction: column;
}


.attention-item {
  display: flex;
  align-items: center;
  gap: 13px;

  width: 100%;
  min-height: 62px;

  padding: 12px 20px;

  background: transparent;

  border: 0;
  border-bottom: 1px solid #EEF1F4;

  color: inherit;

  text-align: left;

  cursor: pointer;

  transition:
    background 0.2s ease;
}


.attention-item:last-child {
  border-bottom: 0;
}


.attention-item:hover {
  background: #F8FAFC;
}


/* ----------------------------------------
   COUNT
---------------------------------------- */

.attention-number {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 34px;
  height: 34px;

  flex-shrink: 0;

  background: #FFF7D6;

  color: #8A6900;

  border-radius: var(--radius);

  font-size: 13px;
  font-weight: 700;
}


/* ----------------------------------------
   CONTENT
---------------------------------------- */

.attention-content {
  display: flex;
  flex-direction: column;

  flex: 1;
  min-width: 0;
}


.attention-content strong {
  color: #25364A;

  font-size: 13px;
  font-weight: 600;
}


.attention-content small {
  margin-top: 3px;

  color: #8A98A8;

  font-size: 12px;
}


/* ----------------------------------------
   ARROW
---------------------------------------- */

.attention-item > svg {
  width: 16px;
  height: 16px;

  flex-shrink: 0;

  color: #A0ACB8;

  transition:
    transform 0.2s ease,
    color 0.2s ease;
}


.attention-item:hover > svg {
  color: var(--pbrg-navy);

  transform: translateX(3px);
}


/* ----------------------------------------
   MOBILE
---------------------------------------- */

@media (max-width: 600px) {

  .attention-item {
    min-height: 58px;

    padding: 11px 16px;
  }


  .attention-number {
    width: 32px;
    height: 32px;
  }

}

/* ========================================
   QUICK ACTIONS
======================================== */

.quick-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding: 18px;
}

.quick-action {
  display: flex;
  align-items: center;
  gap: 9px;

  min-height: 48px;
  padding: 12px;

  background: #F8FAFC;
  border: 1px solid #E4E9EF;
  border-radius: var(--radius);

  color: var(--pbrg-navy);
  font-size: 13px;
  font-weight: 600;

  cursor: pointer;
}

.quick-action:hover {
  background: #EEF3F8;
  border-color: #CBD6E2;
}

.quick-action svg {
  width: 16px;
  height: 16px;
}


/* ========================================
   BUSINESS ACTIVITY
======================================== */

.activity-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.activity-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 20px;
}

.activity-stat {
  padding: 0 18px;
  border-right: 1px solid #E8EDF2;
}

.activity-stat:first-child {
  padding-left: 0;
}

.activity-stat:last-child {
  padding-right: 0;
  border-right: 0;
}

.activity-stat span {
  display: block;
  color: #7A8999;
  font-size: 12px;
}

.activity-stat strong {
  display: block;
  margin-top: 7px;
  color: var(--pbrg-navy);
  font-size: 23px;
  font-weight: 700;
}


/* ========================================
   RECENT ACTIVITY
======================================== */

.activity-feed {
  overflow: hidden;
}

.activity-item {
  display: flex;
  align-items: center;
  gap: 13px;

  padding: 15px 20px;

  border-bottom: 1px solid #EEF1F4;
}

.activity-item:last-child {
  border-bottom: 0;
}

.activity-icon {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 34px;
  height: 34px;

  flex-shrink: 0;

  background: #F1F5F9;
  color: var(--pbrg-navy);

  border-radius: var(--radius);
}

.activity-icon svg {
  width: 16px;
  height: 16px;
}

.activity-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.activity-info strong {
  color: #25364A;
  font-size: 13px;
  font-weight: 600;
}

.activity-info span {
  margin-top: 2px;
  color: #7A8999;
  font-size: 12px;
}

.activity-item time {
  flex-shrink: 0;
  color: #9AA6B2;
  font-size: 11px;
}


/* ========================================
   RESPONSIVE OVERVIEW
======================================== */

@media (max-width: 1100px) {

  .snapshot-grid {
    grid-template-columns: repeat(2, 1fr);
  }

}


@media (max-width: 850px) {

  .overview-two-column,
  .activity-grid {
    grid-template-columns: 1fr;
  }

}


@media (max-width: 600px) {

  .snapshot-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-section {
    margin-bottom: 22px;
  }

  .metric-card {
    min-height: 110px;
    padding: 16px;
  }

  .metric-value {
    font-size: 23px;
  }

  .activity-stats {
    padding: 16px;
  }

  .activity-stat {
    padding: 0 10px;
  }

  .activity-stat strong {
    font-size: 20px;
  }

  .activity-item {
    align-items: flex-start;
  }

  .activity-item time {
    display: none;
  }

}

/* =========================================
   PROPERTIES MODULE
========================================= */


/* =========================================
   MODULE TOOLBAR
========================================= */

.module-section {
  width: 100%;
}


.module-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 16px;

  margin-bottom: 16px;
}


.module-search {
  position: relative;

  flex: 1;
  max-width: 420px;
}


.module-search svg {
  position: absolute;

  left: 13px;
  top: 50%;

  width: 17px;
  height: 17px;

  color: #8A98A8;

  transform: translateY(-50%);
}


.module-search input {
  width: 100%;
  height: 42px;

  padding: 0 14px 0 40px;

  background: #FFFFFF;

  border: 1px solid #DDE4EB;
  border-radius: var(--radius);

  color: #25364A;

  font-family: inherit;
  font-size: 13px;

  outline: none;

  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}


.module-search input::placeholder {
  color: #9AA6B2;
}


.module-search input:focus {
  border-color: var(--pbrg-navy);

  box-shadow:
    0 0 0 2px rgba(0, 42, 84, 0.08);
}


.module-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}


/* =========================================
   BUTTONS
========================================= */

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  gap: 8px;

  min-height: 42px;

  padding: 0 15px;

  border-radius: var(--radius);

  font-family: inherit;
  font-size: 13px;
  font-weight: 600;

  cursor: pointer;

  transition:
    background 0.2s ease,
    border-color 0.2s ease;
}


.primary-button {
  background: var(--pbrg-navy);

  border: 1px solid var(--pbrg-navy);

  color: #FFFFFF;
}


.primary-button:hover {
  background: #003866;

  border-color: #003866;
}


.secondary-button {
  background: #FFFFFF;

  border: 1px solid #DDE4EB;

  color: var(--pbrg-navy);
}


.secondary-button:hover {
  background: #F8FAFC;

  border-color: #CBD6E2;
}


.primary-button svg,
.secondary-button svg {
  width: 16px;
  height: 16px;
}


/* =========================================
   MODULE TABS
========================================= */

.module-tabs {
  display: flex;
  align-items: center;

  gap: 24px;

  margin-bottom: 12px;

  border-bottom: 1px solid #DDE4EB;
}


.module-tab {
  position: relative;

  padding: 10px 0;

  background: transparent;

  border: 0;

  color: #718096;

  font-family: inherit;
  font-size: 13px;
  font-weight: 600;

  cursor: pointer;
}


.module-tab:hover {
  color: var(--pbrg-navy);
}


.module-tab.active {
  color: var(--pbrg-navy);
}


.module-tab.active::after {
  content: "";

  position: absolute;

  left: 0;
  right: 0;
  bottom: -1px;

  height: 2px;

  background: var(--pbrg-gold);
}


/* =========================================
   DATA TABLE
========================================= */

.data-table-container {
  width: 100%;

  overflow-x: auto;

  background: #FFFFFF;

  border: 1px solid #E4E9EF;
  border-radius: var(--radius);
}


.data-table {
  width: 100%;

  border-collapse: collapse;

  min-width: 900px;
}


.data-table th {
  padding: 13px 16px;

  background: #F8FAFC;

  border-bottom: 1px solid #E4E9EF;

  color: #718096;

  font-size: 11px;
  font-weight: 700;

  letter-spacing: 0.05em;
  text-align: left;
  text-transform: uppercase;
}


.data-table td {
  padding: 15px 16px;

  border-bottom: 1px solid #EEF1F4;

  color: #536579;

  font-size: 13px;

  vertical-align: middle;
}


.data-table tbody tr:last-child td {
  border-bottom: 0;
}


.data-table tbody tr:hover {
  background: #FAFBFC;
}


/* =========================================
   PROPERTY NAME
========================================= */

.property-table-name {
  display: flex;
  flex-direction: column;

  gap: 3px;
}


.property-table-name strong {
  color: var(--pbrg-navy);

  font-size: 13px;
  font-weight: 600;
}


.property-table-name span {
  color: #8A98A8;

  font-size: 11px;
}


/* =========================================
   STATUS
========================================= */

.status-badge {
  display: inline-flex;
  align-items: center;

  min-height: 24px;

  padding: 0 8px;

  border-radius: var(--radius);

  font-size: 11px;
  font-weight: 700;
}


.status-active,
.status-available {
  background: #EAF6EF;

  color: #287A4A;
}


.status-sold {
  background: #EEF1F4;

  color: #687789;
}

.status-unlisted {
  background: #FFF7D6;
  color: #8A6900;
}

.status-published {
  background: #EAF6EF;
  color: #287A4A;
}

.status-unpublished {
  background: #EEF1F4;
  color: #687789;
}

.status-unlisted-help {
  color: #8A6900 !important;
}


.table-muted {
  color: #A0ACB8;
}


/* =========================================  
   FEATURED
========================================= */

.featured-badge {
  display: inline-flex;
  align-items: center;

  gap: 5px;

  color: #8A6900;

  font-size: 11px;
  font-weight: 600;
}


.featured-badge svg {
  width: 13px;
  height: 13px;
}


/* =========================================
   TABLE ACTION
========================================= */

.table-action-column {
  width: 48px;

  text-align: right !important;
}


.table-action-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 30px;
  height: 30px;

  background: transparent;

  border: 0;
  border-radius: var(--radius);

  color: #8A98A8;

  cursor: pointer;
}


.table-action-button:hover {
  background: #F1F5F9;

  color: var(--pbrg-navy);
}


.table-action-button svg {
  width: 16px;
  height: 16px;
}


/* ========================================= 
   ACCESSIBILITY
========================================= */

.sr-only {
  position: absolute;

  width: 1px;
  height: 1px;

  padding: 0;
  margin: -1px;

  overflow: hidden;

  clip: rect(0, 0, 0, 0);

  white-space: nowrap;

  border: 0;
}


/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 700px) {

  .module-toolbar {
    align-items: stretch;

    flex-direction: column;
  }


  .module-search {
    max-width: none;
  }


  .module-actions {
    width: 100%;
  }


  .module-actions button {
    flex: 1;
  }


  .module-tabs {
    gap: 18px;

    overflow-x: auto;

    white-space: nowrap;
  }

}

/* =========================================
   MODULE STATES
========================================= */

.module-loading,
.module-error,
.module-success {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;

  gap: 8px;

  min-height: 220px;

  padding: 30px;

  background: #FFFFFF;

  border: 1px solid #E4E9EF;
  border-radius: var(--radius);

  color: #718096;

  text-align: center;
}

.module-error[hidden],
.module-success[hidden],
.property-media-status[hidden] {
  display: none;
}


.module-loading svg {
  width: 22px;
  height: 22px;

  color: var(--pbrg-navy);

  animation: dashboard-spin 1s linear infinite;
}


.module-error {
  color: #7A3B3B;
}


.module-success {
  flex-direction: row;
  justify-content: flex-start;
  min-height: 0;
  margin-bottom: 12px;
  padding: 12px 16px;
  color: #287A4A;
  background: #EAF6EF;
  border-color: #BFDCC9;
  text-align: left;
}


.module-success svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}


.module-error svg {
  width: 24px;
  height: 24px;
}


.module-error strong {
  color: #7A3B3B;

  font-size: 13px;
}


.module-error span {
  max-width: 500px;

  font-size: 12px;
}


.table-empty {
  padding: 40px 20px !important;

  color: #8A98A8 !important;

  text-align: center !important;
}


@keyframes dashboard-spin {

  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }

}

/* =========================================
   CLICKABLE PROPERTY ROW
========================================= */

.property-table-row {
  cursor: pointer;
}


.property-table-row:hover {
  background: #F8FAFC;
}



/* =========================================
   PROPERTY DETAIL HERO
========================================= */

.property-detail-hero {
  display: grid;

  grid-template-columns:
    minmax(0, 1.55fr)
    minmax(280px, 0.85fr);

  gap: 14px;

  margin-bottom: 14px;
}


/* =========================================
   PROPERTY GALLERY
========================================= */

.property-detail-gallery {
  min-width: 0;
}


.property-detail-main-image {
  width: 100%;
  height: 360px;

  background: #E9EEF3;

  border: 1px solid #E4E9EF;
  border-radius: var(--radius);

  overflow: hidden;
}


.property-detail-main-image img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;
}


/* =========================================
   PROPERTY THUMBNAILS
========================================= */

.property-thumbnail-strip {
  display: flex;

  gap: 8px;

  margin-top: 8px;

  overflow-x: auto;

  padding-bottom: 2px;
}


.property-thumbnail {
  flex: 0 0 72px;

  width: 72px;
  height: 56px;

  padding: 0;

  background: #E9EEF3;

  border: 2px solid transparent;
  border-radius: var(--radius);

  overflow: hidden;

  cursor: pointer;
}


.property-thumbnail img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;
}


.property-thumbnail:hover {
  border-color: #C7D1DB;
}


.property-thumbnail.active {
  border-color: var(--pbrg-gold);
}


/* =========================================
   PROPERTY SUMMARY
========================================= */

.property-detail-summary {
  display: flex;
  flex-direction: column;

  min-height: 360px;

  padding: 22px;

  background: #FFFFFF;

  border: 1px solid #E4E9EF;
  border-radius: var(--radius);
}


.property-summary-status {
  display: flex;
  align-items: center;

  flex-wrap: wrap;

  gap: 8px;

  margin-bottom: 28px;
}


.property-summary-main {
  margin-bottom: auto;
}


.property-summary-main h3 {
  margin: 6px 0 8px;

  color: var(--pbrg-navy);

  font-size: 23px;
  line-height: 1.25;
  font-weight: 700;
}


.property-summary-main p {
  margin: 0;

  color: #718096;

  font-size: 13px;
  line-height: 1.5;
}


.property-summary-metric {
  display: flex;
  flex-direction: column;

  gap: 3px;

  margin-top: 24px;
  padding-top: 18px;

  border-top: 1px solid #E8EDF2;
}


.property-summary-metric strong {
  color: var(--pbrg-navy);

  font-size: 24px;
  line-height: 1.2;
}


.property-summary-metric span,
.property-summary-type span {
  color: #8A98A8;

  font-size: 11px;
}


.property-summary-type {
  display: flex;
  flex-direction: column;

  gap: 4px;

  margin-top: 18px;
}


.property-summary-type strong {
  color: #25364A;

  font-size: 13px;
  font-weight: 600;
}


/* =========================================
   FULL WIDTH DETAIL ITEM
========================================= */

.detail-information-full {
  grid-column: 1 / -1;
}


.detail-information-full:nth-child(odd) {
  border-right: 0;
}


/* =========================================
   PROPERTY DETAIL RESPONSIVE
========================================= */

@media (max-width: 900px) {

  .property-detail-hero {
    grid-template-columns: 1fr;
  }


  .property-detail-main-image {
    height: 320px;
  }


  .property-detail-summary {
    min-height: auto;
  }

}


@media (max-width: 600px) {

  .property-detail-main-image {
    height: 240px;
  }


  .property-detail-summary {
    padding: 18px;
  }


  .property-summary-main h3 {
    font-size: 20px;
  }


  .property-thumbnail {
    flex-basis: 64px;

    width: 64px;
    height: 50px;
  }


  .detail-information-full {
    grid-column: auto;
  }

}

/* =========================================
   PROPERTY WORKSPACE
========================================= */


/* =========================================
   WORKSPACE HEADER
========================================= */

.property-workspace-header {
  margin-bottom: 34px;
}


.pbrg-back-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;

  min-height: 40px;
  margin-bottom: 18px;
  padding: 0 13px;

  border: 1px solid #DDE4EB;
  border-radius: var(--radius);
  background: #FFFFFF;
  color: var(--pbrg-navy);

  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.pbrg-back-button svg {
  width: 17px;
  height: 17px;
}

.pbrg-back-button:hover {
  background: #F8FAFC;
  border-color: #CBD6E2;
  color: #345B7F;
}

.property-header-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;

  gap: 24px;
}


.property-detail-eyebrow {
  display: block;

  margin-bottom: 6px;

  color: #8A98A8;

  font-size: 11px;
  font-weight: 700;

  letter-spacing: 0.08em;
}


.property-header-main h2 {
  margin: 0;

  color: var(--pbrg-navy);

  font-family: "Playfair Display", Georgia, serif;

  font-size: 34px;
  line-height: 1.15;
  font-weight: 700;
}


.property-header-main p {
  margin: 8px 0 0;

  color: #718096;

  font-size: 14px;
  line-height: 1.5;
}


.property-header-actions {
  display: flex;
  align-items: center;

  gap: 8px;
}


.property-more-button {
  width: 42px;

  padding-left: 0;
  padding-right: 0;
}


.property-header-status {
  display: flex;
  align-items: center;

  gap: 8px;

  margin-top: 14px;
}


/* =========================================
   WORKSPACE SECTIONS
========================================= */

.property-workspace-section {
  margin-bottom: 28px;
}


.workspace-section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;

  margin-bottom: 12px;
}


.workspace-section-heading h3 {
  margin: 4px 0 0;

  color: var(--pbrg-navy);

  font-size: 18px;
  line-height: 1.3;
  font-weight: 700;
}


/* =========================================
   PROPERTY OVERVIEW CARD
========================================= */

.property-overview-card {
  display: grid;

  grid-template-columns:
    minmax(0, 1.65fr)
    minmax(260px, 0.85fr);

  gap: 0;

  background: #FFFFFF;

  border: 1px solid #E4E9EF;
  border-radius: var(--radius);

  overflow: hidden;
}


/* =========================================
   GALLERY
========================================= */

.property-workspace-gallery {
  min-width: 0;

  padding: 14px;

  border-right: 1px solid #E8EDF2;
}


.property-main-image {
  position: relative;

  width: 100%;
  height: 350px;

  background: #E9EEF3;

  border-radius: var(--radius);

  overflow: hidden;
}


.property-main-image img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;
}


.property-image-counter {
  position: absolute;

  right: 12px;
  bottom: 12px;

  padding: 5px 9px;

  background: rgba(0, 42, 84, 0.90);

  border-radius: var(--radius);

  color: #FFFFFF;

  font-size: 11px;
  font-weight: 600;
}


/* =========================================
   THUMBNAILS
========================================= */

.property-thumbnail-strip {
  display: flex;

  gap: 7px;

  margin-top: 8px;

  overflow-x: auto;
}


.property-thumbnail {
  flex: 0 0 62px;

  width: 62px;
  height: 48px;

  padding: 0;

  background: #E9EEF3;

  border: 2px solid transparent;
  border-radius: var(--radius);

  overflow: hidden;

  cursor: pointer;
}


.property-thumbnail img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;
}


.property-thumbnail:hover {
  border-color: #BFCBD7;
}


.property-thumbnail.active {
  border-color: var(--pbrg-gold);
}


/* =========================================
   PROPERTY SNAPSHOT
========================================= */

.property-workspace-snapshot {
  display: flex;
  flex-direction: column;

  padding: 22px;
}


.snapshot-header {
  display: flex;
  align-items: center;
  justify-content: space-between;

  padding-bottom: 16px;

  border-bottom: 1px solid #E8EDF2;
}


.snapshot-header svg {
  width: 19px;
  height: 19px;

  color: var(--pbrg-navy);
}


.snapshot-content {
  display: flex;
  flex-direction: column;

  height: 100%;
}


.snapshot-item {
  display: flex;
  flex-direction: column;

  gap: 5px;

  padding: 17px 0;

  border-bottom: 1px solid #EEF1F4;
}


.snapshot-item:last-child {
  border-bottom: 0;
}


.snapshot-item span {
  color: #8A98A8;

  font-size: 11px;
}


.snapshot-item strong {
  color: #25364A;

  font-size: 13px;
  line-height: 1.45;
  font-weight: 600;
}


.snapshot-item .snapshot-highlight {
  color: var(--pbrg-navy);

  font-size: 21px;
  line-height: 1.2;
}


/* =========================================
   IMAGE PLACEHOLDER
========================================= */

.property-image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;

  gap: 8px;

  width: 100%;
  height: 100%;

  color: #8A98A8;
}


.property-image-placeholder svg {
  width: 28px;
  height: 28px;
}


.property-image-placeholder span {
  font-size: 12px;
}


/* =========================================
   PROPERTY INFORMATION
========================================= */

.property-information-card {
  display: grid;

  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  background: #FFFFFF;

  border: 1px solid #E4E9EF;
  border-radius: var(--radius);

  overflow: hidden;
}


.property-information-item {
  display: flex;
  flex-direction: column;

  gap: 5px;

  min-height: 78px;

  padding: 17px 20px;

  border-bottom: 1px solid #EEF1F4;
}


.property-information-item:nth-child(odd) {
  border-right: 1px solid #EEF1F4;
}


.property-information-item span {
  color: #8A98A8;

  font-size: 11px;
}


.property-information-item strong {
  color: #25364A;

  font-size: 13px;
  line-height: 1.45;
  font-weight: 600;
}


.property-information-location {
  grid-column: 1 / -1;

  border-right: 0 !important;
}


/* =========================================
   LISTING MANAGEMENT
========================================= */

.listing-management-grid {
  display: grid;

  grid-template-columns:
    repeat(3, minmax(0, 1fr));

  gap: 12px;
}


.management-card {
  display: flex;
  align-items: flex-start;

  gap: 13px;

  min-height: 100px;

  padding: 18px;

  background: #FFFFFF;

  border: 1px solid #E4E9EF;
  border-radius: var(--radius);
}


.management-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;

  flex: 0 0 34px;

  width: 34px;
  height: 34px;

  background: #F1F5F9;

  border-radius: var(--radius);
}


.management-card-icon svg {
  width: 17px;
  height: 17px;

  color: var(--pbrg-navy);
}


.management-card > div:last-child {
  display: flex;
  flex-direction: column;

  gap: 5px;
}


.management-card span {
  color: #8A98A8;

  font-size: 10px;
  font-weight: 700;

  letter-spacing: 0.06em;
}


.management-card strong {
  color: #25364A;

  font-size: 14px;
  font-weight: 600;
}


/* =========================================
   PROPERTY WORKSPACE RESPONSIVE
========================================= */

@media (max-width: 900px) {

  .property-overview-card {
    grid-template-columns: 1fr;
  }


  .property-workspace-gallery {
    border-right: 0;

    border-bottom: 1px solid #E8EDF2;
  }


  .listing-management-grid {
    grid-template-columns: 1fr;
  }

}


@media (max-width: 700px) {

  .property-header-main {
    flex-direction: column;
  }


  .property-header-actions {
    width: 100%;
  }


  .property-header-actions .secondary-button {
    flex: 1;
  }


  .property-main-image {
    height: 260px;
  }


  .property-information-card {
    grid-template-columns: 1fr;
  }


  .property-information-item:nth-child(odd) {
    border-right: 0;
  }


  .property-information-location {
    grid-column: auto;
  }

}


@media (max-width: 480px) {

  .property-header-main h2 {
    font-size: 27px;
  }


  .property-header-actions {
    flex-direction: column;
  }


  .property-header-actions button {
    width: 100%;
  }


  .property-workspace-gallery {
    padding: 10px;
  }


  .property-main-image {
    height: 220px;
  }


  .property-workspace-snapshot {
    padding: 18px;
  }

}

/* =========================================
   PROPERTY EDIT WORKSPACE
========================================= */


/* =========================================
   EDIT HEADER
========================================= */

.property-edit-header {
  margin-bottom: 30px;
}

.property-edit-header h2 {
  margin: 5px 0 6px;

  color: var(--pbrg-navy);

  font-family:
    Georgia,
    "Times New Roman",
    serif;

  font-size: 34px;
  line-height: 1.15;
}

.property-edit-header p {
  margin: 0;

  color: #718096;

  font-size: 14px;
  line-height: 1.5;
}


/* =========================================
   EDIT SECTIONS
========================================= */

.property-edit-section {
  margin-bottom: 28px;
}

.workspace-section-description {
  margin: 5px 0 0;

  color: #7A8999;

  font-size: 12px;
  line-height: 1.5;
}


/* =========================================
   EDIT CARD
========================================= */

.property-edit-card {
  display: grid;

  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  gap: 20px;

  padding: 22px;

  background: #FFFFFF;

  border: 1px solid #E4E9EF;

  border-radius: var(--radius);
}


/* =========================================
   FORM FIELD
========================================= */

.property-form-field {
  display: flex;
  flex-direction: column;

  gap: 7px;

  min-width: 0;
}

.property-form-field-full {
  grid-column: 1 / -1;
}

.property-form-field label {
  color: #536579;

  font-size: 11px;
  font-weight: 700;

  letter-spacing: 0.02em;
}

.property-form-field input,
.property-form-field select,
.property-form-field textarea {
  width: 100%;

  min-height: 42px;

  padding: 9px 12px;

  background: #FFFFFF;

  border: 1px solid #DDE4EB;

  border-radius: var(--radius);

  color: #25364A;

  font-size: 13px;

  outline: none;

  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.property-form-field input:focus,
.property-form-field select:focus,
.property-form-field textarea:focus {
  border-color: var(--pbrg-navy);

  box-shadow:
    0 0 0 2px
    rgba(0, 42, 84, 0.08);
}

.property-form-field input:disabled {
  background: #F5F7FA;

  color: #718096;

  cursor: not-allowed;
}

.system-generated-section .property-edit-card {
  background: #F8FAFC;
  border-color: #CBD6E2;
}

.system-generated-section .property-form-field input[readonly] {
  background: #EEF3F8;
  border-color: #CBD6E2;
  color: var(--pbrg-navy);
  font-weight: 600;
  cursor: default;
}

.property-form-field small {
  color: #9AA6B2;

  font-size: 11px;
  line-height: 1.4;
}


/* =========================================
   REPEATABLE LIST
========================================= */

.repeatable-list {
  display: flex;
  flex-direction: column;

  gap: 8px;

  grid-column: 1 / -1;
}

.repeatable-field {
  display: flex;
  align-items: center;

  gap: 8px;
}

.repeatable-field input {
  flex: 1;

  min-width: 0;

  height: 42px;

  padding: 0 12px;

  background: #FFFFFF;

  border: 1px solid #DDE4EB;

  border-radius: var(--radius);

  color: #25364A;

  font-size: 13px;

  outline: none;

  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.repeatable-field input:focus {
  border-color: var(--pbrg-navy);

  box-shadow:
    0 0 0 2px
    rgba(0, 42, 84, 0.08);
}


/* =========================================
   REMOVE BUTTON
========================================= */

.repeatable-remove {
  flex: 0 0 34px;

  width: 34px;
  height: 34px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: #F5F7FA;

  color: #7A8999;

  border: 1px solid #E0E6EC;

  border-radius: var(--radius);

  cursor: pointer;
}

.repeatable-remove:hover {
  background: #EEF2F6;

  color: #536579;
}

.repeatable-remove svg {
  width: 15px;
  height: 15px;
}


/* =========================================
   ADD BUTTON
========================================= */

.add-repeatable-button {
  display: inline-flex;
  align-items: center;

  gap: 7px;

  margin-top: 12px;
  padding: 0;

  background: transparent;

  color: var(--pbrg-navy);

  font-size: 12px;
  font-weight: 700;

  cursor: pointer;
}

.add-repeatable-button:hover {
  color: #345B7F;
}

.add-repeatable-button svg {
  width: 15px;
  height: 15px;
}


/* =========================================
   TOGGLE FIELD
========================================= */

.property-toggle-field {
  grid-column: 1 / -1;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 20px;

  padding: 16px 0;

  border-bottom: 1px solid #EEF1F4;

  cursor: pointer;
}

.property-toggle-field:first-child {
  padding-top: 0;
}

.property-toggle-field:last-child {
  padding-bottom: 0;

  border-bottom: 0;
}

.property-toggle-field > div {
  display: flex;
  flex-direction: column;

  gap: 4px;
}

.property-toggle-field strong {
  color: #25364A;

  font-size: 13px;
  font-weight: 600;
}

.property-toggle-field span {
  color: #8A98A8;

  font-size: 11px;
  line-height: 1.4;
}


/* =========================================
   CHECKBOX
========================================= */

.property-toggle-field input {
  flex: 0 0 auto;

  width: 18px;
  height: 18px;

  accent-color: var(--pbrg-navy);

  cursor: pointer;
}


/* =========================================
   EDIT ACTIONS
========================================= */

.property-edit-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;

  gap: 8px;

  margin-top: 4px;
  padding-top: 20px;

  border-top: 1px solid #E4E9EF;
}


/* =========================================
   PROPERTY MEDIA
========================================= */

.property-media-workspace .property-edit-header p strong {
  color: var(--pbrg-navy);
}

.property-media-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.property-media-toolbar h3 {
  margin: 0;
  color: var(--pbrg-navy);
  font-size: 19px;
}

.property-media-property-id {
  display: block;
  margin-top: 4px;
  color: #718096;
  font-size: 12px;
  font-weight: 700;
}

.property-media-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.property-media-select-button {
  cursor: pointer;
}

.property-media-upload-button {
  cursor: pointer;
}

.property-media-message {
  min-height: 0;
  margin-bottom: 12px;
  padding: 12px 16px;
}

.property-media-status {
  margin-bottom: 12px;
  padding: 11px 14px;
  color: #536579;
  background: #F8FAFC;
  border: 1px solid #DDE4EB;
  border-radius: var(--radius);
  font-size: 12px;
}

.property-media-status.is-success {
  color: #287A4A;
  background: #EAF6EF;
  border-color: #BFDCC9;
}

.property-media-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.property-media-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  min-height: 180px;
  padding: 30px;
  background: #FFFFFF;
  border: 1px dashed #CBD6E2;
  border-radius: var(--radius);
  color: #8A98A8;
  font-size: 13px;
}

/* =========================================
   LEADS & INQUIRIES MODULE
========================================= */

.leads-heading-row,
.pipeline-heading,
.lead-drawer-header,
.lead-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.page-content:has(.leads-module, .website-inquiries-module) .page-header {
  margin-bottom: 18px;
}

.lead-view-tabs-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.lead-view-tabs {
  flex: 1;
  display: flex;
  gap: 4px;
  min-width: 0;
  margin-bottom: 0;
  padding: 4px;
  background: #F1F5F9;
  border: 1px solid #E4E9EF;
  border-radius: var(--radius);
}

.lead-view-tab {
  min-height: 36px;
  padding: 0 14px;
  background: transparent;
  border: 0;
  border-radius: var(--radius);
  color: #718096;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.lead-view-tab.active,
.lead-view-tab:hover {
  background: #FFFFFF;
  color: var(--pbrg-navy);
  box-shadow: 0 1px 2px rgba(21, 39, 56, 0.08);
}

.website-inquiry-kpis .lead-kpi {
  min-height: 82px;
}

.property-summary-kpis .lead-kpi {
  min-height: 82px;
}

.lead-kpis.property-summary-kpis {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.property-summary-kpis .lead-kpi strong small {
  color: #718096;
  font-size: 13px;
  font-weight: 600;
}

.property-summary-kpis .lead-kpi strong span {
  color: var(--pbrg-navy);
  font-size: 25px;
  font-weight: 700;
}

.property-tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  margin-left: 4px;
  padding: 0 5px;
  background: #E8EDF2;
  border-radius: 9px;
  color: #536579;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  vertical-align: middle;
}

.module-tab.active .property-tab-count {
  background: var(--pbrg-navy);
  color: #FFFFFF;
}

.property-tabs-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.property-tabs-row > .module-tabs {
  flex: 1 1 auto;
  min-width: 0;
  margin-bottom: 0;
}

.property-summary-panel[hidden] {
  display: none;
}

.property-actions-menu-wrap {
  position: relative;
  flex: 0 0 auto;
}

.property-actions-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  background: #FFFFFF;
  border: 1px solid #DDE4EB;
  border-radius: var(--radius);
  color: var(--pbrg-navy);
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}

.property-actions-button:hover {
  background: #F8FAFC;
  border-color: #CBD6E2;
  color: #345B7F;
}

.property-actions-button svg {
  width: 17px;
  height: 17px;
}

.property-actions-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  width: 170px;
  padding: 6px;
  background: #FFFFFF;
  border: 1px solid #DDE4EB;
  border-radius: var(--radius);
  box-shadow: 0 12px 28px rgba(0, 42, 84, 0.18);
}

.property-actions-menu[hidden] {
  display: none;
}

.property-actions-menu-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 34px;
  padding: 0 8px;
  background: transparent;
  border-radius: var(--radius);
  color: var(--pbrg-navy);
  font-size: 12px;
  text-align: left;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}

.property-actions-menu-item:hover {
  background: #F8FAFC;
  color: #345B7F;
}

.property-actions-menu-item svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.lead-search-clear {
  position: absolute;
  top: 50%;
  right: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: var(--radius);
  color: #8A98A8;
  cursor: pointer;
  transform: translateY(-50%);
}

.lead-search-clear:hover {
  background: #F1F5F9;
  color: var(--pbrg-navy);
}

.lead-search-clear svg {
  width: 14px;
  height: 14px;
}

.module-search input[type="search"] {
  padding-right: 40px;
}

.website-submissions-panel[hidden] {
  display: none;
}

.website-inquiry-warning {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 12px;
  padding: 11px 14px;
  background: #FFF8E1;
  border: 1px solid #E8D99A;
  border-radius: var(--radius);
  color: #8A6900;
  font-size: 12px;
  line-height: 1.5;
}

.website-inquiry-warning svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  margin-top: 1px;
}

.website-inquiry-tabs small {
  color: #A0ACB8;
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
}

.inquiry-type-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  background: #EAF0F5;
  border-radius: var(--radius);
  color: var(--pbrg-navy);
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.inquiry-contact {
  color: #536579;
  font-size: 12px;
  white-space: nowrap;
}

.inquiry-status-new,
.inquiry-status-pending {
  background-color: #FFF3C4;
  color: #8A6900;
}

.inquiry-status-contacted,
.inquiry-status-in-progress,
.inquiry-status-under-review {
  background-color: #E5F0F8;
  color: #1C628A;
}

.inquiry-status-approved,
.inquiry-status-accepted,
.inquiry-status-qualified {
  background-color: #EAF6EF;
  color: #287A4A;
}

.inquiry-status-rejected,
.inquiry-status-closed,
.inquiry-status-lost {
  background-color: #F8E8E8;
  color: #945454;
}

.website-inquiry-row > td {
  vertical-align: middle;
}

.inquiry-status-select {
  display: block;
  box-sizing: border-box;
  width: 150px;
  min-width: 150px;
  height: 30px;
  padding: 0 28px 0 9px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, currentColor 50%),
    linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position:
    calc(100% - 12px) 12px,
    calc(100% - 8px) 12px;
  background-repeat: no-repeat;
  background-size: 4px 4px, 4px 4px;
  font-family: inherit;
  font-size: 10px;
  font-weight: 700;
  line-height: 28px;
  cursor: pointer;
  outline: none;
}

.inquiry-status-select:hover {
  border-color: #CBD6E2;
}

.inquiry-status-select:focus {
  border-color: var(--pbrg-navy);
  box-shadow: 0 0 0 2px rgba(0, 42, 84, 0.08);
}

.inquiry-status-select:disabled {
  cursor: wait;
  opacity: 0.7;
}

.property-status-available,
.property-website-published {
  background-color: #EAF6EF;
  color: #287A4A;
}

.property-status-sold {
  background-color: #F8E8E8;
  color: #945454;
}

.property-status-unlisted,
.property-website-unpublished {
  background-color: #F1F5F9;
  color: #66778A;
}

.lead-status-update-error {
  display: block;
  max-width: 160px;
  margin-top: 4px;
  color: #945454;
  font-size: 10px;
  line-height: 1.3;
}

.property-table-update-error {
  display: block;
  max-width: 160px;
  margin-top: 4px;
  color: #945454;
  font-size: 10px;
  line-height: 1.3;
}

#websiteInquiryKanbanView[hidden] {
  display: none;
}

#websiteInquiryTableScroll,
#websiteInquiryKanbanScroll {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

#websiteInquiryTableScroll::-webkit-scrollbar,
#websiteInquiryKanbanScroll::-webkit-scrollbar {
  height: 0;
}

.website-inquiry-scrollbar {
  position: sticky;
  z-index: 2;
  bottom: 10px;
  display: block;
  height: 14px;
  margin: 8px 0 2px;
  overflow-x: auto;
  overflow-y: hidden;
  background: #EEF1F4;
  border: 1px solid #DDE4EB;
  border-radius: var(--radius);
  scrollbar-color: #AAB8C5 #EEF1F4;
  scrollbar-width: thin;
}

.website-inquiry-scrollbar[hidden] {
  display: none;
}

.website-inquiry-scrollbar > div {
  height: 1px;
  min-width: 100%;
}

.website-inquiry-scrollbar::-webkit-scrollbar {
  height: 8px;
}

.website-inquiry-scrollbar::-webkit-scrollbar-track {
  background: #EEF1F4;
}

.website-inquiry-scrollbar::-webkit-scrollbar-thumb {
  background: #AAB8C5;
  border-radius: var(--radius);
}

.inquiry-kanban {
  display: flex;
  gap: 10px;
  width: 100%;
  padding-bottom: 8px;
}

.inquiry-kanban-scroll-container {
  width: 100%;
  overflow-x: auto;
}

.inquiry-kanban-column {
  display: flex;
  flex: 0 0 220px;
  flex-direction: column;
  min-height: 360px;
  background: #F8FAFC;
  border: 1px solid #E4E9EF;
  border-radius: var(--radius);
}

.inquiry-kanban-column-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 13px;
  background: #FFFFFF;
  border-bottom: 1px solid #E4E9EF;
  border-radius: var(--radius) var(--radius) 0 0;
  color: var(--pbrg-navy);
  font-size: 11px;
  text-transform: uppercase;
}

.inquiry-kanban-column-header span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 5px;
  background: #EEF1F4;
  border-radius: 50%;
  color: #687789;
  font-size: 10px;
}

.inquiry-kanban-column-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  padding: 9px;
}

.inquiry-kanban-card {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 12px;
  background: #FFFFFF;
  border: 1px solid #E4E9EF;
  border-radius: var(--radius);
  color: #536579;
  font-size: 11px;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.inquiry-kanban-card:hover,
.inquiry-kanban-card:focus {
  border-color: #B8C8D6;
  box-shadow: 0 2px 8px rgba(21, 39, 56, 0.08);
  outline: none;
}

.inquiry-kanban-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--pbrg-navy);
  font-size: 12px;
}

.inquiry-kanban-card-header .lead-avatar {
  flex-basis: 24px;
  width: 24px;
  height: 24px;
  font-size: 9px;
}

.inquiry-kanban-subject {
  color: #25364A;
  font-size: 11px;
  line-height: 1.35;
}

.inquiry-kanban-card > span:not(.lead-status) {
  overflow: hidden;
  color: #718096;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inquiry-kanban-card .lead-status {
  align-self: flex-start;
  margin-top: 2px;
}

.inquiry-kanban-empty {
  padding: 24px 8px;
  color: #A0ACB8;
  font-size: 11px;
  text-align: center;
}

.kanban-source-prompt {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  min-height: 260px;
  padding: 30px;
  background: #FFFFFF;
  border: 1px dashed #CBD6E2;
  border-radius: var(--radius);
  color: #718096;
  text-align: center;
}

.kanban-source-prompt svg {
  width: 24px;
  height: 24px;
  color: var(--pbrg-gold);
}

.kanban-source-prompt strong {
  color: var(--pbrg-navy);
  font-size: 13px;
}

.website-inquiry-row {
  cursor: pointer;
}

.website-inquiry-row:hover {
  background: #F8FAFC;
}

.leads-heading-row {
  margin-bottom: 18px;
}

.leads-module-title {
  margin: 3px 0 4px;
  color: var(--pbrg-navy);
  font-size: 20px;
  font-weight: 700;
}

.leads-module-subtitle {
  margin: 0;
  color: #718096;
  font-size: 13px;
}

.lead-kpis {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.lead-kpi {
  min-height: 105px;
  padding: 16px;
  background: #FFFFFF;
  border: 1px solid #E4E9EF;
  border-radius: var(--radius);
}

.lead-kpi span,
.lead-kpi small {
  display: block;
  color: #718096;
  font-size: 11px;
}

.lead-kpi strong {
  display: block;
  margin: 7px 0 3px;
  color: var(--pbrg-navy);
  font-size: 25px;
  line-height: 1;
}

.lead-kpi-highlight {
  background: #FFFDF5;
  border-color: #E8D99A;
}

.lead-kpi-highlight strong {
  color: #8A6900;
}

.pipeline-panel {
  margin-bottom: 16px;
  padding: 16px 18px 18px;
  background: #FFFFFF;
  border: 1px solid #E4E9EF;
  border-radius: var(--radius);
}

.pipeline-heading {
  align-items: center;
  margin-bottom: 15px;
}

.pipeline-heading h3 {
  margin: 3px 0 0;
  color: var(--pbrg-navy);
  font-size: 15px;
}

.pipeline-note {
  color: #8A98A8;
  font-size: 11px;
}

.lead-pipeline {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pipeline-stage {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  flex: 1;
  column-gap: 9px;
  padding: 10px 12px;
  background: #F8FAFC;
  border: 1px solid #E4E9EF;
  border-radius: var(--radius);
  color: var(--pbrg-navy);
  text-align: left;
  cursor: pointer;
}

.pipeline-stage:hover {
  border-color: #C6D3DF;
  background: #F2F6F9;
}

.pipeline-stage-index {
  grid-row: span 2;
  color: var(--pbrg-gold);
  font-size: 11px;
  font-weight: 700;
}

.pipeline-stage strong {
  font-size: 12px;
}

.pipeline-stage small {
  color: #8A98A8;
  font-size: 10px;
}

.pipeline-arrow {
  color: #B3BFCA;
}

.pipeline-arrow svg {
  width: 15px;
  height: 15px;
}

.leads-toolbar {
  margin-bottom: 8px;
}

.website-inquiry-tabs {
  margin-bottom: 8px;
}

.lead-filter-bar {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}

.lead-filter-bar label,
.lead-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #718096;
  font-size: 11px;
  font-weight: 600;
}

.lead-filter-bar select,
.lead-form input,
.lead-form select,
.lead-form textarea {
  width: 100%;
  min-height: 38px;
  padding: 8px 10px;
  background: #FFFFFF;
  border: 1px solid #DDE4EB;
  border-radius: var(--radius);
  color: #25364A;
  font-family: inherit;
  font-size: 12px;
  outline: none;
}

.lead-form textarea {
  resize: vertical;
}

.lead-filter-bar select:focus,
.lead-form input:focus,
.lead-form select:focus,
.lead-form textarea:focus {
  border-color: var(--pbrg-navy);
  box-shadow: 0 0 0 2px rgba(0, 42, 84, 0.08);
}

.lead-tabs {
  margin-bottom: 0;
}

.leads-table {
  min-width: 1120px;
}

.lead-row {
  cursor: pointer;
}

.lead-person,
.lead-source,
.lead-interest {
  display: flex;
  align-items: center;
  gap: 9px;
}

.lead-person > span:last-child,
.lead-source,
.lead-interest {
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
}

.lead-person strong,
.lead-interest strong,
.lead-source strong {
  color: var(--pbrg-navy);
  font-size: 12px;
  font-weight: 600;
}

.lead-person small,
.lead-interest small,
.lead-source small {
  color: #8A98A8;
  font-size: 10px;
}

.lead-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 700;
}

.lead-avatar-blue { background: #E5F0F8; color: #1C628A; }
.lead-avatar-gold { background: #FFF3C4; color: #8A6900; }
.lead-avatar-green { background: #EAF6EF; color: #287A4A; }
.lead-avatar-rose { background: #F8E8E8; color: #945454; }
.lead-avatar-gray { background: #EEF1F4; color: #687789; }

.lead-type,
.lead-assignee,
.lead-unassigned {
  color: #536579;
  font-size: 12px;
}

.lead-unassigned {
  color: #9A6B00;
  font-weight: 600;
}

.lead-status {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 0 8px;
  border-radius: var(--radius);
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.lead-status-new { background: #EEF1F4; color: #687789; }
.lead-status-qualified { background: #E5F0F8; color: #1C628A; }
.lead-status-viewing { background: #EAF6EF; color: #287A4A; }
.lead-status-office-visit { background: #FFF3C4; color: #8A6900; }
.lead-status-ready-for-closing { background: #E3F3EA; color: #236B40; }
.lead-status-lost { background: #F8E8E8; color: #945454; }

.leads-footnote {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 12px;
  color: #8A98A8;
  font-size: 11px;
}

.leads-footnote svg { width: 14px; height: 14px; }

.lead-empty {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 6px;
}

.lead-empty svg { width: 22px; height: 22px; color: #A0ACB8; }
.lead-empty strong { color: #536579; font-size: 13px; }
.lead-empty span { font-size: 11px; }

.lead-drawer-backdrop,
.lead-modal-backdrop {
  position: fixed;
  z-index: 1000;
  inset: 0;
  background: rgba(21, 39, 56, 0.28);
}

.lead-drawer-backdrop { display: flex; justify-content: flex-end; }

.lead-drawer {
  display: flex;
  flex-direction: column;
  width: min(520px, 100%);
  height: 100%;
  background: #FFFFFF;
  box-shadow: -8px 0 24px rgba(21, 39, 56, 0.12);
}

.lead-drawer-header,
.lead-modal-header {
  padding: 22px 24px 18px;
  border-bottom: 1px solid #E4E9EF;
}

.lead-drawer-header h2,
.lead-modal-header h2 {
  margin: 4px 0 4px;
  color: var(--pbrg-navy);
  font-size: 21px;
}

.lead-drawer-header p,
.lead-modal-header p {
  margin: 0;
  color: #8A98A8;
  font-size: 12px;
}

.lead-close-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: transparent;
  border: 0;
  border-radius: var(--radius);
  color: #718096;
  cursor: pointer;
}

.lead-close-button:hover { background: #F1F5F9; color: var(--pbrg-navy); }
.lead-close-button svg { width: 18px; height: 18px; }

.lead-drawer-body {
  flex: 1;
  padding: 18px 24px 26px;
  overflow-y: auto;
}

.lead-drawer-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 18px;
  color: #8A98A8;
  font-size: 11px;
}

.lead-detail-section {
  padding: 17px 0;
  border-top: 1px solid #EEF1F4;
}

.lead-detail-section:first-of-type { border-top: 0; padding-top: 0; }

.lead-detail-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.lead-detail-section-heading svg { width: 16px; height: 16px; color: #9AA6B2; }

.lead-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px 18px;
}

.lead-detail-item { min-width: 0; }
.lead-detail-item-wide { grid-column: 1 / -1; }
.lead-detail-item span { display: block; margin-bottom: 4px; color: #8A98A8; font-size: 10px; }
.lead-detail-item strong { display: block; color: #25364A; font-size: 12px; font-weight: 600; overflow-wrap: anywhere; }
.lead-detail-note { margin: 13px 0 0; color: #536579; font-size: 12px; line-height: 1.6; }

.lead-activity-list { display: flex; flex-direction: column; gap: 15px; }
.lead-activity { display: flex; gap: 10px; }
.lead-activity-dot { flex: 0 0 8px; width: 8px; height: 8px; margin-top: 4px; background: var(--pbrg-gold); border-radius: 50%; }
.lead-activity small { color: #8A98A8; font-size: 10px; }
.lead-activity p { margin: 3px 0 0; color: #536579; font-size: 12px; line-height: 1.45; }

.lead-followup { display: flex; flex-direction: column; gap: 4px; padding: 12px; background: #FFFDF5; border: 1px solid #E8D99A; border-radius: var(--radius); color: #536579; font-size: 12px; }
.lead-followup strong { color: #8A6900; }
.lead-followup small { color: #718096; font-size: 11px; }

.lead-drawer-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 24px;
  border-top: 1px solid #E4E9EF;
}

.lead-drawer-footer-action {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.danger-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 15px;
  background: #FFF5F5;
  border: 1px solid #E8CACA;
  border-radius: var(--radius);
  color: #945454;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.danger-button:hover {
  background: #FBE8E8;
  border-color: #D9AAAA;
}

.danger-button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.danger-button svg {
  width: 16px;
  height: 16px;
}

.lead-action-error {
  align-self: center;
  color: #945454;
  font-size: 11px;
}

.lead-drawer-status-note {
  color: #718096;
  font-size: 12px;
  font-weight: 600;
}

.lead-modal-backdrop { display: flex; align-items: center; justify-content: center; padding: 20px; overflow-y: auto; }
.lead-modal { width: min(620px, 100%); background: #FFFFFF; border-radius: var(--radius); box-shadow: 0 18px 48px rgba(21, 39, 56, 0.2); }
.lead-form { padding: 20px 24px 24px; }
.lead-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.lead-form-full { grid-column: 1 / -1; }
.lead-form-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; }

.users-module { display: flex; flex-direction: column; gap: 14px; }
.users-toolbar { display: flex; justify-content: flex-end; }
.users-table-wrap { overflow: hidden; background: #FFFFFF; border: 1px solid #E4E9EF; border-radius: var(--radius); }
.users-table { width: 100%; border-collapse: collapse; text-align: left; }
.users-table th { padding: 11px 14px; background: #F7F9FB; color: #718096; font-size: 10px; font-weight: 700; text-transform: uppercase; }
.users-table td { padding: 12px 14px; border-top: 1px solid #EEF1F4; color: #384B60; font-size: 12px; vertical-align: middle; }
.users-table tr:first-child td { border-top: 0; }
.users-name { color: #25364A; font-weight: 600; }
.users-role-badge, .users-status-badge { display: inline-flex; align-items: center; min-height: 24px; padding: 0 8px; border-radius: 12px; background: #F0F3F6; color: #536579; font-size: 10px; font-weight: 600; white-space: nowrap; }
.users-status-badge.is-active { background: #EAF6EF; color: #287A4A; }
.users-status-badge.is-inactive { background: #FBEDED; color: #945454; }
.users-row-action { min-height: 34px; padding: 0 10px; font-size: 11px; }
.users-self-note { color: #8A98A8; font-size: 11px; }
.users-provisioning-note { display: flex; align-items: flex-start; gap: 9px; padding: 11px 13px; background: #FFF9E8; border: 1px solid #E8D99A; border-radius: var(--radius); color: #725E23; font-size: 12px; line-height: 1.5; }
.users-provisioning-note svg { width: 16px; height: 16px; flex: 0 0 16px; margin-top: 1px; }
.users-inline-error { margin: 0 24px 16px; padding: 10px 12px; border: 1px solid #E8CACA; border-radius: var(--radius); background: #FFF5F5; color: #7A3B3B; font-size: 12px; line-height: 1.45; }
.users-empty { padding: 28px 16px; color: #8A98A8; text-align: center; font-size: 12px; }
.users-modal-backdrop { position: fixed; z-index: 1100; inset: 0; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(21, 39, 56, 0.34); overflow-y: auto; }
.users-modal { max-height: calc(100vh - 40px); overflow-y: auto; }
.users-modal .lead-form { padding-top: 16px; }
.users-form-field { display: flex; flex-direction: column; gap: 6px; color: #536579; font-size: 11px; font-weight: 600; }
.users-form-field input, .users-form-field select { width: 100%; min-height: 40px; padding: 0 11px; border: 1px solid #D9E0E7; border-radius: var(--radius); background: #FFFFFF; color: #25364A; font: inherit; font-size: 12px; }
.users-form-field input:focus, .users-form-field select:focus { outline: 2px solid rgba(31, 73, 112, 0.18); border-color: #557A9D; }
.users-form-field input[readonly] { background: #F7F9FB; color: #718096; }
.users-form-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }
.users-disabled-action { cursor: not-allowed; opacity: 0.55; }

@media (max-width: 700px) {
  .users-toolbar { justify-content: flex-start; }
  .users-table-wrap { overflow: visible; border: 0; background: transparent; }
  .users-table, .users-table tbody { display: block; width: 100%; }
  .users-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
  .users-table tbody { display: grid; gap: 9px; }
  .users-table tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px 12px; padding: 13px; background: #FFFFFF; border: 1px solid #E4E9EF; border-radius: var(--radius); }
  .users-table td { min-width: 0; padding: 0; border: 0; overflow-wrap: anywhere; }
  .users-table td::before { display: block; margin-bottom: 4px; color: #8A98A8; content: attr(data-label); font-size: 9px; font-weight: 700; text-transform: uppercase; }
  .users-table td:first-child, .users-table td:last-child { grid-column: 1 / -1; }
  .users-table td:last-child { padding-top: 8px; border-top: 1px solid #EEF1F4; }
  .users-modal-backdrop { align-items: flex-end; padding: 10px; }
  .users-modal { max-height: calc(100vh - 20px); }
  .users-inline-error { margin-right: 18px; margin-left: 18px; }
}

@media (max-width: 900px) {
  .lead-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lead-kpis.property-summary-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lead-filter-bar { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .lead-view-tabs-row {
    gap: 8px;
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .lead-view-tabs {
    flex: 1 1 calc(100% - 42px);
    overflow-x: auto;
  }

  .lead-view-tab {
    flex: 1 0 auto;
  }

  .leads-heading-row { align-items: stretch; flex-direction: column; }
  .leads-heading-row .primary-button { align-self: flex-start; }
  .lead-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lead-kpis.property-summary-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lead-filter-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lead-pipeline { align-items: stretch; flex-direction: column; }
  .pipeline-arrow { display: none; }
  .pipeline-stage { grid-template-columns: auto 1fr auto; }
  .pipeline-stage small { grid-column: 3; grid-row: 1 / span 2; align-self: center; }
  .lead-drawer-header, .lead-modal-header, .lead-drawer-body { padding-left: 18px; padding-right: 18px; }
  .lead-drawer-footer { padding-left: 18px; padding-right: 18px; }
  .lead-form { padding: 18px; }
  .lead-form-grid, .lead-detail-grid { grid-template-columns: 1fr; }
  .lead-form-full { grid-column: auto; }

  .inquiry-kanban-column {
    flex-basis: 205px;
    min-height: 320px;
  }
}

.property-media-empty svg {
  width: 24px;
  height: 24px;
}

.property-media-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  background: #FFFFFF;
  border: 1px solid #E4E9EF;
  border-radius: var(--radius);
  transition: border-color 0.16s ease, background 0.16s ease;
  cursor: grab;
}

.property-media-item:active {
  cursor: grabbing;
}

.property-media-item.is-dragging {
  opacity: 0.55;
}

.property-media-item.is-drop-target {
  background: #F8FAFC;
  border-color: var(--pbrg-gold);
}

.property-media-item.is-primary {
  border-color: var(--pbrg-gold);
  box-shadow: 0 0 0 1px rgba(239, 191, 4, 0.18);
}

.property-media-thumbnail {
  width: 84px;
  height: 64px;
  flex: 0 0 84px;
  object-fit: cover;
  background: #F1F5F9;
  border-radius: var(--radius);
}

.property-media-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1;
}

.property-media-details strong {
  overflow: hidden;
  color: #25364A;
  font-size: 13px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.property-media-details span {
  color: #8A98A8;
  font-size: 11px;
}

.property-media-details .property-media-primary {
  color: #8A6900;
  font-weight: 700;
}

.property-media-details .property-media-failed {
  color: #8A4545;
  font-weight: 700;
}

.property-media-retry-button {
  min-width: 110px;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid #D8A5A5;
  border-radius: var(--radius);
  background: #FFFFFF;
  color: #8A4545;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}

.property-media-retry-button:hover {
  background: #FFF5F5;
  border-color: #B87979;
  color: #753535;
}

.property-media-retry-button:focus-visible {
  outline: 2px solid var(--pbrg-navy);
  outline-offset: 2px;
}

.property-media-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 176px;
  min-height: 34px;
  flex: 0 0 176px;
}

.property-media-remove-button {
  min-width: 150px;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 10px;
  border: 1px solid #D8A5A5;
  border-radius: var(--radius);
  background: #FFFFFF;
  color: #8A4545;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}

.property-media-remove-button svg {
  width: 14px;
  height: 14px;
}

.property-media-remove-button:hover {
  background: #FFF5F5;
  border-color: #B87979;
  color: #753535;
}

.property-media-remove-button:focus-visible {
  outline: 2px solid var(--pbrg-navy);
  outline-offset: 2px;
}

.property-media-remove-button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.property-media-remove-button:disabled:hover {
  background: transparent;
  border-color: #D8A5A5;
  color: #8A4545;
}

.property-media-protected-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 176px;
  min-height: 34px;
  color: #8A6900;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  cursor: default;
}


/* =========================================
   PROPERTY EDIT RESPONSIVE
========================================= */

@media (max-width: 700px) {

  .property-edit-card {
    grid-template-columns: 1fr;

    padding: 18px;
  }

  .property-form-field-full {
    grid-column: auto;
  }

  .property-edit-header h2 {
    font-size: 28px;
  }

}


@media (max-width: 480px) {

  .property-media-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .property-media-upload-button {
    width: 100%;
  }

  .property-media-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .property-media-select-button {
    justify-content: center;
  }

  .property-media-item {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .property-media-controls {
    width: 100%;
    flex-basis: 100%;
    justify-content: flex-end;
  }

  .property-media-remove-button,
  .property-media-protected-status {
    max-width: 100%;
  }

  .property-edit-actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .property-edit-actions button {
    width: 100%;
  }

}

.lot-area-field {
  max-width: 420px;
}

.lot-area-unit {
  flex: 0 0 auto;
  color: #718096;
  font-size: 12px;
  font-weight: 600;
}

.property-featured-reasons {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.property-featured-reasons-section[hidden] {
  display: none;
}

.property-featured-reasons-section {
  grid-column: 1 / -1;
  margin-top: 6px;
  padding-top: 16px;
  border-top: 1px solid #EEF1F4;
}

.property-featured-reasons-label {
  display: block;
  margin-bottom: 8px;
  color: #536579;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.property-featured-reasons .property-toggle-field {
  padding: 9px 12px;
  min-height: 42px;
  padding: 9px 12px;
  background: #F8FAFC;
  border: 1px solid #DDE4EB;
  border-radius: var(--radius);
}

.property-featured-reasons .property-toggle-field > span {
  color: #536579;
  font-size: 13px;
}

.delete-inquiry-modal {
  width: min(520px, 100%);
}

.delete-inquiry-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 18px 24px 24px;
}

.delete-inquiry-error {
  margin-left: auto;
}