/* ==========================================================
   GARP CONNECT — WHATSAPP WEB
   BLOCO 1 — INTERFACE
   ========================================================== */

.gc-wa-page {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  height: 100vh;
  overflow: hidden;
  background: #f7f8fa;
  color: #10264d;
}

.gc-wa-topbar {
  display: flex;
  min-height: 64px;
  box-sizing: border-box;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 9px 16px;
  border-bottom: 1px solid #dde5ef;
  background: #ffffff;
}

.gc-wa-status {
  display: flex;
  align-items: center;
  gap: 8px;
}

.gc-wa-status strong {
  font-size: 14px;
}

.gc-wa-status small {
  margin-left: 22px;
  color: #7787a1;
  font-size: 9px;
  font-weight: 400;
}

.gc-wa-dot,
.gc-wa-green-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #18a66a;
}

.gc-wa-top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.gc-wa-top-button,
.gc-wa-pill {
  display: inline-flex;
  min-height: 37px;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid #dce5f0;
  border-radius: 11px;
  padding: 0 13px;
  color: #405775;
  background: #ffffff;
  box-shadow: 0 3px 9px rgba(27, 52, 89, .04);
  font: inherit;
  font-size: 10px;
  font-weight: 650;
  text-decoration: none;
}

.gc-wa-pill span {
  border-radius: 20px;
  padding: 3px 6px;
  color: #16925e;
  background: #e7f8f0;
  font-size: 8px;
}

.gc-wa-top-button:disabled,
.gc-wa-pill:disabled,
.gc-wa-tool-button:disabled,
.gc-wa-round-button:disabled,
.gc-wa-filters button:disabled {
  opacity: 1;
  cursor: default;
}

.gc-wa-workspace {
  display: grid;
  grid-template-columns: minmax(260px, 335px) minmax(430px, 1fr) 255px;
  min-height: 0;
  flex: 1;
  overflow: hidden;
}

.gc-wa-conversations {
  min-width: 0;
  overflow: hidden;
  border-right: 1px solid #e0e5eb;
  background: #ffffff;
}

.gc-wa-brand-row {
  display: flex;
  min-height: 56px;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
}

.gc-wa-brand-row strong {
  color: #18a566;
  font-size: 20px;
}

.gc-wa-round-button {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  background: #1aaa6d;
  font-size: 19px;
}

.gc-wa-search {
  display: flex;
  height: 38px;
  align-items: center;
  gap: 8px;
  margin: 0 14px;
  border-radius: 20px;
  padding: 0 13px;
  background: #f4f3f3;
}

.gc-wa-search span {
  color: #68717a;
  font-size: 20px;
}

.gc-wa-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: #4f5967;
  background: transparent;
  font: inherit;
  font-size: 11px;
}

.gc-wa-filters {
  display: flex;
  gap: 7px;
  padding: 10px 14px;
}

.gc-wa-filters button {
  min-height: 29px;
  border: 1px solid #dedede;
  border-radius: 16px;
  padding: 0 12px;
  background: #ffffff;
  color: #565656;
  font: inherit;
  font-size: 10px;
}

.gc-wa-filters button.is-active {
  border-color: #a5e8b1;
  color: #0c6c2f;
  background: #d9ffd9;
}

.gc-wa-filters .gc-wa-filter-plus {
  width: 30px;
  padding: 0;
}

.gc-wa-conversation-empty {
  margin: 18px 15px;
  border: 1px dashed #ced8e5;
  border-radius: 15px;
  padding: 25px 18px;
  text-align: center;
}

.gc-wa-empty-icon {
  margin-bottom: 10px;
  color: #20a46c;
  font-size: 27px;
}

.gc-wa-conversation-empty strong {
  display: block;
  color: #243a58;
  font-size: 12px;
}

.gc-wa-conversation-empty p {
  max-width: 230px;
  margin: 8px auto 0;
  color: #71819a;
  font-size: 10px;
  line-height: 1.55;
}

