/*
  AVANZA CONTROL V5.5.6
  Consulta, edición controlada y visor documental.
*/

.client-view-toolbar-v556 {
  margin-left: auto;

  display: flex;
  align-items: center;
  gap: 8px;
}

.client-view-edit-v556,
.client-view-cancel-v556 {
  min-height: 38px;
  padding: 8px 12px;

  border-radius: 10px;

  font-size: 9px;
  font-weight: 900;
  cursor: pointer;
}

.client-view-edit-v556 {
  border: 1px solid #075fb3;
  background:
    linear-gradient(
      135deg,
      #075fb3,
      #1283d5
    );
  color: #ffffff;
}

.client-view-cancel-v556 {
  border: 1px solid #d4e0ea;
  background: #f8fafc;
  color: #52687d;
}

.client-view-edit-v556[hidden],
.client-view-cancel-v556[hidden] {
  display: none !important;
}

/* Foto principal junto al nombre */

.client-view-avatar-v556 {
  width: 68px;
  height: 68px;
  flex: 0 0 auto;

  display: grid;
  place-items: center;

  overflow: hidden;

  border: 2px solid #ffffff;
  border-radius: 18px;

  background: #e7f2fb;
  color: #075fb3;

  font-size: 25px;
  cursor: zoom-in;

  box-shadow:
    0 7px 18px
    rgba(7, 31, 61, .12);
}

.client-view-avatar-v556 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Modo consulta */

.client-view-readonly-v556
.client-master-footer {
  display: none !important;
}

.client-view-readonly-v556
.customer-evidence-upload-v553 {
  display: none !important;
}

.client-view-readonly-v556
input:disabled,
.client-view-readonly-v556
select:disabled,
.client-view-readonly-v556
textarea:disabled {
  opacity: 1;

  border-color: #e0e7ed;
  background: #f5f8fa;
  color: #425a70;

  cursor: default;
  -webkit-text-fill-color: #425a70;
}

.client-view-readonly-v556
textarea:disabled {
  resize: none;
}

/* Modo edición */

.client-view-editing-v556
.client-master-footer {
  display: flex !important;
}

.client-view-editing-v556
.customer-evidence-upload-v553 {
  display: block !important;
}

/* Botón para abrir documentos */

.customer-evidence-view-v556 {
  width: 100%;
  min-height: 37px;
  margin-bottom: 6px;
  padding: 8px 10px;

  border: 1px solid #b5d6c2;
  border-radius: 9px;

  background: #eaf8ef;
  color: #08743b;

  font-size: 9px;
  font-weight: 900;
  cursor: pointer;
}

[data-evidence-preview-url],
[data-new-photo-preview] {
  cursor: zoom-in;
}

/* Visor interno autenticado */

.customer-image-viewer-v556 {
  position: fixed;
  inset: 0;
  z-index: 30000;

  padding: 28px;

  display: grid;
  place-items: center;

  background:
    rgba(5, 18, 34, .82);

  backdrop-filter: blur(8px);
}

.customer-image-viewer-v556.hidden {
  display: none !important;
}

.customer-image-viewer-card-v556 {
  width: min(980px, 100%);
  max-height: calc(100vh - 56px);

  overflow: hidden;

  border: 1px solid
    rgba(255, 255, 255, .20);
  border-radius: 18px;

  background: #ffffff;

  box-shadow:
    0 28px 70px
    rgba(0, 0, 0, .38);
}

.customer-image-viewer-card-v556 header {
  min-height: 58px;
  padding: 12px 15px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;

  border-bottom: 1px solid #dce5ed;

  background:
    linear-gradient(
      135deg,
      #071f3d,
      #0b4f8e
    );

  color: #ffffff;
}

.customer-image-viewer-card-v556 header button {
  min-height: 34px;
  padding: 7px 10px;

  border: 1px solid
    rgba(255, 255, 255, .25);
  border-radius: 9px;

  background:
    rgba(255, 255, 255, .12);
  color: #ffffff;

  font-size: 9px;
  font-weight: 850;
  cursor: pointer;
}

.customer-image-viewer-body-v556 {
  max-height:
    calc(100vh - 115px);
  min-height: 320px;

  padding: 14px;

  display: grid;
  place-items: center;

  overflow: auto;

  background: #eef2f5;
}

.customer-image-viewer-body-v556 img {
  max-width: 100%;
  max-height:
    calc(100vh - 145px);

  border-radius: 10px;

  object-fit: contain;

  box-shadow:
    0 8px 24px
    rgba(7, 31, 61, .16);
}

@media (max-width: 720px) {
  .client-master-heading {
    flex-wrap: wrap;
  }

  .client-view-toolbar-v556 {
    width: 100%;
    margin-left: 0;
  }

  .client-view-edit-v556,
  .client-view-cancel-v556 {
    width: 100%;
  }

  .customer-image-viewer-v556 {
    padding: 10px;
  }

  .customer-image-viewer-card-v556 {
    max-height:
      calc(100vh - 20px);
  }

  .customer-image-viewer-body-v556 {
    min-height: 240px;
    max-height:
      calc(100vh - 78px);
  }
}
