@import "lumen-theme.css";
@import "lumen-components.css";


/****** 403 *******/

.pg {
  min-height: calc(100vh - 80px);
  display: grid;
  place-items: center;
  padding: 2.5rem 1rem
}

.cd {
  width: 100%;
  max-width: 640px;
  background: var(--lm-card-bg, var(--lm-surface));
  border: 1px solid var(--lm-line);
  border-top: 1px solid var(--bs-primary);
  border-radius: var(--lm-card-radius);
  box-shadow: var(--lm-sh-2);
  padding: clamp(1.5rem, 5vw, 2.75rem);
  text-align: center
}

.lk {
  position: relative;
  width: 240px;
  margin: 0 auto 1rem;
  color: var(--bs-primary)
}

.lk::before {
  content: "";
  position: absolute;
  inset: -10% -15%;
  background: radial-gradient(closest-side, rgba(var(--lm-glow), .28), transparent);
  animation: pulse 4s ease-in-out infinite;
  z-index: 0
}

.lk svg {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto
}

.sh {
  transform-origin: 110px 62px;
  animation: wig 4s ease-in-out infinite
}

@keyframes wig {

  0%,
  68%,
  100% {
    transform: rotate(0)
  }

  74% {
    transform: rotate(-8deg)
  }

  80% {
    transform: rotate(6deg)
  }

  86% {
    transform: rotate(-3deg)
  }

  92% {
    transform: rotate(0)
  }
}

@keyframes pulse {

  0%,
  100% {
    opacity: .6
  }

  50% {
    opacity: 1
  }
}

.meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .9rem 1.5rem;
  text-align: left;
  background: var(--lm-soft);
  border-radius: 1rem;
  padding: 1.1rem 1.25rem;
  margin-top: 1.75rem
}

.meta dt {
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--lm-muted);
  margin: 0
}

.meta dd {
  margin: .15rem 0 0;
  font-weight: 600;
  font-size: .88rem;
  word-break: break-word
}

@media (max-width:575.98px) {
  .meta {
    grid-template-columns: 1fr
  }
}

@media (prefers-reduced-motion:reduce) {

  .sh,
  .lk::before {
    animation: none
  }

  .btn {
    transition: none
  }
}

/***********/

.title-icon{
  border-radius: 12px;
  background-color: var(--bs-secondary-bg);
  padding: 5px 12px;
  margin-right: 15px;
  font-size: 24px;
}

#table-fields thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background-color: var(--lm-table-head-bg, var(--lm-surface));
}

td.colnumber {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  font-variant-numeric: tabular-nums
}

.app-content>.fields-form {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
}

.fields-form>.fields-editor {
  flex: 1;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
}

.fields-editor>.scroll-container {
  overflow: auto;
  scrollbar-gutter: stable;
}

.fields-editor {
  visibility: hidden;
}


body {
  /*background-color: #f2f2f2;
  font-family: "Helvetica Neue";*/
  height: 100vh;
}

#list-dashboard>ul>li>small {
  color: #97A5C2;
}
[data-bs-theme=dark] #list-dashboard>ul>li>small { color: var(--lm-muted); }

.icon-card {
  color: #8FAAFF;
  font-size: 36px;
  position: absolute;
  right: 15px;
}
[data-bs-theme=dark] .icon-card { color: var(--bs-primary); }

/* Layout de pantalla completa: el desplazamiento se habilita por contenedor. */
body.app-layout {
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.app-layout>nav,
.app-layout>footer {
  flex-shrink: 0;
}

.app-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
}

.app-content>* {
  flex-shrink: 0;
}

.flex-panel {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  min-width: 0;
}

.flex-area {
  flex: 1;
  min-height: 0;
  min-width: 0;
}

.scroll-container {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior-y: contain;
  padding-right: 7px;
}

.app-content>.scroll-container {
  flex: 1;
}

.app-content>.content-table-card {
  flex: 1;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
}

.content-table-card>.table-scroll {
  flex: 1;
  min-height: 0;
  min-width: 0;
  overflow: auto;
  overscroll-behavior: contain;
}

.content-table-card>.card-body {
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
}

.content-table-card>.card-body>.table-scroll {
  flex: 1;
  min-height: 0;
  min-width: 0;
  overflow: auto;
  overscroll-behavior: contain;
}

.content-table-card>.media-library-body {
  display: block;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.content-table-card>.media-library-body>.table-scroll {
  overflow: visible;
}

#media-view-toggle,
#media-explorer-view-toggle {
  text-align: left;
  cursor: pointer;
}

#media-view-icon,
#media-explorer-view-icon {
  display: inline-block;
  width: 1em;
  text-align: center;
}

#media-view-options,
#media-explorer-view-options {
  /* Conserva el transform que Bootstrap calcula para posicionar el menú. */
  animation: none;
  --bs-dropdown-min-width: 8.5rem;
  --bs-dropdown-border-radius: .625rem;
}

.table-scroll thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background-color: var(--lm-table-head-bg, var(--lm-surface));
}

#content-tb .content-title-preview {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  overflow: hidden;
  line-height: 1.4;
  max-height: 4.2em;
  max-width: 300px;
}

#content-tb .content-text-preview {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  overflow: hidden;
  line-height: 1.4;
  max-height: 4.2em;
  max-width: 300px;
}

.app-layout .modal {
  overflow: hidden;
}

.goffeelogo {
  display: block;
  margin: 0 auto;
}


/*  
    channel 
*/
.group-actions {
  position: absolute;
  right: 60px;
  top: 5px;
  z-index: 1000;
}

.container-fields {
  display: flex;
  justify-content: flex-start;
  gap: 20px;
}

.container-fields>.input-container {
  border: 1px solid var(--lm-line);
  padding: 10px;
  border-radius: 10px;
  width: 150px;
  text-align: center;
}

.drag-handle {
  cursor: grab;
  border: none;
  background: transparent;
  padding: 8px;
  font-size: 20px;
  touch-action: none;
}

.drag-handle:active {
  cursor: grabbing;
}


.btn-icon {
  font-size: 18px;
  padding-left: 7px;
  padding-right: 7px;
  padding-top: 2px;
  padding-bottom: 2px;
  color: #93C5FD;
}

.btn-icon:hover {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 6px;
}
[data-bs-theme=dark] .btn-icon:hover { background: var(--lm-soft); }


/**  library**/

.library.row {
  height: 11rem;
  gap: 10px;
}

.library .card {
  width: 12rem;
  height: 10rem;
}

.library img {
  height: 7rem;
  object-fit: contain;
}

td>img {
  max-height: 80px;
  object-fit: contain;
}

.image-info {
  max-height: calc(100dvh - 16rem);
  object-fit: contain;
}

.mosaic-media {
  grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr));
  gap: 1rem;
  display: grid;
}

.mosaic-media .card-text {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
