/* Preserve the compact design; only contain overflow on small screens. */
.crm-requesters tr[hidden] { display: none !important; }
.crm-app .crm-copy-phone { display: inline-flex; align-items: center; border: 0; padding: 0; margin: 0; background: transparent; color: inherit; font: inherit; line-height: inherit; cursor: copy; }
.crm-copy-toast { position: fixed; bottom: max(20px, env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); z-index: 100001; max-width: calc(100vw - 32px); padding: 8px 14px; border-radius: 8px; background: #25272d; color: #fff; font: 400 12px/1.6 Estedad, sans-serif; pointer-events: none; }
.crm-copy-toast:empty { display: none; }
@media (max-width: 900px) {
    .crm-app #main_dashboard_page { padding-top: 52px; }
    .crm-app .crm-mobile-bar { position: fixed; inset: var(--crm-top) 0 auto; height: 52px; min-height: 52px; padding: 6px 12px; gap: 10px; background: #fff; }
    .crm-app .crm-mobile-bar > span { font-size: 12px; font-weight: 600; line-height: 1.4; }
    .crm-app .crm-workspace-label { display: block; margin-top: 2px; font-size: 9px; font-weight: 400; }
    .crm-app .crm-mobile-bar .crm-mobile-brand { margin-inline-start: auto; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 6px; background: var(--crm-accent); color: #fff; font: 600 17px/1 system-ui, sans-serif; }
    .crm-app.crm-menu-open { position: fixed; top: var(--crm-scroll-offset, 0px); width: 100%; overflow: hidden; }
    .crm-app #sidebar { max-width: 88vw; overscroll-behavior: contain; padding-bottom: max(12px, env(safe-area-inset-bottom)); }
    .crm-app .crm-menu-toggle { flex: 0 0 36px; width: 36px; height: 36px; min-width: 36px; min-height: 36px; padding: 0; aspect-ratio: 1; border-radius: 8px; }
    .crm-app .crm-page-toolbar .add_new_button { margin: 0; }
    .crm-app .crm-page-toolbar .add_new_button a, .crm-app .add_report_button { display: inline-flex; align-items: center; justify-content: center; min-height: 36px; padding: 6px 10px; line-height: 1.5; vertical-align: middle; }
    .crm-app .crm-copy-phone { min-height: 32px; }
    .crm-app .crm-mobile-bar > span { min-width: 0; }
    .crm-app #main_dashboard { min-width: 0; padding-bottom: max(20px, env(safe-area-inset-bottom)); }
    .crm-app .crm-table-scroll { max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }
    .crm-app .crm-page-content { overflow-wrap: anywhere; }
    .crm-app .crm-page-content img, .crm-app .crm-page-content iframe { max-width: 100%; }
    .crm-app .crm-page-content table { display: block; min-width: 0; max-width: 100%; overflow-x: auto; }
}
@media (max-width: 600px) {
    .crm-app .crm-lead-card { padding: 12px; margin-bottom: 16px; }
    .crm-app .crm-lead-card h2 { margin-bottom: 10px; font-size: 13px; }
    .crm-app .crm-lead-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 12px; }
    .crm-app .crm-lead-fields dt { font-size: 10px; margin-bottom: 2px; }
    .crm-app .crm-lead-fields dd, .crm-app .crm-lead-fields .crm-lead-empty { font-size: 12px; line-height: 1.6; }
    .crm-app .crm-lead-description { padding-top: 8px; }
    .crm-app .crm-lead-card .crm-copy-phone { min-height: 0; }
    .crm-app .crm-detail-actions { max-width: 100%; flex-wrap: wrap; }
    .crm-app .crm-page-toolbar .main_title_dashboard { overflow-wrap: anywhere; }
    .crm-app .text_content_dashboard { overflow-wrap: anywhere; }
    .crm-app .text_content_dashboard:empty { display: none; }
    .crm-app .crm-form { max-width: 100%; }
    .crm-app .crm-form .col_form { min-width: 0; }
    .crm-app .crm-form select { max-width: 100%; }
    .crm-login-page .side_right { padding: 24px 16px; }
    .crm-login-page .box_side_right { max-width: 375px; }
    .crm-login-page .row_form input:focus-visible,
    .crm-login-page .row_form button:focus-visible { outline: 2px solid #5e6ad2; outline-offset: 2px; }
}
@media (prefers-reduced-motion: reduce) {
    .crm-login-page * { transition: none !important; scroll-behavior: auto; }
}

