/* Compact page trigger — unchanged role; modal restyle below */

.telc-report-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  max-width: 1100px;
  margin: 8px auto 0;
  padding: 0 12px 4px;
  box-sizing: border-box;
  font-family: inherit;
}

.telc-report-bar:not(:has(#telc-report-open)) {
  min-height: 0;
  height: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: transparent;
}

.telc-report-bar .telc-report-auth {
  display: none !important;
}

body button.telc-report-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  min-height: 30px !important;
  padding: 4px 12px !important;
  border: 1px solid #d4d4d8 !important;
  border-radius: 8px !important;
  background: #fff !important;
  color: #3f3f46 !important;
  font-size: 12.5px !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
  line-height: 1.25 !important;
  cursor: pointer !important;
  box-shadow: none !important;
  background-image: none !important;
}

body button.telc-report-btn:hover {
  background: #fafafa !important;
  background-image: none !important;
  border-color: #a1a1aa !important;
  color: #3f3f46 !important;
}

.telc-report-btn__ar {
  font-size: 12px;
  font-weight: 400;
  color: #71717a;
}

body button.telc-report-btn.is-sent,
html.dark body button.telc-report-btn.is-sent {
  background: #2e7d32 !important;
  background-image: none !important;
  border-color: #2e7d32 !important;
  color: #fff !important;
}

body button.telc-report-btn.is-sent .telc-report-btn__ar {
  color: rgba(255, 255, 255, 0.92);
}

.telc-report-auth {
  font-size: 11px;
  color: #71717a;
  white-space: nowrap;
}

.telc-report-overlay {
  position: fixed;
  inset: 0;
  z-index: 4000;
  background: rgba(15, 18, 22, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}

.telc-report-overlay[hidden] {
  display: none !important;
}

.telc-report-modal {
  position: relative;
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow: auto;
  background: #fff;
  color: #18181b;
  border: 1px solid #e4e4e7;
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(24, 24, 27, 0.12);
  padding: 24px;
  box-sizing: border-box;
  outline: none;
}

.telc-report-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.telc-report-head-text {
  min-width: 0;
}

.telc-report-title {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
  color: #18181b;
}

.telc-report-ar-title {
  margin: 6px 0 0;
  font-size: 14.5px;
  font-weight: 500;
  color: #71717a;
  text-align: right;
  direction: rtl;
}

body .telc-report-overlay button.telc-report-close {
  flex-shrink: 0;
  width: 32px !important;
  height: 32px !important;
  min-height: 32px !important;
  margin: -4px -4px 0 0;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 8px !important;
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  color: #71717a !important;
  font-size: 22px !important;
  font-weight: 400 !important;
  letter-spacing: 0 !important;
  line-height: 1 !important;
  cursor: pointer !important;
}

body .telc-report-overlay button.telc-report-close:hover {
  background: #f4f4f5 !important;
  background-image: none !important;
  color: #3f3f46 !important;
}

.telc-report-desc {
  margin: 0 0 24px;
}

.telc-report-desc p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: #71717a;
}

.telc-report-desc p + p {
  margin-top: 6px;
}

.telc-report-desc p[dir="rtl"] {
  text-align: right;
}

.telc-report-field {
  margin: 0 0 20px;
}

.telc-report-label {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  margin: 0 0 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: #27272a;
}

.telc-report-label-ar {
  display: block;
  margin-top: 2px;
  font-size: 12.5px;
  font-weight: 400;
  color: #a1a1aa;
  text-align: right;
  direction: rtl;
}

.telc-report-modal select,
.telc-report-modal textarea {
  width: 100%;
  box-sizing: border-box;
  appearance: none;
  font: inherit;
  font-size: 14px;
  color: #18181b;
  background: #fff;
  border: 1px solid #d4d4d8;
  border-radius: 10px;
  padding: 11px 12px;
  outline: none;
}

