#btnFranquiaLoja[hidden] {
  display: none !important;
}

#lojaNavCaixaUnificada [data-caixa-aba="franquia-loja"][hidden],
#xdLojaUiV2Rail [data-v2-action="franquia"][hidden],
#aba-franquia-loja .frq-loja-alert[hidden] {
  display: none !important;
}

#aba-franquia-loja {
  color: #17253a;
}

#aba-franquia-loja .frq-loja-shell {
  display: grid;
  gap: 20px;
  margin: 0 auto;
  max-width: 1180px;
  padding: 8px 0 32px;
}

#aba-franquia-loja .frq-loja-hero {
  align-items: center;
  background:
    radial-gradient(circle at 88% 18%, rgba(16, 185, 129, .2), transparent 25%),
    linear-gradient(115deg, #10243b 0%, #173b50 57%, #08795c 100%);
  border-radius: 18px;
  box-shadow: 0 14px 30px rgba(15, 23, 42, .14);
  color: #fff;
  display: flex;
  gap: 28px;
  isolation: isolate;
  justify-content: space-between;
  min-height: 148px;
  overflow: hidden;
  padding: 25px 30px;
  position: relative;
}

#aba-franquia-loja .frq-loja-hero::before {
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 50%;
  box-shadow:
    0 0 0 22px rgba(255, 255, 255, .025),
    0 0 0 44px rgba(255, 255, 255, .02);
  content: "";
  height: 190px;
  pointer-events: none;
  position: absolute;
  right: 17%;
  top: -128px;
  width: 190px;
  z-index: -1;
}

#aba-franquia-loja .frq-loja-hero__copy,
#aba-franquia-loja .frq-loja-hero__actions {
  position: relative;
  z-index: 1;
}

#aba-franquia-loja .frq-loja-hero__copy {
  max-width: 560px;
  min-width: 0;
}

#aba-franquia-loja .frq-loja-hero h2 {
  color: #fff;
  font-size: clamp(23px, 3vw, 31px);
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.1;
  margin: 8px 0 6px;
}

#aba-franquia-loja .frq-loja-hero p {
  color: #d6e3ec;
  font-size: 13px;
  line-height: 1.55;
  max-width: 560px;
  margin: 0;
}

#aba-franquia-loja .frq-loja-kicker {
  align-items: center;
  background: rgba(167, 243, 208, .1);
  border: 1px solid rgba(167, 243, 208, .18);
  border-radius: 999px;
  color: #a7f3d0;
  display: inline-flex;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .11em;
  padding: 5px 9px;
  text-transform: uppercase;
}

#aba-franquia-loja .frq-loja-count {
  align-items: center;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 13px;
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  justify-content: center;
  min-height: 70px;
  min-width: 112px;
  padding: 10px 14px;
}

#aba-franquia-loja .frq-loja-hero__actions {
  align-items: center;
  display: flex;
  flex: 0 0 auto;
  gap: 10px;
}

#aba-franquia-loja .frq-loja-create {
  align-items: center;
  background: #a7f3d0;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 11px;
  box-shadow: 0 5px 12px rgba(4, 28, 38, .12);
  color: #123c33;
  cursor: pointer;
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  gap: 8px;
  justify-content: center;
  min-height: 44px;
  padding: 0 14px;
  transition: background .16s ease, box-shadow .16s ease, transform .16s ease;
  white-space: nowrap;
}

#aba-franquia-loja .frq-loja-create:hover {
  background: #d1fae5;
  box-shadow: 0 8px 16px rgba(4, 28, 38, .18);
  transform: translateY(-1px);
}

#aba-franquia-loja .frq-loja-publish {
  align-items: center;
  background: #0e9f6e;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 11px;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  gap: 8px;
  justify-content: center;
  min-height: 44px;
  padding: 0 14px;
  transition: background .16s ease, transform .16s ease;
  white-space: nowrap;
}

#aba-franquia-loja .frq-loja-publish:hover:not(:disabled) {
  background: #08795c;
  transform: translateY(-1px);
}

