/* Geometry workspace layout: top navigation, tabular lists and record windows. */
body.crm-top-navigation { --crm-sidebar-width: 0px !important; background: #f4f5f7; }
.crm-top-navigation .shell { display: block !important; --crm-sidebar-width: 0px !important; padding-top: 54px; }
.crm-top-navigation .shell.hidden { display: none !important; }
.crm-top-navigation .main { grid-column: 1 !important; width: 100% !important; min-width: 0; }
.crm-app-header {
  position: fixed; inset: 0 0 auto; height: 54px; z-index: 32;
  display: flex; align-items: center; gap: 10px; padding: 0 18px;
  background: #41414a; color: #fff; border-bottom: 1px solid #36363f;
}
.crm-app-brand { display: flex; align-items: center; gap: 9px; flex: 0 0 auto; font-size: 15px; padding-right: 16px; }
.crm-logo { width: 29px; height: 29px; display: grid; place-items: center; background: #4a90e2; border-radius: 3px; font-size: 20px; }
.crm-app-brand small { display: block; font-size: 9px; color: #b9bac5; margin-top: 2px; letter-spacing: .1em; }
.crm-top-navigation #nav.crm-main-nav {
  display: flex; flex-direction: row; align-items: stretch; gap: 0;
  padding: 0; margin: 0; flex: 1; min-width: 0; height: 54px;
  overflow: visible; background: transparent;
}
.crm-top-navigation #nav button[data-page], .crm-top-link, .crm-more-menu > summary {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  width: auto; min-height: 54px; padding: 0 14px; margin: 0;
  border: 0; border-bottom: 3px solid transparent; border-radius: 0;
  background: transparent; box-shadow: none; color: #d8d8e0;
  font-size: 13px; font-weight: 400; text-decoration: none; white-space: nowrap;
  cursor: pointer; transform: none;
}
.crm-top-navigation #nav > button[data-page] .nav-icon { display: none !important; }
.crm-top-navigation #nav button .nav-label { font-size: 13px; width: auto; color: inherit; text-align: left; }
.crm-top-navigation #nav > button[data-page=dashboard] .nav-icon { display: inline-flex !important; width: 20px; height: 20px; }
.crm-top-navigation #nav > button[data-page=dashboard] .nav-label { display: none; }
.crm-top-navigation #nav > button[data-page=settings] { margin-left: auto; padding: 0 13px; }
.crm-top-navigation #nav > button[data-page=settings] .nav-icon { display: inline-flex !important; }
.crm-top-navigation #nav > button[data-page=settings] .nav-label { display: none; }
.crm-top-navigation #nav button:hover, .crm-top-link:hover, .crm-more-menu > summary:hover { background: #4b4b56; color: #fff; transform: none; }
.crm-top-navigation #nav > button.active { background: #fff; color: #41414a; border-bottom-color: #4a90e2; box-shadow: none; }
.crm-top-navigation #nav .nav-icon, .crm-top-navigation #nav .nav-icon svg, .crm-top-navigation #nav .nav-icon svg * { color: inherit !important; stroke: currentColor !important; }
.crm-top-navigation #nav .nav-icon svg { width: 18px; height: 18px; }
.crm-top-link { padding: 0 14px; }
.crm-more-menu { position: relative; flex: 0 0 auto; }
.crm-more-menu > summary { list-style: none; height: 54px; }
.crm-more-menu > summary::-webkit-details-marker { display: none; }
.crm-more-menu[open] > summary { background: #555560; color: #fff; }
.crm-more-panel {
  position: absolute; top: 54px; right: 0; width: 740px; max-width: calc(100vw - 28px);
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px; padding: 18px; max-height: calc(100dvh - 72px); overflow: auto;
  background: #fff; color: #4f5968; border: 1px solid #dce0e6;
  box-shadow: 0 10px 30px rgb(27 33 44 / 18%); border-radius: 0 0 4px 4px;
}
.crm-menu-group { min-width: 0; }
.crm-menu-group h3 { margin: 0 0 8px; padding: 5px 9px 10px; border-bottom: 1px solid #edf0f4; color: #9a9eaa; font-size: 10px; font-weight: 400; text-transform: uppercase; letter-spacing: .06em; }
.crm-top-navigation #nav .crm-menu-group button[data-page] {
  display: flex; width: 100%; min-height: 34px; padding: 8px 9px;
  border: 0; justify-content: flex-start; white-space: normal;
  font-size: 12px; color: #596270; text-align: left;
}
.crm-top-navigation #nav .crm-menu-group button:hover { background: #f2f6fc; color: #3d7bc6; }
.crm-top-navigation #nav .crm-menu-group button.active { background: #eaf3ff; color: #397fcf; box-shadow: none; }
.crm-menu-group .nav-icon { flex: 0 0 18px; width: 18px; }
.crm-connection { display: flex; align-items: center; padding: 0 4px 0 8px; }
.crm-connection #apiStatus { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.crm-menu-toggle { display: none; }
.crm-top-navigation .topbar { top: 54px; height: 58px; min-height: 58px; padding: 0 22px; background: #fff; border-bottom: 1px solid #dfe3e9; z-index: 25; }
.crm-top-navigation .topbar .mobile-menu-btn, .crm-top-navigation .topbar .mobile-brand { display: none !important; }
.crm-top-navigation .global-search-structured {
  max-width: 860px; width: auto; flex: 1; height: 36px;
  grid-template-columns: auto 120px minmax(115px, 170px) 110px minmax(140px, 1fr) auto;
  background: #fff !important; border-color: #e1e5eb; padding: 0; box-shadow: none;
}
.crm-top-navigation .global-search-structured input, .crm-top-navigation .global-search-structured select { font-size: 12px !important; }
.crm-top-navigation .structured-search-label { padding: 0 9px; }
.crm-top-navigation .global-results-advanced { top: 52px; left: 22px; width: min(860px, calc(100vw - 44px)); }
.crm-top-navigation .content { max-width: 1920px; padding: 22px 24px 36px; margin: 0 auto; }
.crm-top-navigation .page-head { align-items: center; }
.crm-top-navigation .page-head h1 { font-size: 24px; }
.crm-top-navigation .page-head .eyebrow { display: none; }
.crm-top-navigation .head-actions { align-items: center; }
.crm-top-navigation .btn { font-size: 12px; }

/* The existing tables keep their columns, sorting and resizable headers. */
.crm-top-navigation .crm-resizable-table { border-radius: 0; border: 1px solid #dce1e8; box-shadow: none; max-height: calc(100dvh - 280px); overflow: auto; background: #fff; }
.crm-top-navigation .crm-resizable-table table { font-size: 13px; }
.crm-top-navigation .crm-resizable-table th { position: sticky; top: 0; z-index: 6; background: #f9fafc; border-right: 1px solid #e5e8ee; border-bottom: 1px solid #dce1e8; color: #7c8593; }
.crm-top-navigation .crm-resizable-table th.sticky-col { position: sticky; top: 0; left: 0; z-index: 8; background: #f9fafc; }
.crm-top-navigation .crm-resizable-table .crm-sort-button { font-size: 12px; padding: 12px 19px 12px 13px; font-weight: 400; }
.crm-top-navigation .crm-resizable-table td { height: 48px; padding: 10px 13px; border-right: 1px solid #edf0f4; border-bottom: 1px solid #e8ecf1; font-size: 13px; font-weight: 400; }
.crm-top-navigation .crm-resizable-table td.primary-cell { color: #4389d4; }
.crm-top-navigation .crm-resizable-table td .subtext { color: #a2a9b4; font-size: 10px; }
.crm-top-navigation .crm-resizable-table tbody tr:nth-child(even) { background: #fcfdfe; }
.crm-top-navigation .crm-resizable-table tbody tr:hover, .crm-top-navigation .crm-resizable-table tbody tr:hover .sticky-col { background: #edf5ff; }
.crm-top-navigation .filter-bar { border-radius: 0; box-shadow: none; padding: 11px 12px; margin-bottom: 12px; background: #fff; }
.crm-top-navigation .filter-bar .search-input { max-width: 520px; font-size: 13px; }
.crm-top-navigation .filter-bar .chip.dark { margin-left: auto; background: transparent; color: #87909e; font-size: 12px; }
.crm-top-navigation .pagination { border: 1px solid #dce1e8; border-top: 0; background: #fff; padding: 10px 12px; margin: 0; }
.crm-top-navigation .pagination .chip.dark { background: #fff; }
.crm-top-navigation .table-view-toolbar { margin-bottom: 0; border: 1px solid #dce1e8; border-bottom: 0; }

/* Records open in a large centered window over the current list. */
body.crm-top-navigation:has(#drawer:not(.hidden)), body.crm-top-navigation:has(#modal:not(.hidden)) { overflow: hidden; }
.crm-top-navigation #drawerBackdrop { z-index: 70 !important; background: rgb(32 37 47 / 42%); backdrop-filter: none; }
body.crm-top-navigation #drawer {
  position: fixed; inset: 72px 24px 22px !important;
  width: auto !important; max-width: 1460px !important; height: auto !important; max-height: none;
  margin: 0 auto !important; border: 1px solid #cfd6df; border-radius: 5px;
  box-shadow: 0 15px 55px rgb(20 29 43 / 22%); z-index: 75 !important;
  background: #f4f6f9; overflow: auto; overscroll-behavior: contain;
}
.crm-top-navigation #modalBackdrop { z-index: 90 !important; }
.crm-top-navigation #modal { z-index: 95 !important; }
.crm-top-navigation #drawer .entity-workspace-head { min-height: 76px; padding: 13px 21px !important; background: #fff !important; backdrop-filter: none; }
.crm-top-navigation .entity-ws-title h2 { font-size: 22px; font-weight: 400; }
.crm-top-navigation .entity-ws-title > span { font-size: 10px; letter-spacing: .04em; font-weight: 400; }
.crm-top-navigation .entity-ws-title p { font-size: 12px; }
.crm-top-navigation .entity-ws-actions .btn { font-size: 12px !important; }
.crm-top-navigation .entity-ws-hero { padding: 14px 21px; background: #fff; }
.crm-top-navigation .entity-ws-stat { background: #f9fafc; border-radius: 2px; padding: 10px 13px; }
.crm-top-navigation .entity-ws-stat small { font-size: 10px; font-weight: 400; }
.crm-top-navigation .entity-ws-stat strong { font-size: 13px; }
.crm-top-navigation .entity-ws-tabs { top: var(--record-header-height, 76px) !important; }
.crm-top-navigation .entity-ws-body { padding: 18px 21px 32px; }
.crm-top-navigation .entity-ws-card { border-radius: 2px !important; }
.crm-top-navigation .entity-ws-section-title { background: #fff; padding: 13px 16px; border-bottom: 1px solid #e5e9ee; }
.crm-top-navigation .entity-ws-section-title h3 { font-size: 15px; font-weight: 400; }
.crm-top-navigation .entity-quick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 0 16px; gap: 0 28px; }
.crm-top-navigation .entity-quick-grid .entity-ws-field { border: 0 !important; border-bottom: 1px solid #edf0f4 !important; border-radius: 0 !important; min-height: 47px; padding: 10px 0; }
.crm-top-navigation .entity-quick-grid .entity-ws-field > span { font-size: 12px; }
.crm-top-navigation .entity-quick-grid .entity-ws-field > strong { font-size: 13px; margin: 0; }
.crm-top-navigation .entity-action-strip { padding-bottom: 14px; gap: 7px; }
.crm-top-navigation .entity-action { min-height: 35px; padding: 6px 11px; font-size: 12px; border-radius: 2px; }
.crm-top-navigation .entity-action b { width: 23px; height: 23px; min-width: 23px; font-size: 12px; }
.crm-top-navigation .entity-ws-field > span { font-size: 12px; }
.crm-top-navigation .entity-ws-field > strong { font-size: 13px; }
.crm-top-navigation .entity-ws-close, .crm-top-navigation .entity-ws-back { border-radius: 3px; }
.crm-top-navigation .property-workspace { display: flex; flex-direction: column; }
.crm-top-navigation .property-topbar { order: 0; position: sticky; top: 0; z-index: 30; min-height: 58px; background: #fff; padding: 10px 18px; }
.crm-top-navigation #propertyTabs.property-tabs { order: 1; position: sticky; top: var(--record-header-height, 58px) !important; z-index: 25; }
.crm-top-navigation .property-hero { order: 2; grid-template-columns: minmax(0, 1.2fr) minmax(260px, .8fr); border-bottom: 1px solid #dfe5ed; }
.crm-top-navigation .property-summary { grid-column: 1; grid-row: 1; padding: 20px; }
.crm-top-navigation .property-gallery { grid-column: 2; grid-row: 1; min-height: 280px; max-height: 360px; }
.crm-top-navigation .property-title-line h1 { font-size: 24px; font-weight: 400; }
.crm-top-navigation .property-price-block { margin: 12px 0; padding: 12px 0; background: none; border-radius: 0; }
.crm-top-navigation .property-price-block strong { font-size: 26px; font-weight: 400; }
.crm-top-navigation .property-core-metrics { gap: 8px; }
.crm-top-navigation .property-metric { padding: 8px; border-radius: 2px; }
.crm-top-navigation .property-tab-body { order: 3; padding: 18px 20px 32px !important; }
.crm-top-navigation .property-section { border-radius: 2px !important; }
.crm-top-navigation .property-top-actions { flex-wrap: wrap; gap: 6px; }
.crm-top-navigation .property-top-actions .btn { min-height: 31px; padding: 7px 9px; font-size: 11px; }

/* Settings use a category list and a content pane, with existing configuration. */
.crm-settings-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 20px; align-items: start; }
.crm-settings-categories { border: 1px solid #e0e4eb; background: #fff; padding: 8px 0; border-radius: 3px; }
.crm-settings-categories h2 { margin: 0; padding: 13px 17px; font-size: 10px; font-weight: 400; text-transform: uppercase; color: #a0a6b1; letter-spacing: .07em; }
.crm-settings-categories button { width: 100%; display: flex; align-items: center; gap: 11px; padding: 12px 17px; border: 0; border-left: 3px solid transparent; background: transparent; color: #637084; text-align: left; font-size: 13px; }
.crm-settings-categories button:hover { background: #f7f9fc; }
.crm-settings-categories button.active { background: #edf5ff; border-left-color: #4a90e2; color: #3e85d1; }
.crm-settings-categories button > span { width: 18px; color: #99a7b9; font-size: 16px; text-align: center; }
.crm-settings-main { min-width: 0; display: grid; gap: 18px; }
.crm-settings-panel { border: 1px solid #e0e4eb; background: #fff; border-radius: 3px; overflow: hidden; }
.crm-settings-panel > header { padding: 19px 23px; border-bottom: 1px solid #e5e9ef; }
.crm-settings-panel h2 { margin: 0 0 5px; color: #414c5d; font-size: 18px; font-weight: 400; }
.crm-settings-panel header p { margin: 0; font-size: 12px; line-height: 1.5; color: #9aa2ae; }
.crm-settings-form { padding: 5px 23px 14px; }
.crm-setting-line { display: grid; grid-template-columns: minmax(170px, .7fr) minmax(0, 1.3fr); align-items: center; min-height: 64px; padding: 13px 0; gap: 24px; border-bottom: 1px solid #eef1f5; }
.crm-setting-line:last-child { border: 0; }
.crm-setting-line > span { color: #7a8594; font-size: 13px; }
.crm-setting-value { padding: 10px 12px; border: 1px solid #e1e6ed; border-radius: 3px; background: #fafbfc; color: #536073; font-size: 13px; overflow-wrap: anywhere; }
.crm-setting-line small { display: block; color: #a5acb6; font-size: 11px; margin-top: 6px; }
.crm-settings-module-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 10px 23px 18px; gap: 0 28px; }
.crm-settings-module-list > div { padding: 12px 0; border-bottom: 1px solid #eef1f5; display: flex; align-items: center; gap: 10px; color: #748094; font-size: 13px; }
.crm-settings-module-list i { color: #6ca88a; font-style: normal; font-size: 13px; }

@media (max-width: 1180px) and (min-width: 901px) {
  .crm-app-header { padding: 0 12px; gap: 4px; }
  .crm-app-brand { padding-right: 7px; font-size: 13px; }
  .crm-top-navigation #nav > button[data-page], .crm-top-link, .crm-more-menu > summary { padding-left: 10px; padding-right: 10px; font-size: 12px; }
  .crm-top-navigation #nav button .nav-label { font-size: 12px; }
  .crm-top-navigation .global-search-structured { grid-template-columns: 110px 140px 105px minmax(120px, 1fr) auto; }
  .crm-top-navigation .structured-search-label { display: none; }
  .crm-top-navigation .user-chip > div:last-child { display: none; }
}
@media (max-width: 900px) {
  .crm-app-header { justify-content: space-between; height: 54px; padding: 0 14px; }
  .crm-menu-toggle { display: grid; place-items: center; width: 34px; height: 34px; margin-left: auto; border: 1px solid #62626e; border-radius: 3px; color: #fff; background: transparent; font-size: 20px; cursor: pointer; }
  .crm-top-navigation #nav.crm-main-nav { display: none; position: absolute; top: 54px; left: 0; right: 0; height: auto; max-height: calc(100dvh - 54px); padding: 8px 12px 18px; overflow: auto; flex-direction: column; background: #fff; box-shadow: 0 10px 25px rgb(25 35 48 / 20%); }
  .crm-top-navigation.mobile-nav-open .crm-app-header { z-index: 130; }
  .crm-top-navigation.mobile-nav-open #nav.crm-main-nav { display: flex; }
  .crm-top-navigation #nav > button[data-page], .crm-top-link, .crm-more-menu > summary { display: flex; justify-content: flex-start; width: 100%; min-height: 42px; height: auto; padding: 11px 12px; border: 0; color: #626c7b; text-align: left; }
  .crm-top-navigation #nav > button[data-page] .nav-icon { display: inline-flex !important; }
  .crm-top-navigation #nav > button[data-page=dashboard] .nav-label, .crm-top-navigation #nav > button[data-page=settings] .nav-label { display: inline; }
  .crm-top-navigation #nav > button.active { color: #4a90e2; background: #edf5ff; }
  .crm-top-navigation #nav button:hover, .crm-top-link:hover, .crm-more-menu > summary:hover { color: #4a90e2; background: #f5f8fc; }
  .crm-more-menu > summary { justify-content: space-between; }
  .crm-more-menu[open] > summary { background: #f4f7fb; color: #54677e; }
  .crm-more-panel { position: static; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: auto; max-width: none; max-height: none; padding: 12px 2px; box-shadow: none; border: 0; }
  .crm-top-navigation #nav > button[data-page=settings] { margin-left: 0; padding: 11px 12px; }
  .crm-top-navigation .global-search-structured { grid-template-columns: 110px minmax(0, 1fr) auto; max-width: none; width: 100%; }
  .crm-top-navigation .structured-search-label, .crm-top-navigation #globalSearchField, .crm-top-navigation #globalSearchMode { display: none; }
  .crm-top-navigation .topbar { padding: 0 14px; gap: 10px; }
  .crm-top-navigation .user-chip { display: none; }
  .crm-settings-layout { grid-template-columns: 190px minmax(0, 1fr); gap: 14px; }
  .crm-setting-line { grid-template-columns: 1fr; gap: 8px; }
  .crm-top-navigation #drawer .entity-workspace-head { align-items: flex-start; flex-wrap: wrap; }
  .crm-top-navigation .property-topbar { height: auto; align-items: flex-start; flex-wrap: wrap; }
  .crm-top-navigation .property-hero { grid-template-columns: 1fr; }
  .crm-top-navigation .property-summary { grid-column: 1; grid-row: 1; }
  .crm-top-navigation .property-gallery { grid-column: 1; grid-row: 2; min-height: 220px; max-height: 260px; }
}
@media (max-width: 600px) {
  .crm-top-navigation .content { padding: 16px 12px 28px; }
  .crm-top-navigation .topbar { height: auto; min-height: 98px; padding: 9px 12px; flex-wrap: wrap; }
  .crm-top-navigation .top-actions { width: 100%; justify-content: flex-end; order: 0; }
  .crm-top-navigation .quick-create { display: inline-flex; margin-right: auto; }
  .crm-top-navigation .global-search-structured { order: 1; flex-basis: 100%; grid-template-columns: 105px minmax(0, 1fr) 58px; }
  .crm-top-navigation .global-results-advanced { top: 97px; left: 12px; width: calc(100vw - 24px); }
  .crm-more-panel { grid-template-columns: 1fr; }
  .crm-settings-layout { grid-template-columns: minmax(0, 1fr); }
  .crm-settings-categories { display: flex; flex-wrap: nowrap; overflow-x: auto; padding: 0; }
  .crm-settings-categories h2 { display: none; }
  .crm-settings-categories button { flex: 0 0 auto; width: auto; white-space: nowrap; padding: 12px; border-left: 0; border-bottom: 2px solid transparent; }
  .crm-settings-categories button.active { border-bottom-color: #4a90e2; }
  .crm-settings-categories button > span { display: none; }
  .crm-settings-module-list { grid-template-columns: 1fr; }
  .crm-settings-panel > header, .crm-settings-form { padding-left: 16px; padding-right: 16px; }
  body.crm-top-navigation #drawer { inset: 8px !important; border-radius: 3px; }
  .crm-top-navigation #drawer .entity-workspace-head { padding: 12px !important; min-height: 118px; }
  .crm-top-navigation .entity-ws-title h2 { font-size: 18px; white-space: normal; }
  .crm-top-navigation .entity-ws-title-row { gap: 7px; width: 100%; padding-right: 32px; }
  .crm-top-navigation .entity-ws-avatar { display: none; }
  .crm-top-navigation .entity-ws-actions { width: 100%; flex-wrap: nowrap; }
  .crm-top-navigation .entity-ws-actions .btn { display: inline-flex !important; align-items: center; justify-content: center; flex: 1; padding: 6px; font-size: 10.5px !important; white-space: nowrap; }
  .crm-top-navigation .entity-ws-actions .entity-ws-close { position: absolute; right: 10px; top: 12px; width: 30px; height: 30px; }
  .crm-top-navigation .entity-ws-body { padding: 12px; }
  .crm-top-navigation .entity-ws-hero { padding: 12px; }
  .crm-top-navigation .entity-quick-grid { grid-template-columns: 1fr; }
  .crm-top-navigation .property-topbar { min-height: 100px; padding: 10px; }
  .crm-top-navigation .property-summary { padding: 16px; }
  .crm-top-navigation .property-title-line h1 { font-size: 20px; }
  .crm-top-navigation .property-tab-body { padding: 12px !important; }
  .crm-top-navigation .crm-resizable-table { max-height: calc(100dvh - 330px); }
  .crm-top-navigation .filter-bar { flex-wrap: wrap; }
  .crm-top-navigation .filter-bar .search-input { width: 100%; flex-basis: 100%; }
}

/* Verified reference: recording 30.09.2026, around 13:00 and 21:00. */
.crm-top-navigation #drawerContent { height: 100%; }
.crm-top-navigation #drawer:has(.crm-record-grid) { overflow: hidden; }
.crm-top-navigation .entity-workspace:has(.crm-record-grid),
.crm-top-navigation .property-workspace:has(.crm-record-grid) { height: 100%; min-height: 0; display: flex; flex-direction: column; }
.crm-top-navigation .entity-workspace:has(.crm-record-grid) > .entity-workspace-head,
.crm-top-navigation .property-workspace:has(.crm-record-grid) > .property-topbar { flex: 0 0 auto; position: relative; top: auto; }
.crm-record-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) 160px; flex: 1 1 auto; min-height: 0; background: #f6f8f8; gap: 12px; padding: 12px; }
.crm-record-data, .crm-record-center, .crm-record-actions { min-width: 0; min-height: 0; overflow: auto; overscroll-behavior: contain; background: #fff; border: 1px solid #e6ecec; border-radius: 3px; scrollbar-width: thin; }
.crm-record-data > .entity-ws-hero { padding: 12px !important; }
.crm-record-data #entityWsBody, .crm-record-data #propertyTabBody { scroll-margin-top: 50px; }
.crm-top-navigation .crm-record-data .entity-ws-tabs,
.crm-top-navigation .crm-record-data #propertyTabs.property-tabs { top: 0 !important; padding: 0 8px !important; }
.crm-top-navigation .crm-record-data .entity-ws-tabs button,
.crm-top-navigation .crm-record-data #propertyTabs.property-tabs button { padding: 10px 9px !important; font-size: 11px !important; }
.crm-top-navigation .crm-record-data .entity-ws-body { padding: 12px; }
.crm-top-navigation .crm-record-data .entity-ws-overview-grid,
.crm-top-navigation .crm-record-data .entity-ws-fields,
.crm-top-navigation .crm-record-data .entity-custom-grid,
.crm-top-navigation .crm-record-data .entity-quick-grid { grid-template-columns: minmax(0, 1fr); }
.crm-top-navigation .crm-record-data .entity-ws-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.crm-top-navigation .crm-record-data .entity-ws-section-title { padding: 12px; gap: 8px; flex-wrap: wrap; }
.crm-top-navigation .crm-record-data .entity-ws-section-title h3 { font-size: 14px; }
.crm-top-navigation .crm-record-data .entity-ws-section-title p { font-size: 11px; }
.crm-top-navigation .crm-record-data .entity-ws-field { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 10px; }
.crm-top-navigation .crm-record-data .property-hero { display: flex; flex-direction: column; }
.crm-top-navigation .crm-record-data .property-summary { order: 0; padding: 14px; }
.crm-top-navigation .crm-record-data .property-gallery { order: 1; min-height: 180px; height: 220px; max-height: 240px; }
.crm-top-navigation .crm-record-data .property-title-line h1 { font-size: 21px; }
.crm-top-navigation .crm-record-data .property-tab-body { padding: 12px !important; }
.crm-top-navigation .crm-record-data .property-columns { grid-template-columns: minmax(0, 1fr); }
.crm-record-center-tabs { position: sticky; top: 0; z-index: 4; display: flex; gap: 0; min-height: 45px; background: #fff; border-bottom: 1px solid #e3eaea; }
.crm-record-center-tabs button { border: 0; border-bottom: 2px solid transparent; padding: 12px 16px; background: #fff; color: #8a949c; cursor: pointer; font-size: 12px; }
.crm-record-center-tabs button.active { border-bottom-color: #4a90e2; color: #3b8ac8; }
.crm-record-center-body { padding: 16px; }
.crm-record-pane-heading { display: flex; align-items: center; justify-content: space-between; color: #74818a; font-size: 12px; margin-bottom: 12px; }
.crm-record-pane-heading > span { color: #9cabb3; font-size: 11px; }
.crm-record-history-link { width: 100%; text-align: left; margin-bottom: 14px; }
.crm-record-event { padding: 14px 0; border-bottom: 1px solid #edf1f2; }
.crm-record-event > div { display: flex; align-items: flex-start; gap: 10px; justify-content: space-between; }
.crm-record-event strong { color: #64717b; font-size: 12px; font-weight: 400; }
.crm-record-event time { white-space: nowrap; color: #a4aeb5; font-size: 10px; }
.crm-record-event small { display: block; margin-top: 6px; color: #a5afb6; font-size: 10px; }
.crm-record-event p { margin: 9px 0 0; color: #67757e; line-height: 1.6; font-size: 12px; white-space: pre-wrap; overflow-wrap: anywhere; }
.crm-record-link { position: relative; display: block; width: 100%; padding: 14px 28px 14px 12px; margin: 0 0 10px; background: #fff; border: 1px solid #e4ebec; border-radius: 3px; cursor: pointer; text-align: left; }
.crm-record-link:hover { border-color: #a5c8e9; background: #f7fbff; }
.crm-record-link small, .crm-record-link strong { display: block; overflow-wrap: anywhere; }
.crm-record-link small { color: #a4aeb5; font-size: 10px; margin-bottom: 5px; }
.crm-record-link strong { font-size: 13px; font-weight: 400; color: #5785a8; }
.crm-record-link > span { position: absolute; right: 10px; top: 18px; color: #9aacb9; }
.crm-record-empty { margin: 20px 0; color: #a7b0b8; font-size: 12px; }
.crm-record-actions { padding: 12px 10px; }
.crm-record-actions h3 { color: #8f9b9f; font-weight: 400; font-size: 10px; text-transform: uppercase; letter-spacing: .04em; margin: 3px 0 16px; }
.crm-record-action-list { display: grid; gap: 8px; }
.crm-top-navigation .crm-record-action-list .entity-action-strip { display: grid; gap: 8px; margin: 0; padding: 0; overflow: visible; }
.crm-top-navigation .crm-record-action-list .entity-action,
.crm-top-navigation .crm-record-action-list > .btn { width: 100%; min-height: 39px; white-space: normal; line-height: 1.4; justify-content: flex-start; text-align: left; font-size: 11px; padding: 9px; }
.crm-top-navigation .crm-record-action-list .entity-action { gap: 6px; }
.crm-top-navigation .crm-record-action-list .entity-action b { width: 20px; height: 20px; min-width: 20px; font-size: 10px; }
.crm-top-navigation .view-builder-all #vbFieldSearch { position: sticky; top: 0; z-index: 4; background: #fff !important; margin-bottom: 10px; border-radius: 3px; }
.crm-top-navigation .vb-selected-row strong,
.crm-top-navigation .view-builder-all label > span { white-space: normal; overflow-wrap: anywhere; font-size: 12px; font-weight: 400; line-height: 1.4; }
.crm-top-navigation .view-builder-all label { padding: 7px 6px; }
@media (min-width: 901px) and (max-width: 1100px) {
  .crm-record-grid { grid-template-columns: minmax(0, 1fr) 300px; grid-template-rows: minmax(0, 1fr) auto; }
  .crm-record-data { grid-column: 1; grid-row: 1 / 3; }
  .crm-record-center { grid-column: 2; grid-row: 1; }
  .crm-record-actions { grid-column: 2; grid-row: 2; max-height: 190px; }
}
@media (max-width: 900px) {
  .crm-record-grid { display: flex; flex-direction: column; overflow: auto; gap: 10px; padding: 10px; }
  .crm-record-data, .crm-record-center, .crm-record-actions { min-height: auto; overflow: visible; flex: 0 0 auto; }
  .crm-record-actions { order: 0; }
  .crm-record-data { order: 1; }
  .crm-record-center { order: 2; }
  .crm-record-actions h3 { display: none; }
  .crm-record-action-list, .crm-top-navigation .crm-record-action-list .entity-action-strip { display: flex; gap: 7px; overflow-x: auto; }
  .crm-top-navigation .crm-record-action-list .entity-action,
  .crm-top-navigation .crm-record-action-list > .btn { flex: 0 0 auto; width: auto; min-height: 33px; padding: 7px 10px; white-space: nowrap; }
}