.telc-report-modal select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%2371717a' d='M1.2 1.4L6 6.2l4.8-4.8' stroke='%2371717a' stroke-width='1.4' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.telc-report-modal textarea {
  min-height: 110px;
  resize: vertical;
  line-height: 1.45;
}

.telc-report-modal select:hover,
.telc-report-modal textarea:hover {
  border-color: #a1a1aa;
}

.telc-report-modal select:focus,
.telc-report-modal textarea:focus,
.telc-report-cancel:focus-visible,
.telc-report-send:focus-visible,
.telc-report-google:focus-visible,
.telc-report-close:focus-visible,
.telc-report-btn:focus-visible {
  outline: 2px solid #1a2332;
  outline-offset: 2px;
}

.telc-report-actions {
  display: flex;
  justify-content: flex-end;
  align-items: stretch;
  gap: 12px;
  margin-top: 8px;
}

body .telc-report-overlay button.telc-report-cancel,
body .telc-report-overlay button.telc-report-send {
  display: inline-flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  min-height: 42px !important;
  min-width: 108px;
  padding: 7px 16px !important;
  border-radius: 10px !important;
  font-family: inherit !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
  line-height: 1.2;
  cursor: pointer !important;
  box-shadow: none !important;
}

.telc-report-cancel__ar,
.telc-report-send__ar {
  font-size: 12px;
  font-weight: 400;
}

body .telc-report-overlay button.telc-report-cancel {
  background: transparent !important;
  background-image: none !important;
  border: 1px solid #d4d4d8 !important;
  color: #3f3f46 !important;
}

body .telc-report-overlay button.telc-report-cancel:hover {
  background: #f4f4f5 !important;
  background-image: none !important;
  border-color: #a1a1aa !important;
  color: #3f3f46 !important;
}

body .telc-report-overlay button.telc-report-send {
  background: #1a2332 !important;
  background-image: none !important;
  border: 1px solid #1a2332 !important;
  color: #fff !important;
}

body .telc-report-overlay button.telc-report-send:hover {
  background: #2a3544 !important;
  background-image: none !important;
  border-color: #2a3544 !important;
  color: #fff !important;
}

.telc-report-send:disabled {
  opacity: 0.5;
  cursor: default;
}

.telc-report-send[aria-busy="true"] {
  opacity: 0.72;
  cursor: wait;
}

.telc-report-send__ar {
  color: rgba(255, 255, 255, 0.82);
}

.telc-report-msg {
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.45;
}

.telc-report-msg.is-ok {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #e8f5e9;
  color: #1b5e20;
  border: 1px solid #a5d6a7;
  font-size: 14.5px;
  font-weight: 600;
}

.telc-report-ok-icon {
  font-size: 22px;
  line-height: 1;
  color: #2e7d32;
}

.telc-report-ok-ar {
  display: block;
  text-align: right;
  direction: rtl;
}

.telc-report-ok-fr {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: #2e7d32;
}

