.cedro-crm {
  --crm-primary: #5472e8;
  --crm-primary-dark: #3f5bc5;
  --crm-success: #2f9d72;
  --crm-warning: #d49a36;
  --crm-danger: #d86666;
  --crm-purple: #8a6ed6;
  --crm-info: #4d91c7;
  --crm-text: #18212b;
  --crm-muted: #788391;
  --crm-border: #e6e9ed;
  --crm-surface: #ffffff;
  --crm-surface-2: #f3f5f7;
  --crm-bg: #f8f9fb;
  --crm-shadow: 0 18px 55px rgba(28, 39, 51, .10);
  color: var(--crm-text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  box-sizing: border-box;
}

.cedro-crm *, .cedro-crm *::before, .cedro-crm *::after { box-sizing: border-box; }
.cedro-crm button, .cedro-crm input, .cedro-crm select { font: inherit; }
.cedro-crm button { -webkit-tap-highlight-color: transparent; }
.cedro-crm [hidden] { display: none !important; }
html.cedro-crm-modal-open, html.cedro-crm-modal-open body { overflow: hidden; }

.crm-shell { width: min(1220px, 100%); margin: 0 auto; padding: 28px; background: var(--crm-bg); border: 1px solid var(--crm-border); border-radius: 26px; }
.crm-page-header { display: flex; justify-content: space-between; gap: 24px; align-items: center; margin-bottom: 24px; }
.crm-page-header h2 { margin: 3px 0 6px; font-size: clamp(26px, 3vw, 38px); line-height: 1.08; letter-spacing: -.035em; color: var(--crm-text); }
.crm-page-header p { margin: 0; color: var(--crm-muted); font-size: 14px; }
.crm-eyebrow, .crm-modal-kicker, .crm-panel-kicker { color: var(--crm-primary); font-size: 11px; letter-spacing: .11em; text-transform: uppercase; font-weight: 800; }

.crm-button { border: 0; min-height: 44px; padding: 0 18px; border-radius: 13px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 750; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background .18s ease, opacity .18s ease; }
.crm-button:hover { transform: translateY(-1px); }
.crm-button:disabled { cursor: wait; opacity: .7; transform: none; }
.crm-button-primary { color: #fff; background: var(--crm-primary); box-shadow: 0 10px 24px rgba(84, 114, 232, .24); }
.crm-button-primary:hover { background: var(--crm-primary-dark); }
.crm-button-secondary { color: var(--crm-text); background: #fff; border: 1px solid var(--crm-border); }
.crm-button-ghost { color: var(--crm-muted); background: transparent; }
.crm-button-icon { font-size: 18px; line-height: 1; }
.crm-spinner { width: 15px; height: 15px; border: 2px solid rgba(255,255,255,.38); border-top-color: currentColor; border-radius: 999px; animation: crm-spin .7s linear infinite; }
.crm-button-secondary .crm-spinner { border-color: rgba(24,33,43,.18); border-top-color: currentColor; }
@keyframes crm-spin { to { transform: rotate(360deg); } }

.crm-stat-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.crm-stat-card { min-height: 112px; padding: 15px; background: #fff; border: 1px solid var(--crm-border); border-radius: 18px; display: flex; flex-direction: column; justify-content: flex-end; position: relative; overflow: hidden; }
.crm-stat-card::before { content: ""; width: 64px; height: 64px; border-radius: 999px; position: absolute; right: -20px; top: -20px; background: currentColor; opacity: .08; }
.crm-stat-card span { color: var(--crm-muted); font-size: 11px; margin-bottom: 5px; }
.crm-stat-card strong { font-size: clamp(16px, 1.45vw, 22px); line-height: 1.1; letter-spacing: -.025em; color: var(--crm-text); overflow-wrap: anywhere; }
.crm-stat-icon { position: absolute; top: 15px; left: 16px; width: 31px; height: 31px; display: grid; place-items: center; border-radius: 10px; background: currentColor; color: inherit; font-size: 12px; font-weight: 850; }
.crm-stat-icon::first-letter { color: #fff; }
.crm-stat-neutral { color: #66717e; }.crm-stat-success { color: var(--crm-success); }.crm-stat-warning { color: var(--crm-warning); }.crm-stat-danger { color: var(--crm-danger); }.crm-stat-info { color: var(--crm-info); }.crm-stat-purple { color: var(--crm-purple); }
.crm-stat-card .crm-stat-icon { color: #fff; }
.crm-stat-neutral .crm-stat-icon { background: #66717e; }.crm-stat-success .crm-stat-icon { background: var(--crm-success); }.crm-stat-warning .crm-stat-icon { background: var(--crm-warning); }.crm-stat-danger .crm-stat-icon { background: var(--crm-danger); }.crm-stat-info .crm-stat-icon { background: var(--crm-info); }.crm-stat-purple .crm-stat-icon { background: var(--crm-purple); }

.crm-skeleton-card span, .crm-skeleton-card strong, .crm-loading-line { display: block; border-radius: 7px; background: linear-gradient(90deg, #eef0f3 25%, #f7f8fa 50%, #eef0f3 75%); background-size: 200% 100%; animation: crm-shimmer 1.4s infinite; }
.crm-skeleton-card span { width: 66%; height: 10px; }.crm-skeleton-card strong { width: 80%; height: 25px; }.crm-loading-line { width: 100%; height: 18px; }
@keyframes crm-shimmer { to { background-position: -200% 0; } }

.crm-chart-grid { display: grid; grid-template-columns: .86fr 1.14fr; gap: 18px; margin-bottom: 18px; }
.crm-panel { background: #fff; border: 1px solid var(--crm-border); border-radius: 20px; padding: 21px; }
.crm-panel-heading { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-bottom: 8px; }
.crm-panel-heading h3 { margin: 3px 0 0; font-size: 18px; letter-spacing: -.02em; color: var(--crm-text); }
.crm-chart-wrap { width: 100%; height: 280px; }
.crm-chart-wrap canvas { display: block; width: 100%; height: 100%; }
.crm-chart-legend { display: flex; flex-wrap: wrap; gap: 9px 16px; margin-top: 10px; color: var(--crm-muted); font-size: 12px; }
.crm-chart-legend span { display: inline-flex; align-items: center; gap: 7px; }.crm-chart-legend b { color: var(--crm-text); }
.crm-legend-dot { display: inline-block; width: 9px; height: 9px; border-radius: 999px; background: var(--legend, var(--crm-primary)); }.crm-dot-primary { background: var(--crm-primary); }.crm-dot-success { background: var(--crm-success); }

.crm-table-wrap { width: 100%; overflow-x: auto; }
.crm-table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 860px; }
.crm-table th { color: var(--crm-muted); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--crm-border); }
.crm-table td { padding: 14px 10px; border-bottom: 1px solid var(--crm-border); vertical-align: middle; color: var(--crm-text); }
.crm-table tbody tr:last-child td { border-bottom: 0; }.crm-table td small { display: block; margin-top: 2px; color: var(--crm-muted); }.crm-table-products { max-width: 220px; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }
.crm-status { display: inline-flex; border-radius: 999px; padding: 5px 9px; font-size: 11px; font-weight: 750; white-space: nowrap; }.crm-status-success { background: rgba(47,157,114,.11); color: #237d5a; }.crm-status-warning { background: rgba(212,154,54,.12); color: #9b6c1e; }.crm-status-danger { background: rgba(216,102,102,.11); color: #b34e4e; }.crm-table-empty { padding: 26px; text-align: center; color: var(--crm-muted); }

.crm-agent-welcome { min-height: 300px; display: grid; grid-template-columns: 1.2fr .8fr; align-items: center; gap: 30px; padding: 38px; border-radius: 22px; background: #fff; border: 1px solid var(--crm-border); overflow: hidden; }
.crm-welcome-copy h3 { margin: 12px 0 10px; max-width: 570px; font-size: clamp(27px, 4vw, 47px); line-height: 1.02; letter-spacing: -.048em; }
.crm-welcome-copy p { max-width: 560px; margin: 0; color: var(--crm-muted); }
.crm-welcome-badge { display: inline-flex; padding: 6px 10px; border-radius: 999px; color: var(--crm-primary); background: rgba(84,114,232,.1); font-size: 11px; font-weight: 850; letter-spacing: .12em; }
.crm-welcome-visual { justify-self: center; width: 220px; height: 220px; position: relative; display: grid; place-items: center; }
.crm-welcome-visual > span { width: 92px; height: 92px; border-radius: 30px; display: grid; place-items: center; color: #fff; background: var(--crm-primary); font-size: 43px; box-shadow: 0 28px 55px rgba(84,114,232,.25); transform: rotate(-5deg); }
.crm-orbit { position: absolute; border: 1px solid var(--crm-border); border-radius: 999px; }.crm-orbit-one { width: 178px; height: 178px; }.crm-orbit-two { width: 220px; height: 220px; border-style: dashed; animation: crm-orbit 18s linear infinite; }
@keyframes crm-orbit { to { transform: rotate(360deg); } }

.crm-modal-backdrop { position: fixed; inset: 0; z-index: 99990; padding: 22px; background: rgba(20, 27, 36, .42); backdrop-filter: blur(8px); display: grid; place-items: center; opacity: 0; transition: opacity .18s ease; overflow-y: auto; }
.crm-modal-layer-2 { z-index: 99991; background: rgba(20,27,36,.5); }.crm-modal-layer-3 { z-index: 99992; background: rgba(20,27,36,.56); }
.crm-modal-backdrop.is-open { opacity: 1; }
.crm-modal { width: min(560px, 100%); max-height: calc(100vh - 44px); display: flex; flex-direction: column; background: #fff; border: 1px solid rgba(255,255,255,.65); border-radius: 22px; box-shadow: var(--crm-shadow); transform: translateY(16px) scale(.985); opacity: 0; transition: transform .2s ease, opacity .2s ease; }
.crm-modal-backdrop.is-open .crm-modal { transform: translateY(0) scale(1); opacity: 1; }.crm-modal-large { width: min(820px, 100%); }.crm-modal-small { width: min(470px, 100%); }
.crm-modal-header, .crm-modal-footer { flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px 22px; }
.crm-modal-header { border-bottom: 1px solid var(--crm-border); }.crm-modal-footer { border-top: 1px solid var(--crm-border); justify-content: flex-end; }
.crm-modal-header h3 { margin: 2px 0 0; font-size: 22px; letter-spacing: -.025em; color: var(--crm-text); }
.crm-icon-button { width: 38px; height: 38px; border: 0; border-radius: 12px; color: var(--crm-muted); background: var(--crm-surface-2); font-size: 25px; line-height: 1; cursor: pointer; }
.crm-modal-body { padding: 22px; overflow-y: auto; overscroll-behavior: contain; }

.crm-form-grid { display: grid; gap: 15px; }.crm-form-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.crm-field { display: grid; gap: 7px; margin: 0; }.crm-field > span, .crm-selector-label > span, .crm-fieldset legend { color: var(--crm-text); font-size: 13px; font-weight: 750; }
.crm-field input, .crm-product-selector > input { width: 100%; height: 46px; margin: 0; border: 1px solid var(--crm-border); border-radius: 13px; outline: 0; color: var(--crm-text); background: #fff; padding: 0 13px; box-shadow: none; transition: border-color .18s ease, box-shadow .18s ease; }
.crm-field input:focus, .crm-product-selector > input:focus { border-color: rgba(84,114,232,.72); box-shadow: 0 0 0 4px rgba(84,114,232,.10); }
.crm-field input::placeholder, .crm-product-selector > input::placeholder { color: #a1a8b1; }
.crm-fieldset { border: 0; padding: 0; margin: 20px 0 0; }.crm-fieldset legend { margin-bottom: 10px; }
.crm-conclusion-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.crm-choice-card { min-height: 94px; border: 1px solid var(--crm-border); border-radius: 16px; padding: 14px; display: flex; align-items: center; gap: 10px; cursor: pointer; background: #fff; transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; position: relative; }
.crm-choice-card:hover { transform: translateY(-1px); }.crm-choice-card input { position: absolute; opacity: 0; pointer-events: none; }.crm-choice-card:has(input:checked) { border-color: currentColor; box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 10%, transparent); }
.crm-choice-success { color: var(--crm-success); }.crm-choice-warning { color: var(--crm-warning); }.crm-choice-danger { color: var(--crm-danger); }
.crm-choice-card > span:last-child { display: grid; gap: 2px; }.crm-choice-card strong { color: var(--crm-text); font-size: 13px; }.crm-choice-card small { color: var(--crm-muted); font-size: 10px; }.crm-choice-icon { flex: 0 0 32px; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px; background: currentColor; color: #fff; font-weight: 900; }
.crm-reveal { opacity: 0; transform: translateY(-5px); transition: opacity .18s ease, transform .18s ease; }.crm-reveal.is-visible { opacity: 1; transform: translateY(0); }
.crm-divider { height: 1px; margin: 22px 0; background: var(--crm-border); }

.crm-selector-block { margin-top: 3px; }.crm-selector-label { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 7px; }.crm-selector-label small { color: var(--crm-muted); font-size: 11px; }
.crm-product-selector { position: relative; border: 1px solid var(--crm-border); border-radius: 14px; background: #fff; padding: 7px; }
.crm-product-selector > input { border: 0; height: 38px; padding: 0 7px; box-shadow: none !important; }.crm-selected-products { display: flex; flex-wrap: wrap; gap: 6px; padding: 1px 1px 5px; }
.crm-product-chip { display: inline-flex; align-items: center; gap: 5px; min-height: 30px; padding: 0 4px 0 10px; border-radius: 9px; color: var(--crm-primary-dark); background: rgba(84,114,232,.10); font-size: 12px; font-weight: 700; }.crm-product-chip button { width: 23px; height: 23px; border: 0; border-radius: 7px; color: inherit; background: rgba(84,114,232,.10); cursor: pointer; }
.crm-product-dropdown { position: absolute; z-index: 20; top: calc(100% + 7px); left: 0; right: 0; max-height: 280px; overflow-y: auto; padding: 7px; border: 1px solid var(--crm-border); border-radius: 15px; background: #fff; box-shadow: 0 16px 42px rgba(28,39,51,.14); }
.crm-product-option { width: 100%; border: 0; padding: 9px; border-radius: 11px; display: grid; grid-template-columns: 38px minmax(0, 1fr) 22px; align-items: center; gap: 10px; text-align: left; color: var(--crm-text); background: transparent; cursor: pointer; }.crm-product-option:hover, .crm-product-option.is-selected { background: var(--crm-surface-2); }.crm-product-option > span:nth-child(2) { min-width: 0; display: grid; }.crm-product-option strong { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 12px; }.crm-product-option small { color: var(--crm-muted); font-size: 10px; }.crm-product-option i { font-style: normal; color: var(--crm-primary); font-weight: 850; text-align: center; }
.crm-product-thumb { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; overflow: hidden; color: var(--crm-muted); background: var(--crm-surface-2); }.crm-product-thumb img { width: 100%; height: 100%; object-fit: cover; }.crm-product-add { color: #fff; background: var(--crm-primary); font-size: 19px; }.crm-product-create { border-bottom: 1px solid var(--crm-border); border-radius: 8px; margin-bottom: 5px; }.crm-dropdown-empty { padding: 16px; text-align: center; color: var(--crm-muted); font-size: 12px; }

.crm-benefit-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 20px; padding: 15px 16px; border-radius: 15px; background: var(--crm-surface-2); }.crm-benefit-row > div { display: grid; gap: 2px; }.crm-benefit-row strong { font-size: 13px; }.crm-benefit-row small { color: var(--crm-muted); font-size: 11px; }
.crm-switch { position: relative; flex: 0 0 auto; width: 46px; height: 26px; }.crm-switch input { position: absolute; opacity: 0; }.crm-switch span { position: absolute; inset: 0; border-radius: 999px; background: #c9ced5; cursor: pointer; transition: background .18s ease; }.crm-switch span::after { content: ""; position: absolute; width: 20px; height: 20px; left: 3px; top: 3px; border-radius: 999px; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.15); transition: transform .18s ease; }.crm-switch input:checked + span { background: var(--crm-primary); }.crm-switch input:checked + span::after { transform: translateX(20px); }
.crm-badge-group, .crm-image-source-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }.crm-select-badge { min-height: 36px; padding: 0 12px; border: 1px solid var(--crm-border); border-radius: 999px; color: var(--crm-muted); background: #fff; font-size: 11px; font-weight: 750; cursor: pointer; transition: color .18s ease, border-color .18s ease, background .18s ease; }.crm-select-badge.is-active { color: var(--crm-primary-dark); border-color: rgba(84,114,232,.34); background: rgba(84,114,232,.10); }
.crm-input-suffix { display: grid; grid-template-columns: minmax(0, 1fr) 44px; border: 1px solid var(--crm-border); border-radius: 13px; overflow: hidden; }.crm-input-suffix input { border: 0; border-radius: 0; box-shadow: none !important; }.crm-input-suffix b { display: grid; place-items: center; color: var(--crm-muted); background: var(--crm-surface-2); font-size: 13px; }

.crm-product-form-layout { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 18px; align-items: stretch; }.crm-image-picker { min-height: 150px; border: 1px dashed #cbd1d8; border-radius: 17px; background: var(--crm-surface-2); overflow: hidden; padding: 0; cursor: pointer; }.crm-image-picker img { width: 100%; height: 100%; min-height: 150px; object-fit: cover; }.crm-image-picker > span { height: 100%; min-height: 150px; display: grid; place-items: center; align-content: center; gap: 6px; color: var(--crm-muted); }.crm-image-picker b { font-size: 28px; font-weight: 400; }.crm-image-picker small { font-size: 10px; }.crm-product-fields { display: grid; align-content: center; gap: 14px; }
.crm-upload-box { min-height: 122px; border: 1px dashed #cbd1d8; border-radius: 16px; display: grid; place-items: center; align-content: center; text-align: center; gap: 4px; color: var(--crm-primary); background: var(--crm-surface-2); cursor: pointer; }.crm-upload-box input { position: absolute; opacity: 0; pointer-events: none; }.crm-upload-box span { font-weight: 750; font-size: 13px; }.crm-upload-box small { color: var(--crm-muted); font-size: 10px; }

.crm-toast-region { position: fixed; z-index: 100020; right: 20px; bottom: 20px; display: grid; gap: 10px; pointer-events: none; }.crm-toast { width: min(360px, calc(100vw - 40px)); display: grid; grid-template-columns: 30px 1fr; align-items: center; gap: 10px; padding: 13px 15px; border: 1px solid var(--crm-border); border-radius: 14px; color: var(--crm-text); background: #fff; box-shadow: 0 18px 48px rgba(28,39,51,.16); opacity: 0; transform: translateY(10px); transition: opacity .22s ease, transform .22s ease; }.crm-toast.is-visible { opacity: 1; transform: translateY(0); }.crm-toast > span { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 9px; color: #fff; background: var(--crm-success); font-weight: 900; }.crm-toast-error > span { background: var(--crm-danger); }.crm-toast p { margin: 0; font-size: 12px; }
.crm-empty-state { min-height: 170px; border: 1px solid var(--crm-border); border-radius: 20px; background: var(--crm-bg); display: grid; place-items: center; align-content: center; gap: 10px; padding: 25px; text-align: center; color: var(--crm-text); }.crm-empty-icon { font-size: 28px; }

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

@media (max-width: 820px) {
  .crm-shell { padding: 20px; border-radius: 20px; }
  .crm-chart-grid { grid-template-columns: 1fr; }
  .crm-conclusion-grid { grid-template-columns: 1fr; }
  .crm-choice-card { min-height: 72px; }
  .crm-agent-welcome { grid-template-columns: 1fr; padding: 28px; }
  .crm-welcome-visual { display: none; }
}

@media (max-width: 620px) {
  .crm-shell { padding: 16px; }
  .crm-page-header { align-items: stretch; flex-direction: column; }
  .crm-page-header .crm-button { width: 100%; }
  .crm-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .crm-stat-card { min-height: 104px; }
  .crm-form-grid-2, .crm-product-form-layout { grid-template-columns: 1fr; }
  .crm-product-form-layout { gap: 14px; }
  .crm-image-picker, .crm-image-picker img, .crm-image-picker > span { min-height: 126px; }
  .crm-modal-backdrop { padding: 8px; align-items: end; }
  .crm-modal { width: 100%; max-height: calc(100vh - 16px); border-radius: 19px 19px 14px 14px; }
  .crm-modal-header, .crm-modal-footer { padding: 16px; }.crm-modal-body { padding: 17px 16px; }
  .crm-modal-footer .crm-button { flex: 1; padding-left: 10px; padding-right: 10px; }
  .crm-benefit-row { align-items: flex-start; }
  .crm-selector-label { align-items: flex-start; flex-direction: column; gap: 1px; }
  .crm-chart-wrap { height: 250px; }
  .crm-toast-region { left: 14px; right: 14px; bottom: 14px; }.crm-toast { width: 100%; }
}

@media (max-width: 390px) {
  .crm-stat-grid { grid-template-columns: 1fr; }
  .crm-agent-welcome { padding: 22px; }
  .crm-badge-group, .crm-image-source-tabs { display: grid; grid-template-columns: 1fr; }
  .crm-select-badge { width: 100%; }
}

/* Cedro CRM 1.1 — proteção visual contra estilos do tema e novos painéis do agente */
.cedro-crm button,
.cedro-crm [type="button"],
.cedro-crm [type="submit"] {
  appearance: none;
  -webkit-appearance: none;
  font-family: inherit;
  text-transform: none;
  text-decoration: none;
  letter-spacing: normal;
  box-shadow: none;
}
.cedro-crm .crm-button {
  min-height: 44px !important;
  padding: 0 18px !important;
  border: 1px solid transparent !important;
  border-radius: 13px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  font-size: 13px !important;
  line-height: 1 !important;
  font-weight: 750 !important;
  cursor: pointer !important;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease, opacity .18s ease !important;
}
.cedro-crm .crm-button-primary {
  color: #fff !important;
  background: var(--crm-primary) !important;
  border-color: var(--crm-primary) !important;
  box-shadow: 0 10px 24px rgba(84, 114, 232, .24) !important;
}
.cedro-crm .crm-button-primary:hover { color: #fff !important; background: var(--crm-primary-dark) !important; border-color: var(--crm-primary-dark) !important; }
.cedro-crm .crm-button-secondary {
  color: var(--crm-text) !important;
  background: #fff !important;
  border-color: var(--crm-border) !important;
  box-shadow: 0 7px 18px rgba(28, 39, 51, .05) !important;
}
.cedro-crm .crm-button-secondary:hover { background: var(--crm-surface-2) !important; border-color: #d9dee5 !important; }
.cedro-crm .crm-button-ghost { color: var(--crm-muted) !important; background: transparent !important; border-color: transparent !important; }
.cedro-crm .crm-button-ghost:hover { color: var(--crm-text) !important; background: var(--crm-surface-2) !important; }
.cedro-crm .crm-icon-button,
.cedro-crm .crm-select-badge,
.cedro-crm .crm-product-option,
.cedro-crm .crm-image-picker,
.cedro-crm .crm-profile-avatar-button,
.cedro-crm .crm-tab-button,
.cedro-crm .crm-product-chip button {
  margin: 0;
  text-decoration: none !important;
}
.cedro-crm .crm-icon-button { color: var(--crm-muted) !important; background: var(--crm-surface-2) !important; border: 1px solid transparent !important; }
.cedro-crm .crm-icon-button:hover { color: var(--crm-text) !important; border-color: var(--crm-border) !important; background: #fff !important; }
.cedro-crm .crm-select-badge { color: var(--crm-muted) !important; background: #fff !important; border: 1px solid var(--crm-border) !important; }
.cedro-crm .crm-select-badge:hover { color: var(--crm-primary-dark) !important; border-color: rgba(84,114,232,.32) !important; }
.cedro-crm .crm-select-badge.is-active { color: var(--crm-primary-dark) !important; border-color: rgba(84,114,232,.34) !important; background: rgba(84,114,232,.10) !important; }

.crm-agent-topbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 10px 12px 10px 10px; margin-bottom: 28px; border: 1px solid var(--crm-border); border-radius: 18px; background: rgba(255,255,255,.92); box-shadow: 0 10px 30px rgba(28,39,51,.045); }
.crm-user-summary { min-width: 0; display: flex; align-items: center; gap: 11px; }
.crm-user-avatar { flex: 0 0 44px; width: 44px; height: 44px; overflow: hidden; border-radius: 999px; background: var(--crm-surface-2); box-shadow: inset 0 0 0 1px var(--crm-border); }
.crm-user-avatar img { width: 100%; height: 100%; display: block; object-fit: cover; }
.crm-user-summary-copy { min-width: 0; display: grid; gap: 1px; }
.crm-user-summary-copy small { color: var(--crm-muted); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.crm-user-summary-copy strong { max-width: 260px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--crm-text); font-size: 13px; }
.crm-agent-tabs { display: flex; align-items: center; gap: 5px; padding: 4px; border-radius: 13px; background: var(--crm-surface-2); }
.cedro-crm .crm-tab-button { min-height: 38px; padding: 0 13px; border: 1px solid transparent !important; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; color: var(--crm-muted) !important; background: transparent !important; font-size: 12px; line-height: 1; font-weight: 750; cursor: pointer; transition: color .18s ease, background .18s ease, box-shadow .18s ease, transform .18s ease; }
.cedro-crm .crm-tab-button:hover { color: var(--crm-text) !important; transform: translateY(-1px); }
.cedro-crm .crm-tab-button.is-active { color: var(--crm-primary-dark) !important; background: #fff !important; border-color: var(--crm-border) !important; box-shadow: 0 6px 16px rgba(28,39,51,.07) !important; }
.crm-tab-button span { font-size: 15px; line-height: 1; }
.crm-agent-panel { animation: crm-panel-in .24s ease both; }
@keyframes crm-panel-in { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }

.crm-performance-stat-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.crm-performance-chart-grid { grid-template-columns: 1.15fr .85fr; margin-bottom: 0; }
.crm-interactive-chart-panel .crm-chart-wrap { position: relative; }
.crm-chart-hint { color: var(--crm-muted); font-size: 10px; white-space: nowrap; }
.crm-chart-tooltip { position: absolute; z-index: 8; width: 178px; padding: 10px 11px; border: 1px solid rgba(230,233,237,.95); border-radius: 12px; color: var(--crm-text); background: rgba(255,255,255,.97); box-shadow: 0 15px 35px rgba(28,39,51,.14); pointer-events: none; backdrop-filter: blur(10px); }
.crm-chart-tooltip strong { display: block; margin-bottom: 5px; font-size: 12px; }
.crm-chart-tooltip span { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--crm-muted); font-size: 10px; }
.crm-chart-tooltip b { color: var(--crm-text); font-weight: 800; }

.crm-profile-card { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 30px; padding: 32px; border: 1px solid var(--crm-border); border-radius: 22px; background: #fff; }
.crm-profile-avatar-area { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 22px; border-radius: 18px; background: var(--crm-surface-2); }
.cedro-crm .crm-profile-avatar-button { width: 132px; height: 132px; padding: 0; position: relative; overflow: visible; border: 5px solid #fff !important; border-radius: 999px; color: #fff !important; background: var(--crm-surface-2) !important; cursor: pointer; box-shadow: 0 16px 38px rgba(28,39,51,.13) !important; transition: transform .2s ease, box-shadow .2s ease; }
.cedro-crm .crm-profile-avatar-button:hover { transform: translateY(-2px); box-shadow: 0 20px 44px rgba(28,39,51,.17) !important; }
.crm-profile-avatar-button img { width: 100%; height: 100%; display: block; border-radius: 999px; object-fit: cover; }
.crm-avatar-edit-icon { position: absolute; right: 3px; bottom: 5px; width: 36px; height: 36px; display: grid; place-items: center; border: 4px solid #fff; border-radius: 999px; color: #fff; background: var(--crm-primary); box-shadow: 0 7px 18px rgba(84,114,232,.26); font-size: 14px; }
.crm-profile-avatar-area > strong { margin-top: 17px; font-size: 14px; }
.crm-profile-avatar-area > small { max-width: 190px; margin-top: 4px; color: var(--crm-muted); font-size: 11px; }
.crm-profile-fields { display: grid; align-content: center; gap: 17px; }
.crm-profile-fields .crm-field input[readonly] { color: var(--crm-muted); background: var(--crm-surface-2); cursor: not-allowed; }
.crm-profile-note { margin: -3px 0 0; color: var(--crm-muted); font-size: 11px; }
.crm-profile-actions { display: flex; justify-content: flex-start; padding-top: 4px; }

@media (max-width: 1100px) {
  .crm-performance-stat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  .crm-agent-topbar { align-items: stretch; flex-direction: column; padding: 12px; }
  .crm-agent-tabs { width: 100%; overflow-x: auto; }
  .cedro-crm .crm-tab-button { flex: 1 0 auto; }
  .crm-performance-chart-grid { grid-template-columns: 1fr; }
  .crm-profile-card { grid-template-columns: 1fr; }
  .crm-profile-avatar-area { min-height: 280px; }
}

@media (max-width: 620px) {
  .crm-agent-topbar { margin-bottom: 20px; }
  .crm-user-summary-copy strong { max-width: 210px; }
  .crm-agent-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: visible; }
  .cedro-crm .crm-tab-button { min-width: 0; padding: 0 7px; font-size: 10px; }
  .crm-tab-button span { display: none; }
  .crm-performance-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .crm-profile-card { padding: 18px; gap: 20px; }
  .crm-profile-avatar-area { min-height: 240px; padding: 20px; }
  .cedro-crm .crm-profile-avatar-button { width: 118px; height: 118px; }
  .crm-profile-actions .crm-button { width: 100%; }
  .crm-chart-hint { display: none; }
}

@media (max-width: 390px) {
  .crm-performance-stat-grid { grid-template-columns: 1fr; }
  .crm-agent-tabs { grid-template-columns: 1fr; }
  .cedro-crm .crm-tab-button { min-height: 36px; }
}

/* Reforço dos controles que também são elementos <button>. */
.cedro-crm .crm-product-option {
  width: 100% !important;
  min-height: 56px !important;
  margin: 0 !important;
  padding: 9px !important;
  border: 1px solid transparent !important;
  border-radius: 11px !important;
  display: grid !important;
  grid-template-columns: 38px minmax(0, 1fr) 22px !important;
  align-items: center !important;
  gap: 10px !important;
  text-align: left !important;
  color: var(--crm-text) !important;
  background: transparent !important;
  font-size: 12px !important;
  line-height: 1.35 !important;
  cursor: pointer !important;
}
.cedro-crm .crm-product-option:hover,
.cedro-crm .crm-product-option.is-selected { color: var(--crm-text) !important; background: var(--crm-surface-2) !important; border-color: var(--crm-border) !important; }
.cedro-crm .crm-product-create { border-bottom-color: var(--crm-border) !important; border-radius: 8px !important; margin-bottom: 5px !important; }
.cedro-crm .crm-image-picker { color: var(--crm-muted) !important; background: var(--crm-surface-2) !important; border: 1px dashed #cbd1d8 !important; border-radius: 17px !important; box-shadow: none !important; }
.cedro-crm .crm-image-picker:hover { color: var(--crm-primary) !important; border-color: rgba(84,114,232,.55) !important; background: rgba(84,114,232,.045) !important; }
.cedro-crm .crm-product-chip button { color: var(--crm-primary-dark) !important; background: rgba(84,114,232,.10) !important; border: 0 !important; padding: 0 !important; display: grid !important; place-items: center !important; font-size: 16px !important; line-height: 1 !important; }
.cedro-crm .crm-product-chip button:hover { background: rgba(84,114,232,.18) !important; }
.cedro-crm button:focus-visible { outline: 3px solid rgba(84,114,232,.22) !important; outline-offset: 2px !important; }

/* Cedro CRM 1.2.0 — administração, rankings e catálogo */
.crm-product-dropdown {
  position: static !important;
  z-index: auto !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  margin-top: 7px;
  max-height: 220px;
  overflow-y: auto;
  box-shadow: inset 0 0 0 1px rgba(230, 233, 237, .65), 0 8px 22px rgba(28, 39, 51, .05);
}
.crm-product-selector { overflow: visible; }
.crm-dot-purple { background: var(--crm-purple); }

.crm-admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 12px 10px 10px;
  margin-bottom: 28px;
  border: 1px solid var(--crm-border);
  border-radius: 18px;
  background: rgba(255,255,255,.92);
  box-shadow: 0 10px 30px rgba(28,39,51,.045);
}
.crm-admin-brand { min-width: 0; display: flex; align-items: center; gap: 11px; }
.crm-admin-brand > div { min-width: 0; display: grid; gap: 1px; }
.crm-admin-brand strong { color: var(--crm-text); font-size: 13px; }
.crm-admin-brand small { color: var(--crm-muted); font-size: 10px; }
.crm-admin-tabs { display: flex; align-items: center; gap: 5px; padding: 4px; border-radius: 13px; background: var(--crm-surface-2); }
.crm-admin-panel { animation: crm-panel-in .24s ease both; }

.crm-ranking-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.crm-ranking-scroll { max-height: 430px; overflow: auto; }
.crm-ranking-table { min-width: 610px; }
.crm-ranking-table th:first-child,
.crm-ranking-table td:first-child { width: 52px; text-align: center; }
.crm-ranking-person { min-width: 0; display: inline-flex; align-items: center; gap: 10px; }
.crm-ranking-person > span:last-child { min-width: 0; display: grid; gap: 1px; }
.crm-ranking-person strong { max-width: 230px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crm-ranking-avatar { flex: 0 0 38px; width: 38px; height: 38px; display: grid; place-items: center; overflow: hidden; border-radius: 999px; color: var(--crm-muted); background: var(--crm-surface-2); box-shadow: inset 0 0 0 1px var(--crm-border); }
.crm-ranking-avatar img { width: 100%; height: 100%; display: block; object-fit: cover; }
.crm-ranking-product-thumb { border-radius: 10px; }
.crm-rank-medal,
.crm-rank-number { width: 29px; height: 29px; display: inline-grid; place-items: center; border-radius: 999px; font-size: 11px; font-weight: 850; }
.crm-rank-number { color: var(--crm-muted); background: var(--crm-surface-2); }
.crm-rank-gold { color: #805c12; background: rgba(224, 174, 64, .22); }
.crm-rank-silver { color: #66717e; background: rgba(131, 143, 158, .18); }
.crm-rank-bronze { color: #8c5e3d; background: rgba(174, 112, 70, .18); }

.crm-products-panel { padding: 22px; }
.crm-products-toolbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.crm-products-search { width: min(430px, 100%); }
.crm-products-count { flex: 0 0 auto; padding: 8px 11px; border-radius: 999px; color: var(--crm-muted); background: var(--crm-surface-2); font-size: 11px; font-weight: 750; }
.crm-admin-products-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.cedro-crm .crm-admin-product-card {
  width: 100% !important;
  min-height: 118px !important;
  margin: 0 !important;
  padding: 12px !important;
  border: 1px solid var(--crm-border) !important;
  border-radius: 17px !important;
  display: grid !important;
  grid-template-columns: 76px minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 13px !important;
  text-align: left !important;
  color: var(--crm-text) !important;
  background: #fff !important;
  box-shadow: 0 8px 24px rgba(28,39,51,.035) !important;
  cursor: pointer !important;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease !important;
}
.cedro-crm .crm-admin-product-card:hover {
  transform: translateY(-2px) !important;
  border-color: rgba(84,114,232,.32) !important;
  box-shadow: 0 15px 34px rgba(28,39,51,.08) !important;
}
.crm-admin-product-image { width: 76px; height: 76px; display: grid; place-items: center; overflow: hidden; border-radius: 14px; color: var(--crm-muted); background: var(--crm-surface-2); }
.crm-admin-product-image img { width: 100%; height: 100%; display: block; object-fit: cover; }
.crm-admin-product-copy { min-width: 0; display: grid; gap: 3px; }
.crm-admin-product-copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.crm-admin-product-copy b { color: var(--crm-primary-dark); font-size: 14px; }
.crm-admin-product-copy small { color: var(--crm-muted); font-size: 9px; line-height: 1.35; }
.crm-admin-product-card > i { color: var(--crm-primary); font-size: 10px; font-style: normal; font-weight: 800; white-space: nowrap; }
.crm-products-empty { grid-column: 1 / -1; min-height: 180px; display: grid; place-items: center; padding: 28px; border: 1px dashed var(--crm-border); border-radius: 17px; color: var(--crm-muted); background: var(--crm-surface-2); text-align: center; font-size: 12px; }

.crm-upload-box-preview { position: relative; min-height: 160px; padding: 14px; grid-template-columns: 84px minmax(0, 1fr); justify-content: stretch; text-align: left; overflow: hidden; }
.crm-upload-box-preview img { width: 84px; height: 84px; display: block; object-fit: cover; border-radius: 14px; box-shadow: 0 8px 22px rgba(28,39,51,.12); }
.crm-upload-box-preview > span { min-width: 0; display: grid; gap: 4px; align-content: center; }
.crm-upload-box-preview > span b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--crm-primary-dark); font-size: 12px; }
.crm-upload-box-preview > span small { color: var(--crm-muted); font-size: 10px; }

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

@media (max-width: 900px) {
  .crm-ranking-grid { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .crm-admin-topbar { align-items: stretch; flex-direction: column; padding: 12px; }
  .crm-admin-tabs { width: 100%; overflow-x: auto; }
  .crm-admin-tabs .crm-tab-button { flex: 1 0 auto; }
}

@media (max-width: 620px) {
  .crm-products-toolbar { align-items: stretch; flex-direction: column; }
  .crm-products-count { align-self: flex-start; }
  .crm-admin-products-grid { grid-template-columns: 1fr; }
  .cedro-crm .crm-admin-product-card { grid-template-columns: 66px minmax(0, 1fr) !important; }
  .crm-admin-product-image { width: 66px; height: 66px; }
  .crm-admin-product-card > i { grid-column: 2; }
  .crm-upload-box-preview { grid-template-columns: 70px minmax(0, 1fr); min-height: 132px; }
  .crm-upload-box-preview img { width: 70px; height: 70px; }
  .crm-admin-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: visible; }
}


/* Cedro CRM 1.3.0 — gestão de acessos e hierarquia CRM */
.cedro-crm-access-wrap { margin: 20px 20px 0 0; }
.cedro-crm-access-admin { width: 100%; }
.crm-access-admin-shell { width: min(1360px, 100%); padding: 28px; border: 1px solid var(--crm-border); border-radius: 24px; background: var(--crm-bg); }
.crm-access-admin-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 22px; }
.crm-access-admin-header h1 { margin: 4px 0 7px; color: var(--crm-text); font-size: clamp(27px, 3vw, 39px); line-height: 1.05; letter-spacing: -.04em; }
.crm-access-admin-header p { max-width: 760px; margin: 0; color: var(--crm-muted); font-size: 13px; }
.crm-owner-lock { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 13px; border: 1px solid rgba(138,110,214,.2); border-radius: 999px; color: #6c54b7; background: rgba(138,110,214,.1); font-size: 11px; font-weight: 800; }
.crm-access-notice { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; padding: 12px 14px; border: 1px solid var(--crm-border); border-radius: 14px; background: #fff; box-shadow: 0 7px 20px rgba(28,39,51,.04); }
.crm-access-notice strong { flex: 0 0 auto; font-size: 12px; }
.crm-access-notice span { color: var(--crm-muted); font-size: 12px; }
.crm-access-notice-success { border-color: rgba(47,157,114,.25); }
.crm-access-notice-success strong { color: var(--crm-success); }
.crm-access-notice-error { border-color: rgba(216,102,102,.25); }
.crm-access-notice-error strong { color: var(--crm-danger); }
.crm-access-stat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.crm-access-main-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 18px; margin-bottom: 18px; }
.crm-access-main-grid .crm-panel h2,
.crm-access-users-panel .crm-panel-heading h2 { margin: 3px 0 0; color: var(--crm-text); font-size: 18px; letter-spacing: -.025em; }
.crm-access-panel-copy { margin: 0 0 17px; color: var(--crm-muted); font-size: 12px; }
.crm-access-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.crm-access-form .crm-button { grid-column: 1 / -1; justify-self: flex-start; margin-top: 2px; }
.cedro-crm .crm-field select,
.cedro-crm .crm-access-user-role-form select { width: 100%; height: 46px; margin: 0; border: 1px solid var(--crm-border); border-radius: 13px; outline: 0; color: var(--crm-text); background: #fff; padding: 0 38px 0 13px; box-shadow: none; transition: border-color .18s ease, box-shadow .18s ease; }
.cedro-crm .crm-field select:focus,
.cedro-crm .crm-access-user-role-form select:focus { border-color: rgba(84,114,232,.72); box-shadow: 0 0 0 4px rgba(84,114,232,.10); }
.crm-access-hierarchy { display: grid; gap: 10px; }
.crm-access-tier { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 11px; min-height: 74px; padding: 12px 13px; border: 1px solid var(--crm-border); border-radius: 15px; background: #fff; }
.crm-access-tier-owner { border-color: rgba(138,110,214,.22); background: rgba(138,110,214,.045); }
.crm-access-tier-icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; color: var(--crm-primary-dark); background: rgba(84,114,232,.1); font-weight: 900; }
.crm-access-tier-owner .crm-access-tier-icon { color: #6c54b7; background: rgba(138,110,214,.12); }
.crm-access-tier > div { min-width: 0; display: grid; gap: 2px; }
.crm-access-tier strong { color: var(--crm-text); font-size: 12px; }
.crm-access-tier small { color: var(--crm-muted); font-size: 10px; line-height: 1.4; }
.crm-access-tier > b { padding: 6px 9px; border-radius: 999px; color: var(--crm-muted); background: var(--crm-surface-2); font-size: 9px; white-space: nowrap; }
.crm-access-users-panel { margin-bottom: 18px; }
.crm-access-users-panel:last-child { margin-bottom: 0; }
.crm-access-count { flex: 0 0 auto; padding: 7px 10px; border-radius: 999px; color: var(--crm-muted); background: var(--crm-surface-2); font-size: 10px; font-weight: 750; }
.crm-access-owner-list,
.crm-access-user-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.crm-access-owner-card { min-width: 0; display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 11px; padding: 12px; border: 1px solid var(--crm-border); border-radius: 15px; background: #fff; }
.crm-access-avatar { width: 44px; height: 44px; display: grid; place-items: center; overflow: hidden; border-radius: 999px; background: var(--crm-surface-2); box-shadow: inset 0 0 0 1px var(--crm-border); }
.crm-access-avatar img { width: 100%; height: 100%; display: block; object-fit: cover; }
.crm-access-owner-card > div,
.crm-access-user-identity > div { min-width: 0; display: grid; gap: 2px; }
.crm-access-owner-card strong,
.crm-access-user-identity strong { overflow: hidden; color: var(--crm-text); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.crm-access-owner-card small,
.crm-access-user-identity small { overflow: hidden; color: var(--crm-muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.crm-access-role-badge { display: inline-flex; align-items: center; min-height: 29px; padding: 0 9px; border-radius: 999px; font-size: 9px; font-weight: 800; white-space: nowrap; }
.crm-access-role-owner { color: #6c54b7; background: rgba(138,110,214,.11); }
.crm-access-user-card { min-width: 0; display: grid; grid-template-columns: minmax(220px, 1fr) minmax(260px, .85fr) auto; align-items: center; gap: 14px; padding: 13px; border: 1px solid var(--crm-border); border-radius: 16px; background: #fff; box-shadow: 0 8px 24px rgba(28,39,51,.03); }
.crm-access-user-identity { min-width: 0; display: flex; align-items: center; gap: 11px; }
.crm-access-user-role-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 8px; }
.crm-access-user-role-form label { display: grid; gap: 5px; }
.crm-access-user-role-form label > span { color: var(--crm-muted); font-size: 9px; font-weight: 750; text-transform: uppercase; letter-spacing: .07em; }
.cedro-crm .crm-access-user-role-form select { height: 40px; border-radius: 11px; font-size: 11px; }
.cedro-crm .crm-access-user-role-form .crm-button { min-height: 40px !important; padding: 0 13px !important; font-size: 11px !important; }
.crm-access-revoke-form { display: flex; justify-content: flex-end; }
.cedro-crm .crm-access-revoke-button { min-height: 36px; padding: 0 9px; border: 1px solid transparent !important; border-radius: 10px; color: var(--crm-danger) !important; background: rgba(216,102,102,.08) !important; font-size: 10px; font-weight: 800; cursor: pointer; }
.cedro-crm .crm-access-revoke-button:hover { border-color: rgba(216,102,102,.22) !important; background: rgba(216,102,102,.13) !important; }

@media (max-width: 1050px) {
  .crm-access-main-grid { grid-template-columns: 1fr; }
  .crm-access-user-card { grid-template-columns: minmax(210px, 1fr) minmax(250px, 1fr); }
  .crm-access-revoke-form { grid-column: 1 / -1; justify-content: flex-end; }
}

@media (max-width: 782px) {
  .cedro-crm-access-wrap { margin-right: 10px; }
  .crm-access-admin-shell { padding: 20px; border-radius: 20px; }
  .crm-access-admin-header { align-items: flex-start; flex-direction: column; }
  .crm-access-stat-grid { grid-template-columns: 1fr; }
  .crm-access-form { grid-template-columns: 1fr; }
  .crm-access-form .crm-button { grid-column: auto; width: 100%; }
  .crm-access-owner-list,
  .crm-access-user-list { grid-template-columns: 1fr; }
  .crm-access-user-card { grid-template-columns: 1fr; }
  .crm-access-user-role-form { grid-template-columns: 1fr; }
  .crm-access-user-role-form .crm-button { width: 100%; }
  .crm-access-revoke-form { grid-column: auto; justify-content: stretch; }
  .cedro-crm .crm-access-revoke-button { width: 100%; }
}

@media (max-width: 520px) {
  .crm-access-admin-shell { padding: 15px; }
  .crm-access-owner-card { grid-template-columns: 42px minmax(0, 1fr); }
  .crm-access-owner-card .crm-access-role-badge { grid-column: 2; justify-self: flex-start; }
  .crm-access-tier { grid-template-columns: 38px minmax(0, 1fr); }
  .crm-access-tier > b { grid-column: 2; justify-self: flex-start; }
}