#aba-franquia-loja .frq-loja-publish:disabled {
  background: rgba(148, 163, 184, .2);
  border-color: rgba(255, 255, 255, .12);
  color: #d4e0e8;
  cursor: not-allowed;
  opacity: 1;
}

#aba-franquia-loja .frq-loja-count > strong {
  font-size: 30px;
  font-weight: 800;
  line-height: 1;
}

#aba-franquia-loja .frq-loja-count span {
  color: #d6e3ec;
  font-size: 10px;
  margin-top: 5px;
  white-space: nowrap;
}

#aba-franquia-loja .frq-loja-note,
#aba-franquia-loja .frq-loja-card {
  background: #fff;
  border: 1px solid #e5ebf2;
  border-radius: 14px;
}

#aba-franquia-loja .frq-loja-note {
  background: #f0f7ff;
  border-color: #d9e9fb;
  color: #42617e;
  line-height: 1.55;
  padding: 13px 16px;
}

#aba-franquia-loja .frq-loja-card {
  padding: 22px;
}

#aba-franquia-loja .frq-loja-card__head {
  align-items: flex-start;
  display: flex;
  justify-content: space-between;
  margin-bottom: 18px;
}

#aba-franquia-loja .frq-loja-card__head h3 {
  color: #17253a;
  font-size: 19px;
  margin: 0 0 5px;
}

#aba-franquia-loja .frq-loja-card__head p {
  color: #718096;
  font-size: 13px;
  margin: 0;
}

#aba-franquia-loja .frq-loja-refresh {
  background: #f0f7ff;
  border: 1px solid #d9e9fb;
  border-radius: 9px;
  color: #2563eb;
  cursor: pointer;
  padding: 9px 12px;
}

#aba-franquia-loja .frq-loja-units {
  display: grid;
  gap: 10px;
}

#aba-franquia-loja .frq-loja-unit {
  align-items: center;
  border: 1px solid #e5ebf2;
  border-radius: 12px;
  display: flex;
  gap: 13px;
  padding: 13px;
}

#aba-franquia-loja .frq-loja-unit__icon {
  align-items: center;
  background: #eaf2ff;
  border-radius: 11px;
  color: #3977bd;
  display: inline-flex;
  flex: 0 0 42px;
  height: 42px;
  justify-content: center;
}

#aba-franquia-loja .frq-loja-unit__body {
  display: grid;
  flex: 1;
  gap: 3px;
  min-width: 0;
}

#aba-franquia-loja .frq-loja-unit__role {
  color: #0e9f6e;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
}

#aba-franquia-loja .frq-loja-unit__body strong {
  overflow-wrap: anywhere;
}

#aba-franquia-loja .frq-loja-unit__body small {
  color: #718096;
}

#aba-franquia-loja .frq-loja-unit__balance {
  align-items: flex-end;
  display: grid;
  flex: 0 0 auto;
  gap: 4px;
  margin-left: auto;
  text-align: right;
}

#aba-franquia-loja .frq-loja-unit__balance small {
  color: #718096;
  font-size: 11px;
}

#aba-franquia-loja .frq-loja-unit__balance strong {
  color: #17253a;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

#aba-franquia-loja .frq-loja-transfer-button {
  align-items: center;
  background: #08795c;
  border: 0;
  border-radius: 9px;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 800;
  gap: 8px;
  justify-content: center;
  min-height: 39px;
  padding: 9px 12px;
}

#aba-franquia-loja .frq-loja-transfer-button:hover:not(:disabled) {
  background: #06634c;
}

#aba-franquia-loja .frq-loja-transfer-button:disabled {
  background: #94a3b8;
  cursor: not-allowed;
}

#aba-franquia-loja .frq-loja-actions {
  position: relative;
}

#aba-franquia-loja .frq-loja-actions > summary {
  align-items: center;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  color: #475569;
  cursor: pointer;
  display: inline-flex;
  height: 38px;
  justify-content: center;
  list-style: none;
  width: 38px;
}

#aba-franquia-loja .frq-loja-actions > summary::-webkit-details-marker {
  display: none;
}

#aba-franquia-loja .frq-loja-actions__menu {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .16);
  display: grid;
  gap: 4px;
  min-width: 190px;
  padding: 6px;
  position: absolute;
  right: 0;
  top: calc(100% + 5px);
  z-index: 10;
}