.gc-wa-chat {
  display: grid;
  min-width: 0;
  place-items: center;
  overflow: hidden;
  background: #f5f2ef;
}

.gc-wa-chat-empty {
  width: min(370px, 78%);
  border-radius: 22px;
  padding: 31px 27px;
  text-align: center;
  background: rgba(255,255,255,.93);
}

.gc-wa-chat-illustration {
  display: grid;
  width: 115px;
  height: 90px;
  place-items: center;
  margin: 0 auto 18px;
  border-radius: 18px;
  color: #16995f;
  background: #e9f9ee;
  font-size: 45px;
}

.gc-wa-chat-empty h2 {
  margin: 0;
  color: #111;
  font-size: 19px;
  font-weight: 500;
}

.gc-wa-chat-empty p {
  margin: 10px 0 5px;
  color: #667080;
  font-size: 11px;
}

.gc-wa-chat-empty small {
  color: #8a95a7;
  font-size: 9px;
}

.gc-wa-tools {
  min-width: 0;
  overflow: hidden;
  border-left: 1px solid #dfe6ef;
  background: #ffffff;
}

.gc-wa-tools-scroll {
  height: 100%;
  box-sizing: border-box;
  overflow-y: auto;
  padding: 15px 13px 20px;
}

.gc-wa-tools h2 {
  margin: 0 0 15px;
  color: #11294d;
  font-size: 15px;
}

.gc-wa-section-label {
  display: block;
  margin: 15px 2px 6px;
  color: #7e91af;
  font-size: 8px;
  font-weight: 750;
  text-transform: uppercase;
}

.gc-wa-tool-card {
  box-sizing: border-box;
  border: 1px solid #dfe7f2;
  border-radius: 14px;
  padding: 12px;
  background: #f8fafe;
}

.gc-wa-account-card {
  display: flex;
  align-items: center;
  gap: 10px;
}

.gc-wa-account-icon {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 11px;
  color: #166fe5;
  background: #ebf2ff;
}

.gc-wa-account-card strong,
.gc-wa-tool-card > strong {
  display: block;
  color: #172e51;
  font-size: 10px;
}

.gc-wa-account-card span,
.gc-wa-connected {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  color: #178c5b;
  font-size: 8px;
}

.gc-wa-tool-button {
  display: flex;
  width: 100%;
  min-height: 40px;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: 7px;
  border: 1px solid #dbe4ef;
  border-radius: 11px;
  color: #425875;
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(27,52,89,.025);
  font: inherit;
  font-size: 9px;
  font-weight: 650;
}

.gc-wa-selected-contact p,
.gc-wa-license-note p {
  margin: 5px 0;
  color: #607493;
  font-size: 8px;
  line-height: 1.45;
}

.gc-wa-selected-contact small {
  color: #8294ae;
  font-size: 7px;
}

.gc-wa-transmission-state {
  display: flex;
  align-items: center;
  gap: 7px;
  border: 1px solid #dfe7f1;
  border-radius: 15px;
  padding: 8px 10px;
  color: #6d7f98;
  background: #f6f9fc;
  font-size: 8px;
}

.gc-wa-transmission-state i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #9aacbf;
}

.gc-wa-license-note {
  margin-top: 15px;
  border: 1px solid #dfe7f2;
  border-radius: 12px;
  padding: 10px;
  background: #f8fafe;
}

.gc-wa-license-note strong {
  color: #263d5e;
  font-size: 9px;
}

@media (max-width: 1250px) {
  .gc-wa-workspace {
    grid-template-columns: 285px minmax(380px, 1fr) 235px;
  }

  .gc-wa-status small {
    display: none;
  }
}

@media (max-width: 1000px) {
  .gc-wa-workspace {
    grid-template-columns: 275px 1fr;
  }

  .gc-wa-tools {
    display: none;
  }
}

