/* Phone workspace enhancements; public quotes keep their own layout. */
.mobile-bottom-nav,.mobile-feedback,.mobile-customer-actions {display:none}
@media(max-width:600px) {
  .crm-shell {--mobile-nav-height:calc(64px + env(safe-area-inset-bottom,0px));--mobile-actions-height:0px}
  .crm-shell .app-main {padding-bottom:calc(var(--mobile-nav-height) + var(--mobile-actions-height) + 30px);padding-left:max(12px,env(safe-area-inset-left));padding-right:max(12px,env(safe-area-inset-right))}
  .crm-shell .topbar {height:calc(68px + env(safe-area-inset-top));padding-top:env(safe-area-inset-top);padding-left:max(10px,env(safe-area-inset-left));padding-right:max(10px,env(safe-area-inset-right))}
  .crm-shell .app-main {padding-top:calc(88px + env(safe-area-inset-top))}
  .crm-shell .sidebar {height:100dvh;padding-top:max(20px,env(safe-area-inset-top));padding-bottom:max(16px,env(safe-area-inset-bottom))}
  .crm-shell .mobile-bottom-nav {position:fixed;inset:auto 0 0;z-index:22;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));height:var(--mobile-nav-height);padding:4px env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);background:#fff;border-top:1px solid var(--line);box-shadow:0 -4px 18px #1934510a}
  .mobile-bottom-nav a,.mobile-bottom-nav button {display:flex;align-items:center;justify-content:center;flex-direction:column;gap:2px;min-height:52px;border:0;border-radius:8px;background:transparent;color:var(--muted);font-family:inherit;font-size:12px;font-weight:600;line-height:1.3;cursor:pointer}
  .mobile-bottom-nav [aria-current],.mobile-bottom-nav .active {color:var(--brand-blue);background:var(--lilac)}
  .crm-shell .button,.crm-shell .button.small,.crm-shell .icon-button,.crm-shell button.check,.crm-shell .sidebar-close,.crm-shell .sidebar nav a,.crm-shell .sidebar summary,.crm-shell .account-menu>summary,.crm-shell .topbar .communication-link,.crm-shell .tabs a {min-height:48px;min-width:48px}
  .crm-shell .sidebar-close {width:48px;height:48px;top:4px;right:4px}
  .crm-shell .sidebar nav a,.crm-shell .tabs a {display:flex;align-items:center}
  .crm-shell .mobile-menu {display:none}
  .crm-shell input:not([type=checkbox]):not([type=radio]):not([type=hidden]),.crm-shell select,.crm-shell textarea,.crm-auth input {font-size:16px;min-height:48px;max-width:100%}
  .crm-shell input[type=checkbox],.crm-shell input[type=radio] {min-width:22px;min-height:22px}
  .crm-shell .global-search {height:48px}
  .crm-shell .global-search input {font-size:16px}
  .crm-shell .filter-bar {gap:10px}
  .crm-shell .filter-bar>input,.crm-shell .filter-bar>select {flex:1 1 140px;min-width:0}
  .crm-shell .mobile-action-bar {position:fixed;left:0;right:0;bottom:var(--mobile-nav-height);z-index:21;margin:0;padding:10px max(12px,env(safe-area-inset-right)) 10px max(12px,env(safe-area-inset-left));display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end;background:#fff;border-top:1px solid var(--line);box-shadow:0 -4px 18px #1934510a}
  .crm-shell .mobile-action-bar>.button {flex:1;white-space:normal;text-align:center}
  .crm-shell .mobile-action-bar>small {display:none}
  .crm-shell .mobile-feedback:not([hidden]) {display:block;position:fixed;left:12px;right:12px;bottom:calc(var(--mobile-nav-height) + var(--mobile-actions-height) + 8px);z-index:23;padding:12px 16px;border-radius:10px;background:#201f37;color:#fff;box-shadow:var(--shadow)}
  .crm-shell.mobile-editing .mobile-bottom-nav {display:none}
  .crm-shell.mobile-editing {--mobile-nav-height:0px}
  .crm-shell.mobile-editing .mobile-action-bar {position:static;box-shadow:none;margin-top:16px}
  .crm-shell.mobile-editing {--mobile-actions-height:0px!important}
  .crm-shell.sidebar-open .mobile-action-bar,.crm-shell.sidebar-open .mobile-feedback {visibility:hidden}
  .crm-shell .errorlist {padding:10px 10px 10px 28px;border-left:3px solid var(--red);background:#fff1f1;color:var(--red)}
  .crm-shell :is(input,select,textarea) {scroll-margin-top:110px;scroll-margin-bottom:100px}
  .crm-shell .customer-shortcut-hint,.crm-shell .customer-keyboard-help {display:none}
  .crm-shell table.mobile-cards {display:block;width:100%;min-width:0;border:0}
  .crm-shell .mobile-cards thead {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
  .crm-shell .mobile-cards tbody {display:grid;gap:12px}
  .crm-shell .mobile-cards tr {display:block;padding:12px;border:1px solid var(--line);border-radius:12px;background:#fff}
  .crm-shell .mobile-cards td {display:block;padding:8px 0;white-space:normal;text-align:left;overflow-wrap:anywhere;border:0}
  .crm-shell .mobile-cards td+td {border-top:1px solid #edf1f6}
  .crm-shell .mobile-cards td[data-mobile-label]:not(:first-child)::before {content:attr(data-mobile-label);display:block;font-size:12px;font-weight:600;color:var(--muted);margin-bottom:3px}
  .crm-shell .mobile-cards .customer-cell>span {min-width:0}
  .crm-shell .mobile-cards td a:not(.button) {min-height:44px;display:inline-flex;align-items:center}
  .crm-shell .mobile-card-panel {overflow:visible;background:transparent;border:0}
  .crm-shell .sales-kanban {display:grid;grid-template-columns:minmax(0,1fr);overflow:visible}
  .crm-shell .sales-column {min-width:0;width:auto}
}