#aba-franquia-loja .frq-loja-actions__menu button,
#aba-franquia-loja .frq-loja-actions__menu span {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 7px;
  color: #334155;
  display: flex;
  font: inherit;
  gap: 9px;
  padding: 9px 10px;
  text-align: left;
}

#aba-franquia-loja .frq-loja-actions__menu button {
  cursor: pointer;
}

#aba-franquia-loja .frq-loja-actions__menu button:hover:not(:disabled) {
  background: #f1f5f9;
}

#aba-franquia-loja .frq-loja-actions__menu button:disabled,
#aba-franquia-loja .frq-loja-actions__menu span {
  color: #94a3b8;
  cursor: not-allowed;
  font-size: 12px;
}

#aba-franquia-loja .frq-loja-remove {
  background: #fff;
  border: 1px solid #fecaca;
  border-radius: 8px;
  color: #b91c1c;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 10px;
}

#aba-franquia-loja .frq-loja-actions__menu .frq-loja-remove {
  border: 0;
  font-size: 13px;
  font-weight: 600;
  margin-top: 3px;
}

.frq-loja-dialog {
  border: 0;
  border-radius: 16px;
  box-shadow: 0 24px 80px rgba(15, 23, 42, .28);
  color: #17253a;
  margin: auto;
  max-height: min(88vh, 900px);
  max-width: min(760px, calc(100vw - 32px));
  overflow: hidden;
  padding: 0;
  width: 100%;
}

.frq-loja-dialog--wide {
  max-width: min(900px, calc(100vw - 32px));
}

.frq-loja-dialog::backdrop {
  background: rgba(15, 23, 42, .58);
  backdrop-filter: blur(3px);
}

.frq-loja-dialog__head {
  align-items: flex-start;
  border-bottom: 1px solid #e5ebf2;
  display: flex;
  justify-content: space-between;
  padding: 22px 24px;
}

.frq-loja-dialog__head h2 {
  color: #17253a;
  font-size: 21px;
  margin: 0 0 5px;
}

.frq-loja-dialog__head p {
  color: #718096;
  font-size: 13px;
  margin: 0;
}

.frq-loja-dialog__close {
  align-items: center;
  background: #f1f5f9;
  border: 0;
  border-radius: 9px;
  color: #475569;
  cursor: pointer;
  display: inline-flex;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.frq-loja-dialog__body {
  max-height: calc(88vh - 84px);
  overflow-y: auto;
  padding: 22px 24px 24px;
}

.frq-loja-dialog .frq-loja-form {
  margin-top: 16px;
}

#aba-franquia-loja .frq-loja-empty {
  border: 1px dashed #cbd5e1;
  border-radius: 10px;
  color: #64748b;
  padding: 20px;
  text-align: center;
}

.frq-loja-dialog .frq-loja-form {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.frq-loja-dialog .frq-loja-field {
  display: grid;
  gap: 6px;
}

.frq-loja-dialog .frq-loja-field--wide {
  grid-column: 1 / -1;
}

.frq-loja-dialog .frq-loja-field label {
  color: #334155;
  font-size: 12px;
  font-weight: 700;
}

.frq-loja-dialog .frq-loja-field__hint {
  color: #718096;
  font-size: 11px;
  line-height: 1.4;
}

.frq-loja-dialog .frq-loja-field__hint--error {
  color: #b42318;
}

.frq-loja-dialog .frq-loja-field input,
.frq-loja-dialog .frq-loja-field select {
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 9px;
  color: #17253a;
  min-height: 42px;
  padding: 9px 11px;
  width: 100%;
}

.frq-loja-dialog .frq-loja-field input:focus,
.frq-loja-dialog .frq-loja-field select:focus {
  border-color: #0e9f6e;
  outline: 3px solid rgba(14, 159, 110, .14);
}

.frq-loja-dialog .frq-loja-field input[readonly] {
  background: #f1f5f9;
  color: #475569;
  cursor: default;
}

.frq-loja-dialog .frq-loja-submit {
  background: #08795c;
  border: 0;
  border-radius: 9px;
  color: #fff;
  cursor: pointer;
  font-weight: 800;
  grid-column: 1 / -1;
  justify-self: start;
  padding: 12px 16px;
}

.frq-loja-dialog .frq-loja-submit:disabled {
  cursor: wait;
  opacity: .65;
}

#franquiaCriarForm[hidden],
#franquiaFilialResultado[hidden],
#franquiaCriarAviso[hidden] {
  display: none !important;
}