@media (max-width: 720px) {
  .gc-wa-topbar {
    align-items: stretch;
    flex-direction: column;
  }

  .gc-wa-top-actions {
    overflow-x: auto;
  }

  .gc-wa-workspace {
    grid-template-columns: 1fr;
  }

  .gc-wa-chat {
    display: none;
  }
}


/* ==========================================================
   GARP WHATSAPP QR REAL
   ========================================================== */

.gc-wa-dot.is-offline {
  background: #9aa9bc;
}

.gc-wa-dot.is-waiting {
  background: #e6a128;
}

.gc-wa-dot.is-error {
  background: #d94b4b;
}

.gc-wa-dot.is-connected {
  background: #16a66a;
}


.gc-wa-connect-card {
  box-sizing: border-box;

  width: min(440px, 84%);

  padding: 30px;

  border: 1px solid #dde6ef;
  border-radius: 22px;

  background: #fff;

  text-align: center;

  box-shadow:
    0 14px 38px
    rgba(26, 48, 79, .08);
}


.gc-wa-connect-icon {
  display: grid;

  width: 58px;
  height: 58px;

  place-items: center;

  margin:
    0 auto
    15px;

  border-radius: 18px;

  color: #149a61;
  background: #e7f8ef;

  font-size: 25px;
  font-weight: 800;
}


.gc-wa-connect-icon.is-connected {
  color: #128857;
  background: #e5f8ee;
}


.gc-wa-connect-icon.is-error {
  color: #c43d3d;
  background: #fff0f0;
}


.gc-wa-connect-card h2 {
  margin: 0;

  color: #132b4d;

  font-size: 20px;
}


.gc-wa-connect-card p {
  max-width: 350px;

  margin:
    10px auto;

  color: #657894;

  font-size: 11px;
  line-height: 1.55;
}


.gc-wa-connect-card small {
  display: block;

  max-width: 350px;

  margin:
    12px auto
    0;

  color: #8493a8;

  font-size: 9px;
  line-height: 1.5;
}


.gc-wa-connect-form {
  margin:
    19px 0
    5px;
}


.gc-wa-connect-button {
  min-width: 190px;
  min-height: 43px;

  padding:
    0 20px;

  border: 0;
  border-radius: 12px;

  color: #fff;
  background: #16a66a;

  box-shadow:
    0 7px 18px
    rgba(22, 166, 106, .18);

  font: inherit;
  font-size: 11px;
  font-weight: 750;

  cursor: pointer;
}


.gc-wa-connect-button:hover {
  filter: brightness(.97);
}

.gc-wa-disconnect-button {
  background: #c23c48;
  box-shadow: 0 7px 18px rgba(194, 60, 72, .18);
}


.gc-wa-qr-wrap {
  box-sizing: border-box;

  width: 244px;
  max-width: 86%;

  margin:
    18px auto
    12px;

  padding: 12px;

  border: 1px solid #dce4eb;
  border-radius: 16px;

  background: #fff;
}


.gc-wa-qr-image {
  display: block;

  width: 100%;
  height: auto;
}


.gc-wa-qr-loading {
  display: grid;

  width: 220px;
  max-width: 82%;
  height: 220px;

  place-items: center;

  margin:
    18px auto
    12px;

  border:
    1px dashed
    #ccd7e3;

  border-radius: 16px;

  color: #7487a2;
  background: #f8fafc;

  font-size: 10px;
}


.gc-wa-waiting-text {
  display: block;

  margin-top: 10px;

  color: #ad7418;

  font-size: 10px;
}


.gc-wa-session-state {
  display: flex;

  align-items: center;

  gap: 6px;

  margin-top: 5px;

  font-size: 8px;
  font-weight: 650;
}


.gc-wa-session-state i {
  width: 7px;
  height: 7px;

  border-radius: 50%;

  background: #9aa9bc;
}


