/* RACCOON::6P-05 — conceito CRM Villa Aconchego. Cores do logotipo oficial. */

#trabalhos .card--crm .card-media--crm {
  display: flex;
  flex-direction: column;
  aspect-ratio: auto;
  min-height: 0;
  overflow: hidden;
  container-type: inline-size;
  background: #0f1115;
}

#trabalhos .card--crm .card-media--crm::after {
  display: none;
}

#trabalhos .card--crm .card-media-badge {
  position: static;
  z-index: 2;
  display: block;
  max-width: none;
  margin: 0;
  padding: 0.45rem 0.7rem;
  border-radius: 0;
  background: #fdb913;
  color: #0f1115;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.3;
  text-align: center;
  text-transform: none;
  white-space: normal;
}

#trabalhos .card--crm .crm-app {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  min-height: 23.5rem;
  background: #f7f4ee;
  color: #102326;
  box-shadow: inset 0 0 0 1px rgba(2, 127, 142, 0.35);
}

#trabalhos .card--crm .crm-app__nav {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.55rem;
  background: #027f8e;
}

#trabalhos .card--crm .crm-app__logo {
  width: 4.5rem;
  height: auto;
  margin: 0.1rem auto 0.4rem;
  object-fit: cover;
  transform: none;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(237, 188, 49, 0.9), 0 0 0 5px rgba(255, 255, 255, 0.12), 0 8px 16px rgba(0, 0, 0, 0.24);
}

#trabalhos .card--crm:hover .crm-app__logo,
#trabalhos .card--crm .crm-app__logo {
  transform: none;
}

#trabalhos .card--crm .crm-app__tab {
  margin: 0;
  padding: 0.45rem 0.35rem;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: left;
  cursor: pointer;
}

#trabalhos .card--crm .crm-app__tab[aria-selected="true"] {
  background: #db8715;
  color: #102326;
}

#trabalhos .card--crm .crm-app__tab:focus-visible {
  outline: 2px solid #fdb913;
  outline-offset: 2px;
}

#trabalhos .card--crm .crm-app__main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 0.55rem 0.65rem 0.7rem;
}

#trabalhos .card--crm .crm-app__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  margin-bottom: 0.45rem;
  color: #027f8e;
  font-size: 0.78rem;
}

#trabalhos .card--crm .crm-app__bar strong {
  color: #102326;
  font-size: 0.86rem;
}

#trabalhos .card--crm .crm-app__brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0.3rem;
  padding-bottom: 0.2rem;
  border-bottom: 2px solid rgba(219, 135, 21, 0.55);
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

#trabalhos .card--crm .crm-app__brand-villa {
  color: #db8715;
}

#trabalhos .card--crm .crm-app__brand-aconchego {
  color: #027f8e;
}

#trabalhos .card--crm .crm-app__panel[hidden] {
  display: none;
}

#trabalhos .card--crm .crm-app__caption {
  margin: 0 0 0.4rem;
  color: #102326;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.35;
}

#trabalhos .card--crm .crm-cal {
  display: grid;
  grid-template-columns: 4.4rem repeat(7, minmax(0, 1fr));
  gap: 0.18rem 0.16rem;
  align-items: center;
  margin-bottom: 0.5rem;
}

#trabalhos .card--crm .crm-cal span,
#trabalhos .card--crm .crm-cal b {
  color: #3d5558;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.1;
}

#trabalhos .card--crm .crm-cal b {
  color: #102326;
  font-size: 0.68rem;
}

#trabalhos .card--crm .crm-cal i {
  display: block;
  height: 0.62rem;
  border-radius: 3px;
  background: #e7e1d6;
}

#trabalhos .card--crm .crm-cal i.is-stay {
  background: #027f8e;
  transform-origin: left center;
}

#trabalhos .card--crm .crm-cal i.is-out,
#trabalhos .card--crm .crm-cal i.is-in {
  background: #db8715;
  transform-origin: left center;
}

#trabalhos .card--crm .crm-book,
#trabalhos .card--crm .crm-ops,
#trabalhos .card--crm .crm-ledger {
  display: grid;
  gap: 0.32rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

#trabalhos .card--crm .crm-book li,
#trabalhos .card--crm .crm-ops li,
#trabalhos .card--crm .crm-ledger li {
  display: grid;
  gap: 0.05rem;
  padding: 0.35rem 0.45rem;
  border-radius: 10px;
  border-left: 3px solid #027f8e;
  background: #fff;
}

#trabalhos .card--crm .crm-book li:nth-child(2),
#trabalhos .card--crm .crm-ops li:first-child {
  border-left-color: #db8715;
}

#trabalhos .card--crm .crm-book span,
#trabalhos .card--crm .crm-ops b,
#trabalhos .card--crm .crm-ledger b {
  color: #102326;
  font-size: 0.78rem;
  font-weight: 700;
}

#trabalhos .card--crm .crm-book em,
#trabalhos .card--crm .crm-ops span,
#trabalhos .card--crm .crm-ledger span,
#trabalhos .card--crm .crm-book small,
#trabalhos .card--crm .crm-ops small {
  color: #3d5558;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 600;
  line-height: 1.3;
}

#trabalhos .card--crm .crm-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.35rem;
  margin-bottom: 0.45rem;
}

#trabalhos .card--crm .crm-metrics p {
  display: grid;
  gap: 0.1rem;
  margin: 0;
  padding: 0.4rem 0.35rem;
  border-radius: 10px;
  background: #027f8e;
  color: #fff;
}

#trabalhos .card--crm .crm-metrics b {
  font-size: 1.15rem;
  line-height: 1;
}

#trabalhos .card--crm .crm-metrics span {
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1.25;
}

#trabalhos .card--crm .crm-arch {
  margin: 0.45rem 0 0;
  color: #3d5558;
  font-size: 0.68rem;
  line-height: 1.35;
}

@media (prefers-reduced-motion: no-preference) {
  #trabalhos .card--crm .crm-app__panel:not([hidden]) {
    animation: crm-wipe 0.55s cubic-bezier(0.2, 0.7, 0.2, 1);
  }

  #trabalhos .card--crm .crm-cal i.is-stay,
  #trabalhos .card--crm .crm-cal i.is-out,
  #trabalhos .card--crm .crm-cal i.is-in {
    animation: crm-stay 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }
}

@keyframes crm-wipe {
  from { clip-path: inset(0 100% 0 0); }
  to { clip-path: inset(0 0 0 0); }
}

@keyframes crm-stay {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@container (max-width: 520px) {
  #trabalhos .card--crm .crm-app {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  #trabalhos .card--crm .crm-app__nav {
    display: grid;
    grid-template-columns: auto 1fr 1fr 1fr;
    align-items: center;
    gap: 0.28rem;
  }

  #trabalhos .card--crm .crm-app__logo {
    width: 3rem;
    margin: 0;
  }

  #trabalhos .card--crm .crm-app__tab {
    text-align: center;
    font-size: 0.72rem;
  }

  #trabalhos .card--crm .crm-cal {
    grid-template-columns: 3.4rem repeat(7, minmax(0, 1fr));
  }
}