.frq-loja-credentials {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 12px;
  margin-top: 16px;
  padding: 18px;
}

.frq-loja-credentials h3 {
  color: #166534;
  margin: 0 0 6px;
}

.frq-loja-credentials p {
  color: #42617e;
  margin: 0 0 14px;
}

.frq-loja-credentials dl {
  display: grid;
  gap: 10px;
  margin: 0 0 14px;
}

.frq-loja-credentials dl > div {
  display: grid;
  gap: 4px;
}

.frq-loja-credentials dt {
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
}

.frq-loja-credentials dd {
  background: #fff;
  border: 1px solid #d1fae5;
  border-radius: 7px;
  color: #14532d;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  margin: 0;
  overflow-wrap: anywhere;
  padding: 9px 11px;
}

#aba-franquia-loja .frq-loja-alert,
.frq-loja-dialog .frq-loja-alert {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 9px;
  color: #065f46;
  line-height: 1.5;
  padding: 11px 13px;
}

#aba-franquia-loja .frq-loja-alert--error,
.frq-loja-dialog .frq-loja-alert--error {
  background: #fef2f2;
  border-color: #fecaca;
  color: #991b1b;
}

.frq-loja-transfer-destination {
  background: #f0f7ff;
  border: 1px solid #d9e9fb;
  border-radius: 9px;
  color: #334155;
  font-weight: 700;
  margin-bottom: 14px;
  padding: 11px 13px;
}

#franquiaLojaTransferenciaDialog .frq-loja-form {
  grid-template-columns: minmax(0, 1fr);
}

@media (max-width: 900px) {
  #aba-franquia-loja .frq-loja-hero {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
    padding: 22px 24px;
  }

  #aba-franquia-loja .frq-loja-hero__copy {
    max-width: none;
  }

  #aba-franquia-loja .frq-loja-hero__actions {
    flex-wrap: wrap;
    width: 100%;
  }
}

@media (max-width: 640px) {
  #aba-franquia-loja .frq-loja-hero {
    align-items: flex-start;
    flex-direction: column;
    padding: 22px;
  }

  #aba-franquia-loja .frq-loja-hero__actions {
    flex-wrap: wrap;
    width: 100%;
  }

  .frq-loja-dialog {
    max-height: 92vh;
    max-width: calc(100vw - 20px);
  }

  .frq-loja-dialog__head,
  .frq-loja-dialog__body {
    padding-left: 16px;
    padding-right: 16px;
  }

  .frq-loja-dialog__body {
    max-height: calc(92vh - 84px);
  }

  #aba-franquia-loja .frq-loja-count {
    align-items: baseline;
    flex-direction: row;
    gap: 8px;
    min-width: 0;
    padding: 9px 13px;
  }

  #aba-franquia-loja .frq-loja-create {
    flex: 1 1 auto;
  }

  #aba-franquia-loja .frq-loja-publish {
    flex: 1 1 100%;
    white-space: normal;
  }

  .frq-loja-dialog .frq-loja-form {
    grid-template-columns: minmax(0, 1fr);
  }

  .frq-loja-dialog .frq-loja-field--wide,
  .frq-loja-dialog .frq-loja-submit {
    grid-column: auto;
  }

  #aba-franquia-loja .frq-loja-unit {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  #aba-franquia-loja .frq-loja-unit__balance {
    align-items: flex-start;
    flex-basis: 100%;
    margin-left: 55px;
    text-align: left;
  }

  #aba-franquia-loja .frq-loja-transfer-button {
    margin-left: 55px;
  }

  #aba-franquia-loja .frq-loja-actions__menu .frq-loja-remove {
    margin-left: 0;
  }
}