.gc-wa-session-state.is-connected {
  color: #168e5c;
}

.gc-wa-session-state.is-connected i {
  background: #16a66a;
}


.gc-wa-session-state.is-waiting {
  color: #ad7418;
}

.gc-wa-session-state.is-waiting i {
  background: #e6a128;
}


.gc-wa-session-state.is-error {
  color: #bd4545;
}

.gc-wa-session-state.is-error i {
  background: #d94b4b;
}


.gc-wa-session-state.is-offline {
  color: #71839b;
}


.gc-wa-connected-card {
  border-color: #cde9dc;
}

/* ==========================================================
   GARP CONNECT - WHATSAPP CLOUD SOMENTE PAREAMENTO
   ========================================================== */

.gc-wa-pairing-page {
  width: min(820px, calc(100% - 48px));
  margin: 0 auto;
  padding: 38px 0 60px;
  box-sizing: border-box;
}

.gc-wa-pairing-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.gc-wa-pairing-eyebrow {
  display: block;
  margin-bottom: 7px;
  color: rgba(255, 255, 255, .76);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.gc-wa-pairing-header h1 {
  margin: 0;
  color: #ffffff;
  font-size: 28px;
  line-height: 1.15;
}

.gc-wa-pairing-header p {
  max-width: 580px;
  margin: 8px 0 0;
  color: rgba(255, 255, 255, .82);
  font-size: 13px;
  line-height: 1.55;
}

.gc-wa-pairing-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 999px;
  padding: 9px 13px;
  color: #ffffff;
  background: rgba(255,255,255,.11);
  font-size: 11px;
  font-weight: 700;
}

.gc-wa-pairing-status i {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #c9d3df;
}

.gc-wa-pairing-status.is-connected i {
  background: #41e399;
}

.gc-wa-pairing-status.is-waiting i {
  background: #ffd465;
}

.gc-wa-pairing-status.is-error i,
.gc-wa-pairing-status.is-offline i {
  background: #ff8d8d;
}

.gc-wa-pairing-shell {
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 24px;
  padding: 10px;
  background: rgba(255,255,255,.10);
  box-shadow: 0 20px 55px rgba(10,38,84,.18);
}

.gc-wa-pairing-card {
  border-radius: 18px;
  padding: 30px;
  background: #ffffff;
}

.gc-wa-pairing-card .gc-wa-chat,
.gc-wa-pairing-card .gc-wa-connect-card {
  width: 100%;
  max-width: none;
  box-sizing: border-box;
}

.gc-wa-pairing-card .gc-wa-connect-card {
  margin: 0;
  border: 0;
  box-shadow: none;
}

.gc-wa-mobile-instructions {
  margin-top: 22px;
  border-top: 1px solid #e2eaf2;
  padding-top: 21px;
}

.gc-wa-mobile-instructions strong {
  display: block;
  margin-bottom: 9px;
  color: #102e54;
  font-size: 14px;
}

.gc-wa-mobile-instructions p,
.gc-wa-mobile-instructions li {
  color: #627892;
  font-size: 12px;
  line-height: 1.65;
}

.gc-wa-mobile-instructions p {
  margin: 7px 0;
}

.gc-wa-mobile-instructions ol {
  margin: 0;
  padding-left: 21px;
}

.gc-wa-mobile-instructions li + li {
  margin-top: 5px;
}

.gc-wa-back-home {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  margin-top: 22px;
  border: 1px solid #d7e2ed;
  border-radius: 12px;
  padding: 0 17px;
  color: #17446f;
  background: #f8fafc;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
}

.gc-wa-back-home:hover {
  background: #f0f5fa;
}

@media (max-width: 700px) {
  .gc-wa-pairing-page {
    width: min(100% - 28px, 820px);
    padding-top: 24px;
  }

  .gc-wa-pairing-header {
    flex-direction: column;
  }

  .gc-wa-pairing-card {
    padding: 20px;
  }
}