.telc-report-msg.is-err { color: #991b1b; }
.telc-report-msg.is-info { color: #52525b; }

.telc-report-auth-panel {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #ececee;
}

.telc-report-auth-panel[hidden] {
  display: none !important;
}

.telc-report-auth-title {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: #27272a;
}

.telc-report-auth-title-ar {
  margin: 4px 0 0;
  font-size: 13px;
  font-weight: 400;
  color: #71717a;
  text-align: right;
  direction: rtl;
}

.telc-report-auth-copy {
  margin: 12px 0 0;
  font-size: 13px;
  line-height: 1.45;
  color: #71717a;
}

.telc-report-auth-copy[dir="rtl"] {
  text-align: right;
}

body .telc-report-overlay button.telc-report-google {
  display: inline-flex !important;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  margin-top: 12px;
  min-height: 44px !important;
  padding: 8px 16px 7px !important;
  border: 1px solid #dadce0 !important;
  border-radius: 10px !important;
  background: #fff !important;
  background-image: none !important;
  color: #3c4043 !important;
  font-family: inherit !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
  cursor: pointer !important;
  box-shadow: none !important;
}

body .telc-report-overlay button.telc-report-google:hover {
  background: #f8f9fa !important;
  background-image: none !important;
  border-color: #dadce0 !important;
  color: #3c4043 !important;
}

.telc-report-google-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.telc-report-google-icon {
  width: 18px;
  height: 18px;
  display: block;
  flex-shrink: 0;
}

.telc-report-google__ar {
  font-size: 12px;
  font-weight: 400;
  color: #5f6368;
}

html.dark .telc-report-btn,
html.dark .telc-report-modal,
html.dark .telc-report-modal select,
html.dark .telc-report-modal textarea,
html.dark .telc-report-cancel,
html.dark .telc-report-google {
  background: #1c1c1f;
  color: #f4f4f5;
  border-color: #3f3f46;
}

html.dark .telc-report-title,
html.dark .telc-report-label,
html.dark .telc-report-auth-title {
  color: #fafafa;
}

html.dark .telc-report-auth,
html.dark .telc-report-btn__ar,
html.dark .telc-report-ar-title,
html.dark .telc-report-label-ar,
html.dark .telc-report-desc p,
html.dark .telc-report-auth-copy,
html.dark .telc-report-auth-title-ar {
  color: #a1a1aa;
}

html.dark body .telc-report-overlay button.telc-report-send {
  background: #e4e4e7 !important;
  background-image: none !important;
  border-color: #e4e4e7 !important;
  color: #18181b !important;
}

html.dark .telc-report-send__ar {
  color: #3f3f46;
}

html.dark .telc-report-overlay {
  background: rgba(0, 0, 0, 0.55);
}

html.dark .telc-report-bar {
  color: #e4e4e7;
}

html.dark body button.telc-report-btn {
  background: #1c1c1f !important;
  background-image: none !important;
  color: #f4f4f5 !important;
  border-color: #3f3f46 !important;
}

html.dark body button.telc-report-btn.is-sent {
  background: #2e7d32 !important;
  border-color: #2e7d32 !important;
  color: #fff !important;
}

html.dark .telc-report-msg.is-ok {
  background: #14351a;
  color: #c8e6c9;
  border-color: #2e7d32;
}

html.dark .telc-report-ok-icon,
html.dark .telc-report-ok-fr {
  color: #81c784;
}

html.dark body .telc-report-overlay button.telc-report-close {
  background: transparent !important;
  background-image: none !important;
  color: #a1a1aa !important;
  box-shadow: none !important;
}

html.dark body .telc-report-overlay button.telc-report-cancel,
html.dark body .telc-report-overlay button.telc-report-google {
  background: #1c1c1f !important;
  background-image: none !important;
  color: #f4f4f5 !important;
}

html.dark .telc-report-google__ar {
  color: #a1a1aa;
}

@media (max-width: 640px) {
  .telc-report-bar {
    justify-content: center;
    padding-bottom: 0;
  }
  .telc-report-btn {
    width: auto;
    max-width: 100%;
    justify-content: center;
  }
  .telc-report-overlay {
    align-items: flex-start;
    padding: 12px;
    padding-bottom: max(12px, env(safe-area-inset-bottom, 0px));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .telc-report-modal {
    width: calc(100% - 24px);
    max-width: none;
    max-height: min(92vh, 100dvh - 24px);
    padding: 20px;
    margin: 0 auto;
  }
  .telc-report-actions {
    flex-direction: column-reverse;
    position: sticky;
    bottom: 0;
    z-index: 2;
    background: #fff;
    padding-top: 10px;
    padding-bottom: 2px;
    margin-top: 4px;
  }
  html.dark .telc-report-actions {
    background: #18181b;
  }
  .telc-report-cancel,
  .telc-report-send,
  .telc-report-google {
    width: 100%;
  }
}
