:root {
  font-family: 'Inter', 'Playfair Display', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.6;
  --base-font-size: clamp(14px, 0.35vw + 13px, 16px);
  font-size: var(--base-font-size);
  color: #07161c;
  background-color: #f6f6f3;
  --brand-green: #163c3a;
  --brand-navy: #0b2742;
  --brand-blue: #113c68;
  --brand-red: #c84a3c;
  --brand-gold: #b48a5c;
  --panel-bg: rgba(255, 255, 255, 0.98);
  --border: rgba(6, 20, 26, 0.1);
  --hero-gradient: linear-gradient(135deg, #0d1f29 0%, #113c68 50%, #163c3a 100%);
  --hero-gradient-alt: linear-gradient(135deg, #0b2742 0%, #163c3a 55%, #c84a3c 115%);
  --hero-gradient-soft: linear-gradient(135deg, #0c1c25 0%, #163c3a 55%, #184d64 100%);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(115deg, rgba(17, 60, 104, 0.07), rgba(22, 60, 58, 0.05)),
    linear-gradient(300deg, #fdfdfc 0%, #f3f3f0 45%, #ecebe6 100%);
  color: #07161c;
  text-rendering: optimizeLegibility;
}

html {
  scrollbar-gutter: stable;
}

@media (min-width: 900px) {
  body {
    overflow-y: scroll;
  }
}

.is-hidden {
  display: none !important;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Click affordance: show hand cursor on interactive elements */
a[href],
button:not([disabled]),
input[type='button']:not([disabled]),
input[type='submit']:not([disabled]),
input[type='reset']:not([disabled]),
label[for],
summary,
[role='button']:not([aria-disabled='true']),
[role='link']:not([aria-disabled='true']),
[role='menuitem']:not([aria-disabled='true']),
[role='tab']:not([aria-disabled='true']),
[role='option']:not([aria-disabled='true']),
[tabindex]:not([tabindex='-1']) {
  cursor: pointer;
}

[disabled],
[aria-disabled='true'] {
  cursor: not-allowed;
}

@keyframes skeletonShimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

.is-skeleton {
  pointer-events: none;
}

.clients-card.is-skeleton:hover,
.contracts-card.is-skeleton:hover,
.collaborator-card.is-skeleton:hover {
  transform: none;
  box-shadow: 0 20px 45px rgba(12, 28, 44, 0.08);
}

.skeleton-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.skeleton-line,
.skeleton-chip,
.skeleton-circle {
  position: relative;
  overflow: hidden;
  background: rgba(6, 20, 26, 0.08);
}

.skeleton-line::after,
.skeleton-chip::after,
.skeleton-circle::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0),
    rgba(255, 255, 255, 0.55),
    rgba(255, 255, 255, 0)
  );
  animation: skeletonShimmer 1.2s ease-in-out infinite;
}

.skeleton-line {
  height: 12px;
  border-radius: 999px;
}

.skeleton-line--lg {
  height: 16px;
  width: 64%;
}

.skeleton-line--md {
  width: 52%;
}

.skeleton-line--sm {
  width: 38%;
}

.skeleton-chip {
  height: 20px;
  width: 92px;
  border-radius: 999px;
}

.skeleton-circle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(12, 28, 44, 0.1);
  background: rgba(6, 20, 26, 0.06);
}

/* Selection page */
.page--selection {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.5rem;
  min-height: 100vh;
}

.selection-shell {
  width: min(1200px, 100%);
  min-height: calc(100vh - 5rem);
  background: var(--panel-bg);
  border-radius: 2rem;
  padding: 2.5rem;
  box-shadow: 0 40px 80px rgba(12, 13, 16, 0.15);
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
}

.selection-intro {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3rem;
}

.selection-intro__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.4em;
  font-size: 0.85rem;
  color: rgba(12, 13, 16, 0.55);
}

.selection-intro h1 {
  margin: 0.5rem 0 0.75rem;
  font-size: clamp(2.3rem, 4vw, 3.1rem);
  font-family: 'Playfair Display', serif;
}

.selection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.25rem;
  flex: 1;
  align-items: stretch;
}

.selection-card {
  border-radius: 1.35rem;
  padding: 1.6rem;
  border: 1px solid var(--border);
  background: white;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  min-height: 100%;
}

.selection-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.15);
}

.selection-card__badge {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.75rem;
  color: rgba(12, 13, 16, 0.5);
}

.selection-card__cta {
  margin-top: auto;
  font-weight: 600;
  color: var(--brand-blue);
}

.selection-footer {
  text-align: center;
  margin-top: 2.5rem;
  color: rgba(6, 20, 26, 0.55);
}

.selection-ornament {
  position: absolute;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.35), rgba(17, 60, 104, 0.35));
  filter: blur(8px);
  z-index: 1;
}

.selection-ornament--left {
  left: -120px;
  bottom: -50px;
}

.selection-ornament--right {
  right: -150px;
  top: -40px;
}

/* Gateway page */
.page--gateway {
  min-height: 100vh;
  background: radial-gradient(circle at top left, rgba(12, 83, 128, 0.12), transparent 40%),
    radial-gradient(circle at 80% 10%, rgba(168, 120, 60, 0.12), transparent 35%),
    #f5f7fb;
  color: #0f1b28;
  font-family: 'Inter', sans-serif;
}

.gateway-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 3rem;
  padding: 2.5rem 3.5rem 3rem;
}

.gateway-header {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 2rem;
}

.gateway-brand {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.gateway-brand__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.4em;
  font-size: 0.65rem;
  color: rgba(15, 27, 40, 0.55);
}

.gateway-brand__name {
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.gateway-nav {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.gateway-nav__link {
  text-decoration: none;
  color: rgba(15, 27, 40, 0.7);
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
}

.gateway-nav__link.is-active::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 24px;
  height: 2px;
  background: #0d3a5e;
  border-radius: 99px;
}

.gateway-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.gateway-btn {
  border-radius: 999px;
  padding: 0.85rem 1.5rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gateway-btn--primary {
  background: #0d3a5e;
  color: #fff;
  box-shadow: 0 8px 18px rgba(13, 58, 94, 0.12);
}

.gateway-btn--ghost {
  background: #fff;
  color: #0d3a5e;
  border: 1px solid rgba(13, 58, 94, 0.18);
}

.gateway-btn:hover {
  transform: translateY(-1px);
}

.gateway-dropdown {
  position: relative;
}

.gateway-menu {
  position: absolute;
  top: calc(100% + 0.75rem);
  right: 0;
  background: #fff;
  border-radius: 1rem;
  padding: 0.5rem;
  border: 1px solid rgba(9, 20, 35, 0.1);
  box-shadow: 0 20px 45px rgba(7, 20, 35, 0.15);
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 10;
}

.gateway-dropdown.is-open .gateway-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.gateway-menu__item {
  display: flex;
  width: 100%;
  padding: 0.7rem 0.9rem;
  border-radius: 0.8rem;
  text-decoration: none;
  color: #0f1b28;
  font-weight: 500;
  background: transparent;
  border: none;
  text-align: left;
  cursor: pointer;
}

.gateway-menu__item:hover {
  background: rgba(13, 58, 94, 0.08);
}

.gateway-main {
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
}

.gateway-hero {
  max-width: 720px;
}

.gateway-hero__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.7rem;
  color: rgba(15, 27, 40, 0.55);
}

.gateway-hero h1 {
  margin: 0.8rem 0;
  font-size: 2.6rem;
  font-family: 'Playfair Display', 'Times New Roman', serif;
  color: #0f1b28;
}

.gateway-hero p {
  margin: 0;
  font-size: 1rem;
  color: rgba(15, 27, 40, 0.7);
}

.gateway-hero__actions {
  margin-top: 1.5rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.gateway-panels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.gateway-panel {
  background: #fff;
  padding: 1.6rem;
  border-radius: 1.4rem;
  border: 1px solid rgba(9, 20, 35, 0.08);
  box-shadow: 0 20px 40px rgba(7, 20, 35, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.gateway-panel__badge {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(13, 58, 94, 0.6);
}

.gateway-panel h2 {
  margin: 0;
  font-size: 1.4rem;
}

.gateway-panel p {
  margin: 0;
  color: rgba(15, 27, 40, 0.65);
}

.gateway-panel__link {
  margin-top: auto;
  text-decoration: none;
  font-weight: 600;
  color: #0d3a5e;
}

.gateway-demo {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding: 1.8rem 2rem;
  border-radius: 1.4rem;
  background: #fff;
  border: 1px solid rgba(9, 20, 35, 0.08);
  box-shadow: 0 20px 40px rgba(7, 20, 35, 0.08);
}

.gateway-demo__actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.gateway-demo__hint {
  width: 100%;
  margin: 0;
  color: rgba(15, 27, 40, 0.5);
  font-size: 0.85rem;
}

.gateway-footer {
  margin-top: auto;
  color: rgba(15, 27, 40, 0.5);
  font-size: 0.85rem;
}

/* Nessaly's Group marketing (index.html) */
.ng-header {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 1.1rem 1.25rem;
  border-radius: 1.4rem;
  background: rgba(245, 247, 251, 0.72);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(9, 20, 35, 0.08);
  box-shadow: 0 18px 40px rgba(7, 20, 35, 0.06);
}

.ng-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 240px;
}

.ng-brand__logo {
  width: 220px;
  max-width: 220px;
  height: auto;
  display: block;
}

.ng-brand__text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.ng-actions .gateway-btn {
  white-space: nowrap;
}

.ng-hero {
  padding-top: 1rem;
}

.ng-trust {
  margin-top: 2.25rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.ng-trust__item {
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(9, 20, 35, 0.08);
  border-radius: 1.2rem;
  padding: 1.1rem 1.15rem;
  box-shadow: 0 16px 35px rgba(7, 20, 35, 0.06);
  display: grid;
  gap: 0.35rem;
}

.ng-trust__item strong {
  font-size: 0.98rem;
  color: #0f1b28;
}

.ng-trust__item span {
  font-size: 0.9rem;
  color: rgba(15, 27, 40, 0.68);
}

.ng-section {
  display: grid;
  gap: 1.6rem;
}

.ng-section__heading {
  max-width: 900px;
}

.ng-kicker {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.75rem;
  color: rgba(15, 27, 40, 0.55);
}

.ng-title {
  margin: 0.6rem 0 0.5rem;
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem, 2.2vw, 2.15rem);
  color: #0f1b28;
}

.ng-lead {
  margin: 0;
  font-size: 1rem;
  color: rgba(15, 27, 40, 0.7);
}

.ng-products .gateway-panel {
  gap: 0.95rem;
}

.ng-product__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.ng-product__logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  flex: 0 0 auto;
}

.ng-product__logo--png {
  border-radius: 0.9rem;
  background: rgba(13, 58, 94, 0.06);
  padding: 0.35rem;
}

.ng-product__name {
  margin: 0;
  font-size: 1.35rem;
  letter-spacing: 0.01em;
}

.ng-product__desc {
  margin: 0;
  color: rgba(15, 27, 40, 0.7);
}

.ng-product__list {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.35rem;
  color: rgba(15, 27, 40, 0.75);
  font-size: 0.95rem;
}

.ng-section--details {
  gap: 1.2rem;
}

.ng-detail {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(9, 20, 35, 0.08);
  border-radius: 1.6rem;
  padding: 1.8rem;
  box-shadow: 0 22px 55px rgba(7, 20, 35, 0.08);
  display: grid;
  gap: 1.4rem;
}

.ng-detail__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
}

.ng-detail__card {
  background: #fff;
  border: 1px solid rgba(9, 20, 35, 0.08);
  border-radius: 1.2rem;
  padding: 1.4rem;
  display: grid;
  gap: 0.8rem;
}

.ng-detail__card h3 {
  margin: 0;
  font-size: 1.05rem;
}

.ng-detail__card ul {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.35rem;
  color: rgba(15, 27, 40, 0.75);
}

.ng-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.ng-pill {
  background: rgba(13, 58, 94, 0.08);
  border: 1px solid rgba(13, 58, 94, 0.12);
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.85rem;
  color: rgba(13, 58, 94, 0.9);
}

.ng-detail__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 0.4rem;
}

.ng-pricing {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.3rem;
}

.ng-price h3 {
  margin: 0;
  font-size: 1.9rem;
}

.ng-muted {
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(15, 27, 40, 0.55);
}

.ng-price__line {
  margin: 0;
  color: rgba(15, 27, 40, 0.7);
}

.ng-price__list {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.35rem;
  color: rgba(15, 27, 40, 0.75);
}

.ng-usage {
  align-items: flex-start;
}

.ng-usage__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem 1.1rem;
}

.ng-usage__item {
  display: grid;
  gap: 0.15rem;
}

.ng-usage__item strong {
  font-size: 1.2rem;
  color: #0d3a5e;
}

.ng-usage__item span {
  color: rgba(15, 27, 40, 0.65);
}

.ng-two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.3rem;
}

.ng-values {
  display: grid;
  gap: 0.75rem;
}

.ng-values__item {
  display: grid;
  gap: 0.1rem;
}

.ng-values__item span {
  color: rgba(15, 27, 40, 0.65);
}

.ng-contact {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 1.3rem;
  align-items: start;
}

.ng-form {
  display: grid;
  gap: 1rem;
}

.ng-form__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.ng-field {
  display: grid;
  gap: 0.35rem;
  font-weight: 600;
  color: rgba(15, 27, 40, 0.8);
}

.ng-field input,
.ng-field select,
.ng-field textarea {
  width: 100%;
  border-radius: 1rem;
  border: 1px solid rgba(9, 20, 35, 0.15);
  padding: 0.85rem 1rem;
  font: inherit;
  color: #0f1b28;
  background: rgba(245, 247, 251, 0.7);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ng-field textarea {
  resize: vertical;
  min-height: 120px;
}

.ng-field input:focus,
.ng-field select:focus,
.ng-field textarea:focus {
  border-color: rgba(13, 58, 94, 0.45);
  box-shadow: 0 0 0 4px rgba(13, 58, 94, 0.12);
}

.ng-form__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  align-items: center;
  justify-content: space-between;
}

.ng-form__hint {
  margin: 0;
  color: rgba(15, 27, 40, 0.55);
  font-size: 0.9rem;
  max-width: 320px;
}

.ng-contact__actions {
  display: grid;
  gap: 0.75rem;
}

.ng-disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ng-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.ng-footer__links {
  display: flex;
  gap: 1.15rem;
  flex-wrap: wrap;
}

.ng-footer__links a {
  color: rgba(15, 27, 40, 0.55);
}

.ng-footer__links a:hover {
  color: rgba(13, 58, 94, 0.9);
}

@media (max-width: 1100px) {
  .ng-brand__logo {
    width: 180px;
    max-width: 180px;
  }

  .ng-pricing {
    grid-template-columns: 1fr;
  }

  .ng-two-col {
    grid-template-columns: 1fr;
  }

  .ng-contact {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .ng-header {
    position: relative;
    padding: 1.2rem 1.2rem;
  }

  .ng-trust {
    grid-template-columns: 1fr;
  }

  .ng-detail__grid {
    grid-template-columns: 1fr;
  }

  .ng-form__row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .gateway-shell {
    padding: 2rem 1.5rem 2.5rem;
  }

  .gateway-header {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .gateway-actions {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}

/* Auth access pages */
.page--auth {
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: clamp(1rem, 3.5vw, 2.6rem);
  font-family: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: radial-gradient(circle at 12% 12%, rgba(11, 39, 66, 0.18), transparent 45%),
    radial-gradient(circle at 88% 22%, rgba(22, 116, 85, 0.18), transparent 46%),
    radial-gradient(circle at 55% 92%, rgba(193, 120, 58, 0.2), transparent 50%),
    linear-gradient(135deg, #f7f8fb 0%, #eef1f6 55%, #f7f7f2 100%);
}

.page--auth-v2 .auth-v2 {
  width: min(720px, 100%);
  margin: auto;
  display: grid;
  gap: 1.4rem;
  background: rgba(255, 255, 255, 0.96);
  border-radius: clamp(1.1rem, 2.4vw, 1.8rem);
  padding: clamp(1.4rem, 4vw, 2.4rem);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 26px 70px rgba(4, 12, 28, 0.12);
  max-width: 100%;
  min-width: 0;
}

.page--auth.page--auth-v2 {
  display: block;
}

.page--auth-v2 .auth-v2__header {
  display: grid;
  gap: 1.1rem;
  min-width: 0;
}

.page--auth-v2 .auth-v2__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.page--auth-v2 .auth-v2__logo {
  height: 44px;
  width: auto;
  object-fit: contain;
}

.page--auth-v2 .auth-v2__brand-text {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: rgba(15, 23, 42, 0.92);
  overflow-wrap: anywhere;
}

.page--auth-v2 .auth-v2__brand-mark {
  color: #0a3d62;
}

.page--auth-v2 .auth-v2__brand-suffix {
  font-weight: 500;
  color: rgba(15, 23, 42, 0.55);
}

.page--auth-v2 .auth-v2__title {
  display: grid;
  gap: 0.4rem;
  min-width: 0;
}

.page--auth-v2 .auth-v2__eyebrow {
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  color: rgba(12, 13, 16, 0.55);
}

.page--auth-v2 .auth-v2__title h1 {
  margin: 0;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0f1b28;
}

.page--auth-v2 .auth-v2__title p {
  margin: 0;
  color: rgba(15, 27, 40, 0.72);
  line-height: 1.6;
}

.page--auth-v2 .auth-v2__tabs {
  max-width: 100%;
}

.page--auth-v2 .mode-switch {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

.page--auth-v2 .mode-switch--single {
  grid-template-columns: 1fr;
}

.page--auth-v2 .mode-switch__btn {
  width: 100%;
  min-width: 0;
  border-radius: 0.75rem;
  padding: 0.7rem 0.85rem;
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
  background: rgba(15, 23, 42, 0.06);
  color: rgba(15, 23, 42, 0.75);
  border: 1px solid transparent;
}

.page--auth-v2 .mode-switch__btn[aria-selected='true'] {
  background: #0a3d62;
  color: #fff;
  box-shadow: none;
}

.page--auth-v2 .auth-v2__panel {
  background: #fff;
  border-radius: 1rem;
  padding: clamp(1rem, 3vw, 1.6rem);
  border: 1px solid rgba(15, 23, 42, 0.08);
  display: grid;
  gap: 1rem;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
}

.page--auth-v2 .first-access__reference {
  width: 100%;
  box-sizing: border-box;
  max-width: 100%;
  flex-wrap: wrap;
  overflow-wrap: anywhere;
}

.page--auth-v2 .first-access__summary,
.page--auth-v2 .first-access__summary strong {
  overflow-wrap: anywhere;
}

.page--auth-v2 .password-strength__rules {
  flex-wrap: wrap;
}

.page--auth-v2 .password-strength__rules span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.page--auth-v2 .first-access-progress,
.page--auth-v2 .first-access-progress__bar,
.page--auth-v2 .first-access-slider,
.page--auth-v2 .first-access-slider__track,
.page--auth-v2 .first-access-slide,
.page--auth-v2 .password-strength {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.page--auth-v2 .form,
.page--auth-v2 .form__field,
.page--auth-v2 .form__field input,
.page--auth-v2 .form__field select,
.page--auth-v2 .form__field textarea,
.page--auth-v2 .primary-btn,
.page--auth-v2 .text-btn {
  max-width: 100%;
}

.page--auth-v2 .form {
  min-width: 0;
}

.page--auth-v2 .form.is-active {
  max-height: none;
  overflow: visible;
}

.page--auth-v2 .auth-v2__footer {
  display: flex;
  justify-content: flex-start;
}

.page--auth-v2 .primary-btn {
  width: 100%;
  text-transform: none;
  letter-spacing: 0.02em;
  box-shadow: 0 8px 18px rgba(12, 38, 72, 0.12);
}

.page--auth-v2 .primary-btn:hover {
  transform: none;
  box-shadow: 0 10px 22px rgba(12, 38, 72, 0.15);
}

.page--auth-v2 .text-btn {
  width: 100%;
  text-align: center;
  text-decoration: none;
  color: rgba(10, 61, 98, 0.85);
}

.page--auth-v2 .form__actions {
  gap: 0.6rem;
}

.page--auth-v2 .hint {
  margin: 0;
}

.page--auth-v2 .first-access-step,
.page--auth-v2 .first-access__actions {
  min-width: 0;
  width: 100%;
}

.page--auth-v2 .first-access__actions {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0.6rem;
}

@media (min-width: 720px) {
  .page--auth-v2 .form__actions {
    flex-direction: row;
  }

  .page--auth-v2 .primary-btn,
  .page--auth-v2 .text-btn {
    width: auto;
  }

  .page--auth-v2 .first-access__actions {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

@media (max-width: 720px) {
  .page--auth-v2 .auth-v2 {
    padding: 1.25rem;
  }

  .page--auth-v2 .auth-v2__panel {
    padding: 1rem;
  }

  .page--auth-v2 .form__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .page--auth-v2 .mode-switch {
    grid-template-columns: 1fr;
  }
}

.form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  opacity: 0;
  visibility: hidden;
  max-height: 0;
  overflow: hidden;
  transform: translateY(12px) scale(0.99);
  transition:
    opacity 0.45s ease,
    max-height 0.45s ease,
    transform 0.45s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: opacity, transform, max-height;
  pointer-events: none;
}

.form.is-active {
  opacity: 1;
  visibility: visible;
  max-height: 650px;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.form--panel:not([data-mode]) {
  opacity: 1;
  visibility: visible;
  max-height: none;
  transform: none;
  pointer-events: auto;
}

.form__field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-weight: 500;
}

.form-field {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.45rem;
  margin-bottom: 0.5rem;
}

.form-field > span {
  font-weight: 600;
  color: rgba(12, 13, 16, 0.75);
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  box-sizing: border-box;
  border-radius: 12px;
  border: 1px solid rgba(12, 13, 16, 0.16);
  padding: 0.7rem 0.85rem;
  font-size: 0.98rem;
  font-family: inherit;
  background: #f8fafc;
  transition: border-color 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.form-field textarea {
  min-height: 96px;
  line-height: 1.45;
  resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: rgba(17, 60, 104, 0.55);
  box-shadow: 0 0 0 3px rgba(17, 60, 104, 0.12);
  background: #fff;
}

.form-field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #1b4f6a 50%),
    linear-gradient(135deg, #1b4f6a 50%, transparent 50%),
    linear-gradient(to right, transparent, transparent);
  background-position: calc(100% - 18px) 50%, calc(100% - 12px) 50%, 100% 0;
  background-size: 6px 6px, 6px 6px, 2.5rem 100%;
  background-repeat: no-repeat;
  padding-right: 2.5rem;
}

.form__field--password .input-with-toggle {
  position: relative;
  display: flex;
  align-items: center;
}

.password-toggle {
  position: absolute;
  right: 0.75rem;
  background: transparent;
  border: none;
  font-size: 0.9rem;
  font-weight: 600;
  color: #0a3d62;
  cursor: pointer;
  padding: 0.4rem;
}

.password-toggle:focus-visible {
  outline: 2px solid var(--brand-blue);
  border-radius: 0.4rem;
}

.form__field input {
  border: 1px solid rgba(12, 13, 16, 0.15);
  border-radius: 0.9rem;
  padding: 0.95rem 1.1rem;
  font-size: 1rem;
  font-family: inherit;
  background: rgba(255, 255, 255, 0.93);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form__field input:focus {
  outline: none;
  border-color: rgba(10, 61, 98, 0.8);
  box-shadow: 0 0 0 3px rgba(10, 61, 98, 0.14);
}

.form__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}


.form__remember {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.95rem;
}

.form__remember label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  font-weight: 500;
}

.form__remember input[type='checkbox'] {
  width: 18px;
  height: 18px;
  accent-color: #0a3d62;
}

.primary-btn,
.text-btn {
  font-weight: 600;
  border-radius: 0.95rem;
  padding: 0.95rem 1.4rem;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.primary-btn {
  background: #0a3d62;
  color: white;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 8px 20px rgba(12, 38, 72, 0.15);
}

.primary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(12, 38, 72, 0.2);
}

.text-btn {
  background: transparent;
  color: #0a3d62;
  text-decoration: underline;
  padding-left: 0;
  padding-right: 0;
}

.mode-switch {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0.45rem;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(10, 61, 98, 0.06);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.8);
}

.mode-switch__btn {
  flex: 1 1 0;
  min-width: 0;
  border: none;
  border-radius: 999px;
  padding: 0.7rem 1rem;
  font-weight: 700;
  font-size: 0.86rem;
  letter-spacing: 0.04em;
  color: rgba(15, 23, 42, 0.68);
  background: transparent;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mode-switch__btn:hover {
  background: rgba(255, 255, 255, 0.6);
  color: rgba(10, 61, 98, 0.95);
}

.mode-switch__btn[aria-selected='true'] {
  background: rgba(255, 255, 255, 0.95);
  color: #0a3d62;
  box-shadow: 0 12px 30px rgba(10, 61, 98, 0.18);
}

.mode-switch__btn:active {
  transform: translateY(1px);
}

.form__status {
  min-height: 1.2rem;
  font-size: 0.92rem;
  font-weight: 500;
}

.form__status[data-state='success'] {
  color: #1c7a54;
}

.form__status[data-state='error'] {
  color: var(--brand-red);
}

.form__status[data-state='loading'] {
  color: #0c0d10;
}

.first-access-step {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.first-access-progress {
  width: 100%;
  margin: 0.35rem 0 1rem;
  display: grid;
  gap: 0.5rem;
  min-width: 0;
}

.first-access-progress__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.first-access-progress__label {
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(12, 13, 16, 0.62);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.first-access-progress__bar {
  position: relative;
  width: 100%;
  height: 38px;
  display: flex;
  align-items: center;
  border-radius: 999px;
}

.first-access-progress__bar::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 10px;
  border-radius: 999px;
  background: rgba(17, 60, 104, 0.08);
  border: 1px solid rgba(17, 60, 104, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.first-access-progress__fill {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, #0a3d62 0%, #1fd07a 100%);
  box-shadow: 0 6px 14px rgba(21, 178, 107, 0.3);
  transition: width 240ms ease;
}

.first-access-progress__steps {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: space-between;
  z-index: 2;
}

.first-access-progress__step {
  position: relative;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #f4f7fb;
  border: 2px solid rgba(10, 61, 98, 0.18);
  color: rgba(10, 61, 98, 0.55);
  font-size: 0.78rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.1);
  transition: transform 220ms ease, background 220ms ease, border-color 220ms ease, color 220ms ease, box-shadow 220ms ease;
}

.first-access-progress__step.is-active {
  background: #0a3d62;
  border-color: #0a3d62;
  color: #ffffff;
  transform: scale(1.08);
  box-shadow: 0 10px 24px rgba(10, 61, 98, 0.25);
}

.first-access-progress__step.is-completed {
  background: #e8fff1;
  border-color: #34e276;
  color: transparent;
  box-shadow: 0 8px 18px rgba(52, 226, 118, 0.25);
}

.first-access-progress__step.is-completed::after {
  content: '\2713';
  color: #16c34a;
  font-size: 0.95rem;
  font-weight: 800;
  position: absolute;
}

.first-access-slider {
  overflow: hidden;
  width: 100%;
  height: auto;
  transition: height 260ms cubic-bezier(0.22, 0.61, 0.36, 1);
  min-width: 0;
}

.first-access-slider__track {
  display: flex;
  align-items: flex-start;
  width: 100%;
  transition: transform 320ms cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: transform;
  min-width: 0;
}

.first-access-slide {
  width: 100%;
  min-width: 0;
  flex: 0 0 100%;
}

.first-access__reference {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  align-self: flex-start;
  margin-bottom: 0.5rem;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  background: rgba(17, 60, 104, 0.08);
  border: 1px solid rgba(17, 60, 104, 0.2);
  box-shadow: 0 18px 35px rgba(17, 60, 104, 0.15);
  letter-spacing: 0.15em;
}

.first-access__reference span {
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(12, 13, 16, 0.55);
}

.first-access__reference strong {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--brand-blue);
  letter-spacing: 0.2em;
}

button[data-loading='true'],
.primary-btn[data-loading='true'],
.secondary-btn[data-loading='true'] {
  opacity: 0.65;
  pointer-events: none;
}

button[data-loading='true']::after,
.primary-btn[data-loading='true']::after,
.secondary-btn[data-loading='true']::after {
  content: '...';
  margin-left: 0.4rem;
  letter-spacing: 0.1em;
}

.company-space-nav li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
}

.company-space-nav li.is-disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.company-space-nav li span:first-child {
  flex: 1;
}

.nav-badge {
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: #fff;
  background: #d84444;
  box-shadow: 0 6px 12px rgba(216, 68, 68, 0.28);
}

.nav-badge.is-hidden {
  display: none;
}

.admin-company-modal__offers {
  margin-top: 0;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(6, 20, 26, 0.08);
}

.admin-company-modal__offers h4 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

.admin-company-modal__storage {
  margin-top: 0;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(6, 20, 26, 0.08);
}

.admin-company-modal__storage h4 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

.admin-company-modal__summary {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.admin-company-modal__billing {
  margin-top: 0;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(6, 20, 26, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.admin-company-modal__billing h4 {
  margin: 0;
  font-size: 1.05rem;
}

.admin-company-modal__billing-breakdown {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(15, 27, 40, 0.7);
}

.admin-company-modal__meta {
  margin-top: 0;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(6, 20, 26, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.admin-company-modal__section-title {
  margin: 0;
  font-size: 1.05rem;
}

.admin-company-modal__contracts {
  margin-top: 0;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(6, 20, 26, 0.08);
}

.admin-company-modal__contracts-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.admin-company-modal__contracts h4 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

.admin-company-contracts-list {
  margin-top: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.admin-company-contract-card {
  border: 1px solid rgba(15, 27, 40, 0.12);
  border-radius: 1.15rem;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 20px 45px rgba(12, 28, 44, 0.06);
  padding: 0;
  overflow: hidden;
}

.admin-company-contract-card__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
  cursor: pointer;
  list-style: none;
}

.admin-company-contract-card__summary::-webkit-details-marker {
  display: none;
}

.admin-company-contract-card__summary::marker {
  content: '';
}

.admin-company-contract-card__chevron {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(15, 27, 40, 0.55);
  transition: transform 0.25s ease;
  flex: none;
}

.admin-company-contract-card__chevron svg {
  width: 100%;
  height: 100%;
}

.admin-company-contract-card[open] .admin-company-contract-card__chevron {
  transform: rotate(180deg);
}

.admin-company-contract-card__body {
  padding: 0.9rem 1.1rem 1rem;
  border-top: 1px solid rgba(15, 27, 40, 0.08);
}

.admin-company-contract-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.admin-company-contract-card__title {
  margin: 0;
  font-size: 1rem;
  color: #0f1b28;
  overflow-wrap: anywhere;
}

.admin-company-contract-card__subtitle {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(15, 27, 40, 0.65);
  overflow-wrap: anywhere;
}

.admin-company-contract-card__chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: rgba(17, 60, 104, 0.1);
  color: rgba(17, 60, 104, 0.95);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.admin-company-contract-card__grid {
  margin-top: 0.9rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem 1rem;
}

.admin-company-contract-card__grid dt {
  margin: 0;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(15, 27, 40, 0.5);
}

.admin-company-contract-card__grid dd {
  margin: 0.25rem 0 0;
  font-weight: 650;
  color: rgba(15, 27, 40, 0.9);
  overflow-wrap: anywhere;
}

@media (max-width: 520px) {
  .admin-company-contract-card__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.storage-meter {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.85rem;
}

.storage-meter__labels {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  color: rgba(6, 20, 26, 0.7);
  font-size: 0.95rem;
}

.storage-meter__track {
  width: 100%;
  height: 12px;
  border-radius: 999px;
  background: rgba(6, 20, 26, 0.08);
  overflow: hidden;
}

.storage-meter__fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(25, 135, 84, 0.95), rgba(245, 158, 11, 0.95), rgba(220, 38, 38, 0.95));
  transition: width 0.2s ease;
}

.storage-meter__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  color: rgba(6, 20, 26, 0.7);
}

.panel-tabs {
  display: inline-flex;
  gap: 0.6rem;
  padding: 0.35rem;
  border-radius: 999px;
  border: 1px solid rgba(6, 20, 26, 0.08);
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 16px 30px rgba(6, 20, 26, 0.08);
  margin-bottom: 1.2rem;
}

.panel-tabs--compact {
  gap: 0.4rem;
  padding: 0.25rem;
  margin-bottom: 0.85rem;
  box-shadow: 0 10px 22px rgba(6, 20, 26, 0.08);
}

.panel-tabs--compact .panel-tab {
  padding: 0.45rem 0.85rem;
  font-size: 0.85rem;
}

.company-space-panel[data-companyspace-panel='collaborators'] [data-company-collab-panel] {
  width: 100%;
}

.company-space-panel[data-companyspace-panel='collaborators'] [data-company-collab-panel] .settings-pane {
  width: 100%;
}

.company-space-panel[data-companyspace-panel='collaborators'] [data-company-collab-panel="leaves"] {
  margin-top: 0.5rem;
}

.company-space-panel[data-companyspace-panel='collaborators'] [data-company-collab-panel="leaves"] .settings-pane {
  max-width: none;
}

.panel-tab {
  border: 0;
  background: transparent;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  font-weight: 600;
  color: rgba(6, 20, 26, 0.72);
  cursor: pointer;
}

.panel-tab.is-active {
  background: rgba(12, 36, 55, 0.92);
  color: #fff;
  box-shadow: 0 12px 28px rgba(12, 36, 55, 0.18);
}

.modern-select {
  width: 100%;
  min-width: 220px;
  padding: 0.65rem 0.9rem;
  border-radius: 1rem;
  border: 1px solid rgba(6, 20, 26, 0.12);
  background: rgba(255, 255, 255, 0.95);
  font-weight: 600;
  color: rgba(6, 20, 26, 0.82);
}

.admin-company-modal__offers-hint {
  margin: 0 0 0.85rem;
  color: rgba(6, 20, 26, 0.65);
  font-size: 0.95rem;
}

.admin-offer-toggle {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0.55rem 0;
  padding: 0.7rem 0.85rem;
  border-radius: 0.95rem;
  border: 1px solid rgba(6, 20, 26, 0.08);
  background: rgba(255, 255, 255, 0.75);
}

.admin-offer-toggle input {
  width: 18px;
  height: 18px;
}

.mobile-sidebar-toggle,
.mobile-sidebar-overlay {
  display: none;
}

.tickets-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 1rem;
}

.tickets-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.8rem;
}

.tickets-tabs {
  position: relative;
  display: inline-flex;
  gap: 0.4rem;
  padding: 0.25rem;
  border-radius: 999px;
  background: rgba(12, 28, 44, 0.06);
}

.tickets-tab {
  position: relative;
  z-index: 1;
  border: none;
  background: transparent;
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  font-weight: 600;
  color: rgba(12, 28, 44, 0.6);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
}

.tickets-tab.is-active {
  color: #0b253f;
}

.tickets-tab__indicator {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: 120px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 8px 16px rgba(12, 28, 44, 0.12);
  transition: transform 220ms ease, width 220ms ease;
}

.tickets-toolbar select,
.tickets-toolbar input[type='search'] {
  border-radius: 12px;
  border: 1px solid rgba(12, 13, 16, 0.16);
  padding: 0.6rem 0.8rem;
  font-size: 0.95rem;
  background: #f8fafc;
  transition: border-color 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.tickets-toolbar select:focus,
.tickets-toolbar input[type='search']:focus {
  outline: none;
  border-color: rgba(17, 60, 104, 0.55);
  box-shadow: 0 0 0 3px rgba(17, 60, 104, 0.12);
  background: #fff;
}

.tickets-toolbar select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #1b4f6a 50%),
    linear-gradient(135deg, #1b4f6a 50%, transparent 50%),
    linear-gradient(to right, transparent, transparent);
  background-position: calc(100% - 18px) 50%, calc(100% - 12px) 50%, 100% 0;
  background-size: 6px 6px, 6px 6px, 2.5rem 100%;
  background-repeat: no-repeat;
  padding-right: 2.5rem;
}

.tickets-layout {
  display: grid;
  grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
  gap: 1.2rem;
}

.tickets-layout.is-detail .tickets-list {
  display: none;
}

.tickets-layout.is-detail .ticket-detail {
  grid-column: 1 / -1;
}

.admin-tickets-layout {
  grid-template-columns: minmax(240px, 340px) minmax(0, 1fr);
}

.tickets-list {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  min-height: 240px;
}

.ticket-card {
  border: 1px solid rgba(6, 20, 26, 0.15);
  border-radius: 16px;
  padding: 0.75rem 0.9rem;
  background: linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%);
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease;
}

.ticket-card.is-muted {
  opacity: 0.7;
  filter: grayscale(0.15);
}

.ticket-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(9, 20, 28, 0.08);
}

.ticket-card.is-active {
  border-color: rgba(17, 60, 104, 0.4);
  box-shadow: 0 8px 20px rgba(17, 60, 104, 0.18);
}

.ticket-card__header {
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  align-items: baseline;
}

.ticket-card__title {
  font-size: 0.98rem;
  font-weight: 600;
  color: #0b1b26;
}

.ticket-card__meta {
  font-size: 0.82rem;
  color: rgba(6, 20, 26, 0.6);
}

.ticket-status {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(17, 60, 104, 0.1);
  color: #113c68;
}

.ticket-status[data-status='closed'] {
  background: rgba(16, 122, 84, 0.12);
  color: #107a54;
}

.ticket-status[data-status='archived'] {
  background: rgba(90, 90, 90, 0.16);
  color: #5a5a5a;
}

.ticket-detail {
  border: 1px solid rgba(6, 20, 26, 0.12);
  border-radius: 20px;
  background: #fdfdfd;
  padding: 1rem;
  min-height: 300px;
}

.ticket-detail.is-locked .ticket-reply {
  opacity: 0.6;
  pointer-events: none;
}

.ticket-detail__content {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.ticket-detail__placeholder {
  color: rgba(6, 20, 26, 0.55);
  font-size: 0.95rem;
}

.ticket-detail__content.is-hidden {
  display: none;
}

.ticket-detail__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.9rem;
}

.ticket-detail__eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(6, 20, 26, 0.55);
  margin-bottom: 0.2rem;
}

.ticket-detail__actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.ticket-thread {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: 0.2rem 0 0.6rem;
  max-height: 360px;
  overflow: auto;
  border: 1px solid rgba(6, 20, 26, 0.08);
  border-radius: 16px;
  padding: 0.8rem;
  background: #f7f9fc;
}

.ticket-message {
  border-radius: 14px;
  padding: 0.6rem 0.8rem;
  background: rgba(6, 20, 26, 0.04);
  border: 1px solid rgba(6, 20, 26, 0.08);
  max-width: 78%;
  align-self: flex-start;
}

.ticket-message--admin {
  background: rgba(17, 60, 104, 0.08);
  border-color: rgba(17, 60, 104, 0.2);
  align-self: flex-end;
}

.ticket-message__meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: rgba(6, 20, 26, 0.6);
  margin-bottom: 0.2rem;
}

.ticket-reply {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  margin-top: 0.6rem;
}

.ticket-reply textarea {
  flex: 1;
  min-height: 44px;
  resize: vertical;
  border-radius: 14px;
  border: 1px solid rgba(6, 20, 26, 0.14);
  padding: 0.65rem 0.8rem;
  background: #fff;
  box-shadow: inset 0 1px 2px rgba(6, 20, 26, 0.05);
}

.ticket-reply textarea:focus {
  outline: none;
  border-color: rgba(17, 60, 104, 0.5);
  box-shadow: 0 0 0 3px rgba(17, 60, 104, 0.15);
}

.ticket-form {
  border: 1px solid rgba(6, 20, 26, 0.12);
  border-radius: 16px;
  padding: 0.9rem 1rem;
  background: #fff;
  margin-bottom: 1.1rem;
}

.ticket-form input,
.ticket-form textarea,
.ticket-form select {
  border-radius: 12px;
  border: 1px solid rgba(6, 20, 26, 0.14);
  padding: 0.6rem 0.75rem;
  background: #f9fafc;
  transition: border-color 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.ticket-form input:focus,
.ticket-form textarea:focus,
.ticket-form select:focus {
  outline: none;
  border-color: rgba(17, 60, 104, 0.5);
  box-shadow: 0 0 0 3px rgba(17, 60, 104, 0.12);
  background: #ffffff;
}

.ticket-form select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #1b4f6a 50%),
    linear-gradient(135deg, #1b4f6a 50%, transparent 50%),
    linear-gradient(to right, transparent, transparent);
  background-position: calc(100% - 18px) 50%, calc(100% - 12px) 50%, 100% 0;
  background-size: 6px 6px, 6px 6px, 2.5rem 100%;
  background-repeat: no-repeat;
  padding-right: 2.5rem;
}

.ticket-reply textarea {
  min-height: 52px;
  font-size: 0.96rem;
  line-height: 1.4;
}

.ticket-form.is-hidden {
  display: none;
}

.ticket-form__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.ticket-form__actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
}

.tickets-announcements {
  margin-top: 1.6rem;
  border-top: 1px solid rgba(6, 20, 26, 0.12);
  padding-top: 1rem;
}

.announcement-modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 1200;
}

.announcement-modal.is-hidden {
  display: none;
}

.announcement-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(6, 20, 26, 0.45);
  backdrop-filter: blur(6px);
}

.announcement-modal__card {
  position: relative;
  z-index: 1;
  width: min(520px, 92vw);
  background: #fff;
  border-radius: 20px;
  padding: 1.4rem 1.6rem;
  box-shadow: 0 20px 40px rgba(6, 20, 26, 0.12);
}

.announcement-modal__card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.announcement-modal__close {
  border: none;
  background: transparent;
  font-size: 1.4rem;
  cursor: pointer;
}

.announcement-modal__date {
  color: rgba(6, 20, 26, 0.6);
  margin: 0.5rem 0 0.8rem;
}

.announcement-modal__body {
  font-size: 1rem;
  color: rgba(6, 20, 26, 0.9);
}

.announcement-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
  margin-top: 1.2rem;
}

.tickets-announcements__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.8rem;
}

.announcement-list {
  display: grid;
  gap: 0.7rem;
}

.announcement-card {
  border: 1px solid rgba(6, 20, 26, 0.12);
  border-radius: 14px;
  padding: 0.75rem 0.9rem;
  background: #fff;
}

.announcement-card__title {
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.announcement-card__meta {
  font-size: 0.78rem;
  color: rgba(6, 20, 26, 0.6);
  margin-bottom: 0.3rem;
}

.gdpr-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.gdpr-card {
  background: #ffffff;
  border: 1px solid #e5e7ef;
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.06);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.gdpr-card h3 {
  font-size: 16px;
  margin: 0;
}

.gdpr-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.gdpr-field label {
  font-size: 12px;
  font-weight: 600;
  color: #1f2937;
}

.gdpr-field select,
.gdpr-field input,
.gdpr-field textarea {
  border-radius: 12px;
  border: 1px solid #d6d9e6;
  padding: 10px 12px;
  font-size: 14px;
  background: #f8fafc;
}

.gdpr-hint {
  font-size: 13px;
  color: #6b7280;
  margin: 0;
}

.gdpr-status {
  font-size: 13px;
  color: #1f2937;
  margin: 0;
}

.gdpr-requests {
  margin-top: 22px;
  background: #ffffff;
  border: 1px solid #e5e7ef;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.06);
}

.gdpr-requests__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.gdpr-requests__list {
  display: grid;
  gap: 10px;
}

.gdpr-request {
  border: 1px solid #e0e7ff;
  border-radius: 12px;
  padding: 12px 14px;
  background: #f8fafc;
  display: grid;
  gap: 6px;
}

.gdpr-request__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  color: #4b5563;
}

.gdpr-request__status {
  font-weight: 600;
  text-transform: uppercase;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #e5e7eb;
  color: #111827;
}

.gdpr-request__status.is-completed {
  background: #dcfce7;
  color: #166534;
}

.gdpr-request__status.is-failed {
  background: #fee2e2;
  color: #991b1b;
}

.gdpr-request__status.is-processing {
  background: #dbeafe;
  color: #1d4ed8;
}

.qr-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.qr-card {
  background: #ffffff;
  border: 1px solid #e5e7ef;
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.06);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.qr-card h3 {
  margin: 0;
  font-size: 16px;
}

.qr-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.qr-field label {
  font-size: 12px;
  font-weight: 600;
  color: #1f2937;
}

.qr-field input,
.qr-field textarea {
  border-radius: 12px;
  border: 1px solid #d6d9e6;
  padding: 10px 12px;
  font-size: 14px;
  background: #f8fafc;
}

.qr-toggle {
  flex-direction: row;
  align-items: center;
  gap: 8px;
}

.qr-list {
  display: grid;
  gap: 10px;
}

.qr-item {
  border: 1px solid #e0e7ff;
  border-radius: 12px;
  padding: 12px 14px;
  background: #f8fafc;
  display: grid;
  gap: 6px;
}

.qr-item__meta {
  font-size: 12px;
  color: #4b5563;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.qr-item__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.qr-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.app-loader {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.app-loader.is-visible {
  display: flex;
}

.app-loader__backdrop {
  position: absolute;
  inset: -20%;
  background: radial-gradient(circle at 20% 20%, rgba(54, 97, 142, 0.4), transparent 55%),
    radial-gradient(circle at 80% 20%, rgba(148, 179, 219, 0.35), transparent 55%),
    radial-gradient(circle at 50% 80%, rgba(16, 49, 82, 0.5), transparent 55%);
  filter: blur(22px);
  animation: loaderGlow 6s ease-in-out infinite;
}

.app-loader__content {
  position: relative;
  z-index: 2;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  padding: 32px 36px;
  text-align: center;
  box-shadow: 0 15px 35px rgba(15, 23, 42, 0.1);
  min-width: min(420px, 90vw);
}

.app-loader__brand {
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: #0f1b28;
  margin: 0 0 0.6rem;
}

.app-loader__title {
  margin: 0 0 0.4rem;
  font-size: 1.6rem;
  color: #0f1b28;
}

.app-loader__name {
  margin: 0;
  font-size: 1rem;
  color: rgba(15, 27, 40, 0.65);
}

@keyframes loaderGlow {
  0% {
    transform: translate3d(-2%, -2%, 0);
  }
  50% {
    transform: translate3d(2%, 1%, 0);
  }
  100% {
    transform: translate3d(-2%, -2%, 0);
  }
}

body.is-loading .company-space-layout {
  filter: blur(16px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease, filter 1s ease;
}

body .company-space-layout {
  transition: opacity 0.8s ease, filter 1s ease;
}

@media (max-width: 900px) {
  .tickets-layout,
  .admin-tickets-layout {
    grid-template-columns: 1fr;
  }
  .ticket-form__row {
    grid-template-columns: 1fr;
  }
  .ticket-reply {
    flex-direction: column;
    align-items: stretch;
  }
}

.first-access__summary {
  background: rgba(17, 60, 104, 0.06);
  border: 1px solid rgba(17, 60, 104, 0.15);
  padding: 0.85rem 1rem;
  border-radius: 0.9rem;
  font-size: 0.9rem;
  color: #0f1b28;
}

.first-access__summary strong {
  color: #113c68;
}

.first-access__actions {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hint {
  font-size: 0.92rem;
  color: rgba(12, 13, 16, 0.55);
  margin: 0;
}

.page--dashboard {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.5rem;
}

.page--company-space {
  min-height: 100vh;
  margin: 0;
  background: #f8f8f7;
  color: #0f1b28;
  font-family: 'Source Sans 3', 'Inter', sans-serif;
}

.page--employee-space {
  min-height: 100vh;
  margin: 0;
  background: #f8f8f7;
  color: #0f1b28;
  font-family: 'Source Sans 3', 'Inter', sans-serif;
}

.company-space-brand__welcome {
  margin: 0;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #7b8a99;
}

.company-space-layout {
  display: grid;
  grid-template-columns: var(--app-sidebar-width, 270px) 1fr;
  min-height: 100vh;
}

.page--company-space,
.page--facturo-space,
.page--facturo-quotes,
.page--employee-space,
.page--admin-blank {
  --app-sidebar-width: 240px;
}

.page--facturo-space,
.page--facturo-quotes {
  --app-sidebar-width: 240px;
  --facturo-ui-scale: 1;
  --facturo-bg: #f1f5f9;
  --facturo-surface: #ffffff;
  --facturo-border: #e2e8f0;
  --facturo-shadow-sm: 0 1px 3px 0 rgba(15, 23, 42, 0.08), 0 1px 2px -1px rgba(15, 23, 42, 0.08);
  --facturo-shadow-md: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.08);
}

body.page--facturo-space,
body.page--facturo-quotes {
  background: var(--facturo-bg);
  color: #0f172a;
  font-family: 'Source Sans 3', 'Inter', sans-serif;
}

.page--facturo-space .company-space-main,
.page--facturo-quotes .company-space-main {
  background: var(--facturo-bg);
}

@media (min-width: 992px) {
  @supports (zoom: 1) {
    body.page--facturo-space,
    body.page--facturo-quotes {
      zoom: var(--facturo-ui-scale);
    }
  }

  @supports not (zoom: 1) {
    body.page--facturo-space,
    body.page--facturo-quotes {
      font-size: 14px;
    }
  }
}

@media print {
  body.page--facturo-space,
  body.page--facturo-quotes {
    zoom: 1 !important;
    transform: none !important;
    width: auto !important;
  }
}

.company-space-sidebar {
  background: #ffffff;
  color: #0f1b28;
  padding: 2.25rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  border-right: 1px solid #e5e7ec;
  box-shadow: 10px 0 35px rgba(15, 27, 40, 0.05);
}

/* Facturo sidebar theme */
.page--facturo-space .company-space-sidebar,
.page--facturo-quotes .company-space-sidebar {
  background: rgba(255, 255, 255, 0.96);
  border-right: 1px solid var(--facturo-border);
  box-shadow: 4px 0 20px -5px rgba(15, 23, 42, 0.08);
  padding: 1.75rem 1.25rem;
}

.page--facturo-space .company-space-brand__logo,
.page--facturo-quotes .company-space-brand__logo {
  background: #111827;
  color: #ffffff;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  font-weight: 700;
}

.page--facturo-space .company-space-nav ul,
.page--facturo-quotes .company-space-nav ul {
  gap: 0.35rem;
}

.page--facturo-space .company-space-nav li,
.page--facturo-quotes .company-space-nav li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0.5rem;
  border-radius: 0.75rem;
  background: transparent;
  border-color: transparent;
  transform: none;
  overflow: visible;
  box-shadow: none;
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(15, 23, 42, 0.72);
}

.page--facturo-space .company-space-nav li.facturo-sidebar__parent,
.page--facturo-quotes .company-space-nav li.facturo-sidebar__parent {
  padding: 0;
  border-radius: 0;
  background: transparent;
  display: block;
}

.page--facturo-space .company-space-nav li.facturo-sidebar__parent:hover,
.page--facturo-quotes .company-space-nav li.facturo-sidebar__parent:hover {
  background: transparent;
}

.page--facturo-space .company-space-nav li::before,
.page--facturo-space .company-space-nav li::after,
.page--facturo-quotes .company-space-nav li::before,
.page--facturo-quotes .company-space-nav li::after {
  display: none;
}

.page--facturo-space .company-space-nav li:hover,
.page--facturo-quotes .company-space-nav li:hover {
  background: rgba(255, 255, 255, 0.7);
}

.page--facturo-space .company-space-nav li.is-active,
.page--facturo-quotes .company-space-nav li.is-active {
  background: transparent;
  color: #111827;
  font-weight: 600;
}

.page--facturo-space .company-space-profile__toggle,
.page--facturo-quotes .company-space-profile__toggle {
  border: none;
  background: transparent;
}

.page--facturo-space .company-space-profile__chevron,
.page--facturo-quotes .company-space-profile__chevron {
  color: rgba(15, 23, 42, 0.7);
  font-size: 1.05rem;
}

.page--facturo-space .company-space-profile--brand,
.page--facturo-quotes .company-space-profile--brand {
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  background: #ffffff;
  padding: 0.85rem 0.9rem;
  box-shadow: 0 14px 28px rgba(15, 27, 40, 0.06);
}

.page--facturo-space .company-space-profile--brand .company-space-profile__toggle,
.page--facturo-quotes .company-space-profile--brand .company-space-profile__toggle {
  width: 100%;
  align-items: center;
}

.page--facturo-space .facturo-profile__meta,
.page--facturo-quotes .facturo-profile__meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.page--facturo-space .facturo-profile__subtitle,
.page--facturo-quotes .facturo-profile__subtitle {
  margin-top: 0.15rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(15, 23, 42, 0.6);
}

.page--facturo-space .company-space-profile--brand .company-space-profile__dropdown,
.page--facturo-quotes .company-space-profile--brand .company-space-profile__dropdown {
  border: none;
  border-top: 1px solid rgba(229, 231, 235, 0.95);
  border-radius: 0;
  box-shadow: none;
  padding: 0.6rem 0 0;
  margin-top: 0.85rem;
}

.page--facturo-space .company-space-profile--brand .company-space-profile__dropdown button,
.page--facturo-quotes .company-space-profile--brand .company-space-profile__dropdown button {
  padding: 0.65rem 0.75rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 500;
  color: rgba(15, 23, 42, 0.78);
}

.page--facturo-space .company-space-profile--brand .company-space-profile__dropdown button[data-facturo-action='logout'],
.page--facturo-quotes .company-space-profile--brand .company-space-profile__dropdown button[data-facturo-action='logout'] {
  color: #b91c1c;
}

.page--facturo-space .facturo-sidebar__list,
.page--facturo-quotes .facturo-sidebar__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.page--facturo-space .facturo-sidebar__item,
.page--facturo-quotes .facturo-sidebar__item {
  border-radius: 0.75rem;
}

.page--facturo-space .facturo-sidebar__parent,
.page--facturo-quotes .facturo-sidebar__parent {
  border-radius: 0.75rem;
  border: none;
  background: transparent;
  overflow: visible;
}

.page--facturo-space .facturo-sidebar__parent-toggle,
.page--facturo-quotes .facturo-sidebar__parent-toggle {
  width: 100%;
  display: grid;
  grid-template-columns: 22px 1fr 16px;
  align-items: center;
  justify-content: flex-start;
  column-gap: 0.75rem;
  padding: 0.55rem 0.5rem;
  border: none;
  background: transparent;
  font-weight: 600;
  font-size: 0.95rem;
  font-family: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s ease;
}

.page--facturo-space .facturo-sidebar__parent-toggle:hover,
.page--facturo-quotes .facturo-sidebar__parent-toggle:hover {
  background: rgba(255, 255, 255, 0.7);
}

.page--facturo-space .facturo-sidebar__chevron,
.page--facturo-quotes .facturo-sidebar__chevron {
  display: inline-flex;
  justify-self: end;
  transition: transform 0.25s ease;
  font-size: 0.75rem;
  color: rgba(15, 23, 42, 0.55);
}

.page--facturo-space .company-space-nav li.facturo-nav__top,
.page--facturo-quotes .company-space-nav li.facturo-nav__top {
  display: grid;
  grid-template-columns: 22px 1fr;
  align-items: center;
  column-gap: 0.75rem;
}

.page--facturo-space .facturo-sidebar__parent.is-open .facturo-sidebar__chevron,
.page--facturo-quotes .facturo-sidebar__parent.is-open .facturo-sidebar__chevron {
  transform: rotate(180deg);
}

.page--facturo-space .facturo-sidebar__submenu,
.page--facturo-quotes .facturo-sidebar__submenu {
  list-style: none;
  margin: 0;
  padding: 0.25rem 0 0.25rem 1.35rem;
  border-left: 1px solid rgba(229, 231, 235, 0.95);
  margin-left: 1.75rem;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, opacity 0.35s ease;
}

.page--facturo-space .facturo-sidebar__parent.is-open .facturo-sidebar__submenu,
.page--facturo-quotes .facturo-sidebar__parent.is-open .facturo-sidebar__submenu {
  max-height: 320px;
  opacity: 1;
}

.page--facturo-space .facturo-sidebar__submenu li,
.page--facturo-quotes .facturo-sidebar__submenu li {
  font-size: 0.9rem;
  color: rgba(15, 23, 42, 0.62);
  padding: 0.5rem 0.25rem;
  border-radius: 0.65rem;
  position: relative;
  background: transparent;
  cursor: pointer;
}

.page--facturo-space .facturo-sidebar__submenu li:hover,
.page--facturo-quotes .facturo-sidebar__submenu li:hover {
  color: rgba(15, 23, 42, 0.8);
  background: rgba(255, 255, 255, 0.7);
}

.page--facturo-space .facturo-sidebar__submenu li::before,
.page--facturo-quotes .facturo-sidebar__submenu li::before {
  content: '';
  position: absolute;
  left: -1.15rem;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 18px;
  border-radius: 999px;
  background: #111827;
  opacity: 0;
}

.page--facturo-space .facturo-sidebar__submenu li.is-active,
.page--facturo-quotes .facturo-sidebar__submenu li.is-active {
  color: #111827;
  font-weight: 600;
}

.page--facturo-space .facturo-sidebar__submenu li.is-active::before,
.page--facturo-quotes .facturo-sidebar__submenu li.is-active::before {
  opacity: 1;
}

.page--facturo-space .facturo-nav__icon,
.page--facturo-quotes .facturo-nav__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 22px;
  color: rgba(15, 23, 42, 0.72);
}

.page--facturo-space .company-space-nav .facturo-nav__icon,
.page--facturo-quotes .company-space-nav .facturo-nav__icon {
  flex: 0 0 22px;
}

.page--facturo-space .facturo-nav__icon svg,
.page--facturo-quotes .facturo-nav__icon svg {
  display: block;
}

.page--facturo-space .facturo-nav__text,
.page--facturo-quotes .facturo-nav__text {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.page--facturo-space .facturo-nav__sub,
.page--facturo-quotes .facturo-nav__sub {
  display: flex;
  align-items: center;
}

.page--facturo-space .facturo-nav__back,
.page--facturo-quotes .facturo-nav__back {
  margin-top: 0.35rem;
  border-top: 1px solid rgba(229, 231, 235, 0.9);
  padding-top: 0.75rem;
}

/* Facturo off-canvas breakpoint aligns with Bootstrap lg */
@media (max-width: 992px) {
  .page--facturo-space,
  .page--facturo-quotes {
    --app-sidebar-width: 0px;
  }

  .page--facturo-space .company-space-layout,
  .page--facturo-quotes .company-space-layout {
    grid-template-columns: 1fr;
  }

  .page--facturo-space .company-space-main,
  .page--facturo-quotes .company-space-main {
    padding-top: 4.25rem;
  }

  .page--facturo-space .company-space-sidebar,
  .page--facturo-quotes .company-space-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 250px;
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
    z-index: 1050;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }

  body.is-sidebar-open.page--facturo-space .company-space-sidebar,
  body.is-sidebar-open.page--facturo-quotes .company-space-sidebar,
  body.is-sidebar-open .page--facturo-space .company-space-sidebar,
  body.is-sidebar-open .page--facturo-quotes .company-space-sidebar {
    transform: translateX(0);
  }

  .page--facturo-space .mobile-sidebar-overlay,
  .page--facturo-quotes .mobile-sidebar-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(7, 12, 18, 0.42);
    backdrop-filter: blur(8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 1040;
  }

  body.is-sidebar-open.page--facturo-space .mobile-sidebar-overlay,
  body.is-sidebar-open.page--facturo-quotes .mobile-sidebar-overlay {
    opacity: 1;
    pointer-events: auto;
  }

  .page--facturo-space .mobile-sidebar-toggle,
  .page--facturo-quotes .mobile-sidebar-toggle {
    position: fixed;
    top: 1rem;
    left: 1rem;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    border: 1px solid rgba(15, 27, 40, 0.12);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 12px 26px rgba(15, 27, 40, 0.12);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1051;
  }

  .page--facturo-space .mobile-sidebar-toggle__icon,
  .page--facturo-quotes .mobile-sidebar-toggle__icon {
    width: 18px;
    height: 2px;
    background: #0f1b28;
    border-radius: 2px;
    position: relative;
    display: inline-block;
  }

  .page--facturo-space .mobile-sidebar-toggle__icon::before,
  .page--facturo-space .mobile-sidebar-toggle__icon::after,
  .page--facturo-quotes .mobile-sidebar-toggle__icon::before,
  .page--facturo-quotes .mobile-sidebar-toggle__icon::after {
    content: '';
    position: absolute;
    left: 0;
    width: 18px;
    height: 2px;
    background: #0f1b28;
    border-radius: 2px;
    transition: transform 0.2s ease, top 0.2s ease, opacity 0.2s ease;
  }

  .page--facturo-space .mobile-sidebar-toggle__icon::before,
  .page--facturo-quotes .mobile-sidebar-toggle__icon::before {
    top: -6px;
  }

  .page--facturo-space .mobile-sidebar-toggle__icon::after,
  .page--facturo-quotes .mobile-sidebar-toggle__icon::after {
    top: 6px;
  }

  body.is-sidebar-open.page--facturo-space .mobile-sidebar-toggle__icon,
  body.is-sidebar-open.page--facturo-quotes .mobile-sidebar-toggle__icon {
    background: transparent;
  }

  body.is-sidebar-open.page--facturo-space .mobile-sidebar-toggle__icon::before,
  body.is-sidebar-open.page--facturo-quotes .mobile-sidebar-toggle__icon::before {
    top: 0;
    transform: rotate(45deg);
  }

  body.is-sidebar-open.page--facturo-space .mobile-sidebar-toggle__icon::after,
  body.is-sidebar-open.page--facturo-quotes .mobile-sidebar-toggle__icon::after {
    top: 0;
    transform: rotate(-45deg);
  }

  .page--facturo-space .company-space-main,
  .page--facturo-quotes .company-space-main {
    padding-top: 4.25rem;
  }
}

.company-space-brand__eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: 0.62rem;
  color: #9aa3af;
}

.company-space-brand,
.company-space-brand h1 {
  color: #0f1b28;
}

.company-space-brand h1 {
  margin: 0.4rem 0 0;
  font-size: 1.4rem;
  letter-spacing: 0.05em;
}

.company-space-brand__product {
  margin: 0.6rem 0 0;
  letter-spacing: 0.25em;
  font-size: 0.85rem;
  text-transform: uppercase;
  color: #7b8a99;
}

.company-space-brand__product--employee {
  color: var(--brand-blue);
}

.company-space-brand__reference {
  margin: 0.75rem 0 0;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
}

.company-space-brand__reference span {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: #f1f3f6;
  border: 1px solid #d9dfe8;
  letter-spacing: 0.2em;
  font-weight: 600;
  color: #1b2a3b;
}

.company-space-brand__divider {
  display: block;
  width: 100%;
  height: 2px;
  margin: 1rem 0;
  background: linear-gradient(90deg, rgba(15, 27, 40, 0.1), rgba(15, 27, 40, 0));
}

.company-space-brand__identity {
  display: flex;
  gap: 0.9rem;
  align-items: center;
  margin-top: 1.3rem;
}

.page--company-space .company-space-brand {
  display: flex;
  flex-direction: column;
}

.page--company-space .company-space-brand__identity {
  order: 1;
  margin-top: 0;
}

.page--company-space .company-space-brand__divider {
  order: 2;
  margin: 1rem 0;
}

.page--company-space .company-space-brand__eyebrow {
  order: 3;
  text-transform: none;
  letter-spacing: 0.08em;
  font-size: 1.15rem;
  font-weight: 600;
  color: #0f1b28;
}

.page--company-space .company-space-brand__product {
  order: 4;
  margin: 0.35rem 0 0;
  text-transform: none;
  letter-spacing: 0.06em;
  font-size: 0.8rem;
}

.page--company-space .company-space-brand::after {
  content: '';
  display: block;
  width: 100%;
  height: 2px;
  margin-top: 1rem;
  background: linear-gradient(90deg, rgba(15, 27, 40, 0.1), rgba(15, 27, 40, 0));
  order: 5;
}

.company-space-brand__logo {
  width: 56px;
  height: 56px;
  border-radius: 1rem;
  background: #f5f6f8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.company-space-brand__logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 1rem;
}

.company-space-nav__label {
  margin: 0 0 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  color: #9aa3af;
}

.company-space-nav__label-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  border: 0;
  padding: 0 0 0.45rem;
  margin: 0 0 0.55rem;
  cursor: pointer;
  position: relative;
}

.company-space-nav__label-btn::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: rgba(6, 20, 26, 0.08);
}

.company-space-nav__label-btn::after {
  content: '▾';
  font-size: 0.9rem;
  letter-spacing: 0;
  opacity: 0.7;
  transform: rotate(0deg);
  transition: transform 160ms ease;
}

.company-space-nav__label-btn[aria-expanded='false']::after {
  transform: rotate(-90deg);
}

.company-space-nav [data-companyspace-nav-grouped] > .company-space-nav__label-btn:first-of-type {
  margin-top: 0.75rem;
}

.company-space-nav [data-companyspace-nav-grouped] > [data-nav-group='operia'] {
  padding-bottom: 0.85rem;
  margin-bottom: 0.85rem;
  border-bottom: 1px solid rgba(6, 20, 26, 0.08);
}

.company-space-nav [data-nav-group] {
  overflow: hidden;
  max-height: 800px;
  opacity: 1;
  transform: translateY(0);
  transition:
    max-height 240ms ease,
    opacity 180ms ease,
    transform 180ms ease;
  will-change: max-height, opacity, transform;
}

.company-space-nav [data-nav-group].is-collapsed {
  max-height: 0;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
}

.company-space-nav [data-nav-group].is-nav-init {
  transition: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .company-space-nav [data-nav-group] {
    transition: none;
  }
}

.company-space-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.company-space-nav li {
  padding: 0.65rem 1rem;
  border-radius: 0.9rem;
  color: #1a2430;
  font-size: 0.92rem;
  font-weight: 500;
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.8);
  transition:
    color 0.3s ease,
    border-color 0.3s ease,
    transform 0.3s ease,
    background 0.3s ease;
}

.company-space-nav li::before {
  content: '';
  position: absolute;
  top: 12%;
  bottom: 12%;
  left: 0.4rem;
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(31, 119, 196, 0.9), rgba(31, 119, 196, 0.4));
  transform: scaleY(0);
  transform-origin: center;
  transition: transform 0.3s ease;
  box-shadow: 0 0 10px rgba(31, 119, 196, 0.35);
}

.company-space-nav li::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  right: -2.5rem;
  width: 4rem;
  background: linear-gradient(90deg, rgba(250, 252, 255, 0.85), rgba(250, 252, 255, 0));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.company-space-nav li.is-active,
.company-space-nav li:hover {
  border-color: rgba(31, 119, 196, 0.25);
  transform: translateX(4px);
  background: rgba(255, 255, 255, 1);
}

.company-space-nav li.is-active {
  color: #0f1b28;
}

.company-space-nav li.is-active::before,
.company-space-nav li:hover::before {
  transform: scaleY(1);
}

.company-space-nav li.is-active::after {
  opacity: 1;
}

.company-space-profile {
  margin-top: auto;
  border: 1px solid #dfe4ea;
  border-radius: 1rem;
  background: #f9fafb;
  overflow: hidden;
  position: relative;
}

.main-topbar {
  display: none;
}

.company-space-profile--floating {
  margin-top: 0;
  width: auto;
  min-width: 180px;
  max-width: 260px;
  background: rgba(249, 250, 251, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 14px 30px rgba(6, 20, 26, 0.08);
  overflow: visible;
}

.company-space-profile--floating .company-space-profile__toggle {
  padding: 0.55rem 0.8rem;
}

.company-space-profile--floating .company-space-profile__label {
  display: none;
}

.company-space-profile--floating .company-space-profile__toggle strong {
  font-size: 0.92rem;
  margin-top: 0;
}

.company-space-profile__toggle {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  border: none;
  background: transparent;
  color: inherit;
  padding: 1rem;
  text-align: left;
  cursor: pointer;
}

.company-space-profile__label {
  margin: 0;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #97a2af;
}

.company-space-profile__toggle strong {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.95rem;
  color: #0f1b28;
}

.company-space-profile__chevron {
  font-size: 1.25rem;
  color: #7f8999;
  transition: transform 0.2s ease;
}

.company-space-profile[data-open='true'] .company-space-profile__chevron {
  transform: rotate(180deg);
}

.company-space-profile__dropdown {
  display: none;
  flex-direction: column;
  border-top: 1px solid #eef1f4;
  background: #ffffff;
}

.company-space-profile__dropdown button {
  border: none;
  background: transparent;
  color: #0f1b28;
  padding: 0.85rem 1rem;
  text-align: left;
  font-size: 0.9rem;
  cursor: pointer;
}

.company-space-profile__dropdown button + button {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.company-space-profile[data-open='true'] .company-space-profile__dropdown {
  display: flex;
}

/* Dropdown overlay (doesn't shift layout) when the profile chip is mounted in the page header. */
.company-space-profile--floating .company-space-profile__dropdown {
  display: flex;
  position: absolute;
  top: calc(100% + 0.55rem);
  right: 0;
  left: auto;
  min-width: 220px;
  border: 1px solid rgba(6, 20, 26, 0.1);
  border-radius: 0.95rem;
  box-shadow: 0 24px 50px rgba(6, 20, 26, 0.16);
  background: #ffffff;
  z-index: 50;
  padding: 0.25rem;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  visibility: hidden;
}

.company-space-profile--floating[data-open='true'] .company-space-profile__dropdown {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  visibility: visible;
}

.company-space-profile--floating .company-space-profile__dropdown button {
  border-radius: 0.75rem;
}

.company-space-profile--brand {
  margin-top: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  overflow: visible;
  width: 100%;
}

.company-space-brand__identity.company-space-profile--brand {
  display: block;
  gap: 0;
  align-items: stretch;
}

.company-space-profile--brand .company-space-profile__toggle {
  padding: 0;
  gap: 0.75rem;
}

.company-space-brand__identity-inner {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-width: 0;
}

.company-space-profile--brand .company-space-profile__toggle strong {
  margin-top: 0;
  font-size: 1.02rem;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.page--company-space .company-space-profile--brand .company-space-profile__toggle strong {
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
  overflow-wrap: anywhere;
}

.page--employee-space .company-space-profile--brand .company-space-profile__toggle strong {
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
  overflow-wrap: anywhere;
}

.page--facturo-space .company-space-profile--brand .company-space-profile__toggle strong,
.page--facturo-quotes .company-space-profile--brand .company-space-profile__toggle strong {
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
  overflow-wrap: anywhere;
}

.page--employee-space .company-space-profile--brand .company-space-brand__logo {
  display: none;
}

.company-space-profile--brand .company-space-profile__dropdown {
  position: static;
  display: none;
  flex-direction: column;
  gap: 0;
  margin-top: 0.65rem;
  min-width: 0;
  border: 1px solid rgba(6, 20, 26, 0.1);
  border-radius: 0.95rem;
  box-shadow: 0 18px 40px rgba(6, 20, 26, 0.12);
  background: #ffffff;
  padding: 0.25rem;
}

.company-space-profile--brand[data-open='true'] .company-space-profile__dropdown {
  display: flex;
}

.company-space-profile--brand .company-space-profile__dropdown button {
  border-radius: 0.75rem;
}

.company-space-main {
  background: white;
  padding: 3rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  min-width: 0;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.panel-header__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.overview-card.is-draggable {
  cursor: grab;
}

.overview-card.is-dragging {
  opacity: 0.7;
  transform: scale(0.98);
}

.company-space-panels,
.dashboard-main,
.admin-blank-main {
  min-width: 0;
}

.company-space-panels {
  flex: 1;
  min-height: 500px;
  position: relative;
}

.dashboard-main,
.admin-blank-main {
  position: relative;
}

.doc-viewer {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 2000;
}

.doc-viewer.is-visible {
  display: block;
}

.page--company-space .doc-viewer,
.page--facturo-space .doc-viewer,
.page--facturo-quotes .doc-viewer,
.page--employee-space .doc-viewer,
.page--admin-blank .doc-viewer {
  background: rgba(4, 7, 12, 0.45);
  backdrop-filter: blur(10px);
}

.page--company-space .doc-viewer__card,
.page--facturo-space .doc-viewer__card,
.page--facturo-quotes .doc-viewer__card,
.page--employee-space .doc-viewer__card,
.page--admin-blank .doc-viewer__card {
  left: var(--app-sidebar-width, 0px);
}

.doc-viewer__card {
  position: absolute;
  inset: 0;
  background: #ffffff;
  border: 1px solid rgba(15, 27, 40, 0.12);
  border-radius: 26px;
  box-shadow: 0 30px 80px rgba(15, 27, 40, 0.12);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.doc-viewer.doc-viewer--fixed .doc-viewer__card {
  border-radius: 0;
  box-shadow: none;
}

.doc-viewer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1.1rem;
  border-bottom: 1px solid rgba(15, 27, 40, 0.12);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
}

.doc-viewer__title {
  font-weight: 700;
  color: #06141a;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.doc-viewer__actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.doc-viewer__actions .secondary-btn {
  padding: 0.55rem 0.9rem;
}

.doc-viewer__actions .icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  font-size: 1.4rem;
  line-height: 1;
}

.doc-viewer__body {
  position: relative;
  flex: 1;
  background: #f5f7fb;
}

.doc-viewer__frame {
  width: 100%;
  height: 100%;
  border: 0;
  background: #ffffff;
}

.doc-viewer__status {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  background: rgba(245, 247, 251, 0.96);
  z-index: 2;
  padding: 1.5rem;
}

.doc-viewer__status.is-hidden {
  display: none;
}

.doc-viewer__spinner {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 4px solid rgba(17, 60, 104, 0.18);
  border-top-color: #113c68;
  animation: docViewerSpin 0.9s linear infinite;
}

.doc-viewer__status--error .doc-viewer__spinner {
  display: none;
}

.doc-viewer__status-text {
  color: rgba(6, 20, 26, 0.72);
  font-weight: 600;
  text-align: center;
  max-width: 540px;
}

@keyframes docViewerSpin {
  to {
    transform: rotate(360deg);
  }
}

.command-palette {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 2400;
}

.command-palette.is-visible {
  display: block;
}

.command-palette__overlay {
  position: absolute;
  inset: 0;
  background: rgba(4, 7, 12, 0.45);
  backdrop-filter: blur(10px);
}

.command-palette__panel {
  position: absolute;
  top: 10vh;
  left: 50%;
  transform: translateX(-50%);
  width: min(720px, calc(100% - 2rem));
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(15, 27, 40, 0.12);
  border-radius: 22px;
  box-shadow: 0 30px 80px rgba(15, 27, 40, 0.18);
  overflow: hidden;
}

.command-palette__header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.05rem;
  border-bottom: 1px solid rgba(15, 27, 40, 0.12);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
}

.command-palette__input {
  flex: 1;
  border: 0;
  background: transparent;
  font-size: 1.05rem;
  font-weight: 600;
  color: #06141a;
  outline: none;
  min-width: 0;
}

.command-palette__input::placeholder {
  color: rgba(6, 20, 26, 0.45);
  font-weight: 500;
}

.command-palette__close {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(12, 28, 44, 0.14);
  background: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  font-size: 1.6rem;
  line-height: 1;
  color: rgba(6, 20, 26, 0.7);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.command-palette__close:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 25px rgba(12, 28, 44, 0.12);
}

.command-palette__results {
  padding: 0.45rem;
  overflow: auto;
  flex: 1;
  background: #f5f7fb;
}

.command-palette__empty {
  padding: 1.1rem 1rem;
  color: rgba(6, 20, 26, 0.62);
  font-weight: 600;
}

.command-palette__item {
  width: 100%;
  border: 0;
  text-align: left;
  border-radius: 18px;
  padding: 0.9rem 0.95rem;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.command-palette__item:hover,
.command-palette__item.is-active {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 40px rgba(12, 28, 44, 0.12);
  transform: translateY(-1px);
}

.command-palette__item-main {
  min-width: 0;
}

.command-palette__item-label {
  font-weight: 700;
  color: #06141a;
  font-size: 1rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.command-palette__item-description {
  margin-top: 0.15rem;
  color: rgba(6, 20, 26, 0.65);
  font-size: 0.92rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.command-palette__item-side {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex: 0 0 auto;
}

.command-palette__item-hint {
  color: rgba(6, 20, 26, 0.55);
  font-size: 0.9rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.command-palette__badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #0c2437;
  background: rgba(12, 36, 55, 0.08);
}

.command-palette__footer {
  padding: 0.75rem 1.05rem;
  border-top: 1px solid rgba(15, 27, 40, 0.12);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  color: rgba(6, 20, 26, 0.6);
  font-size: 0.85rem;
  font-weight: 600;
}

body.is-command-palette-open {
  overflow: hidden;
}

.company-space-panel {
  display: none;
  height: auto;
  min-height: 100%;
  width: 100%;
}

.company-space-panel.is-visible {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 2rem;
}

.page--facturo-space .company-space-panel.is-visible,
.page--facturo-quotes .company-space-panel.is-visible {
  align-items: stretch;
}

.company-space-panel__title {
  margin: 0;
  font-family: 'Playfair Display', 'Times New Roman', serif;
  font-size: 2.4rem;
  font-weight: 500;
  color: #06141a;
  letter-spacing: 0.02em;
}

.company-space-panel__header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.company-space-panel__header .company-space-panel__title {
  flex: 1 1 auto;
  min-width: min(420px, 100%);
}

.company-space-panel__header .company-space-profile--floating {
  flex: 0 0 auto;
}

.company-space-panel__header .company-space-panel__title {
  flex: 1;
  min-width: 0;
}

.company-space-panel__eyebrow {
  margin: 0 0 0.4rem;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.25em;
  color: rgba(6, 20, 26, 0.45);
}

.company-space-panel__description {
  max-width: 420px;
  font-size: 0.95rem;
  color: rgba(6, 20, 26, 0.65);
}

.company-space-panel__divider {
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(13, 50, 88, 0.15), rgba(13, 50, 88, 0));
}

.timesheets-filters {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.timesheets-filters + .timesheets-analytics {
  margin-top: 1.5rem;
}

.timesheets-card {
  border-radius: 1.2rem;
  border: 1px solid rgba(6, 20, 26, 0.08);
  background: rgba(255, 255, 255, 0.95);
  padding: 1.35rem;
  box-shadow: 0 20px 35px rgba(6, 20, 26, 0.07);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.timesheets-card h4 {
  margin: 0;
  font-size: 1.1rem;
  color: #06141a;
}

.timesheets-card p {
  margin: 0;
  color: rgba(6, 20, 26, 0.6);
  font-size: 0.92rem;
}

.timesheets-card__controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
}

.timesheets-card__controls input,
.timesheets-card__controls select {
  flex: 1;
  min-width: 160px;
  border-radius: 0.85rem;
  border: 1px solid rgba(6, 20, 26, 0.15);
  padding: 0.65rem 0.9rem;
  font-size: 0.95rem;
  background: rgba(255, 255, 255, 0.9);
}

.timesheets-analytics {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(320px, 1.15fr) minmax(260px, 0.85fr);
  gap: 1.5rem;
  align-items: stretch;
}

.timesheets-analytics--single {
  grid-template-columns: 1fr;
}

.timesheets-table--company .timesheets-table__row {
  grid-template-columns: 1.05fr 1.1fr 0.75fr 0.95fr 0.95fr 0.75fr 0.65fr 0.6fr;
  min-width: 1040px;
}

.timesheets-table--company .timesheets-table__row.is-expandable {
  cursor: pointer;
  transition: background 0.15s ease, box-shadow 0.15s ease;
}

.timesheets-table--company .timesheets-table__row.is-expandable:hover {
  background: rgba(6, 20, 26, 0.03);
}

.timesheets-table--company .timesheets-table__row.is-expanded {
  box-shadow: inset 0 0 0 2px rgba(37, 99, 235, 0.14);
}

.timesheets-table--company .timesheets-table__row--details {
  grid-template-columns: 1fr;
  min-width: 1040px;
  padding-top: 0.2rem;
  padding-bottom: 1rem;
  background: transparent;
}

.timesheets-details {
  border: 1px solid rgba(6, 20, 26, 0.08);
  border-radius: 1rem;
  background: rgba(6, 20, 26, 0.015);
  padding: 1rem;
}

.timesheets-details__title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.timesheets-details__meta {
  display: inline-block;
  margin-left: 0.5rem;
  font-size: 0.85rem;
  color: rgba(6, 20, 26, 0.6);
}

.timesheets-details__hint {
  font-size: 0.85rem;
  color: rgba(6, 20, 26, 0.6);
  white-space: nowrap;
}

.timesheets-details__body {
  overflow-x: auto;
}

.timesheets-details__grid {
  min-width: 1080px;
  display: grid;
  grid-template-columns: 0.8fr 1.4fr 0.6fr 1fr 1fr 0.6fr 0.65fr 0.65fr 1fr;
  gap: 0.65rem;
  align-items: center;
}

.timesheets-details__grid--head {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(6, 20, 26, 0.55);
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(6, 20, 26, 0.1);
}

.timesheets-details__grid--row {
  font-size: 0.92rem;
  padding: 0.45rem 0;
  border-bottom: 1px dashed rgba(6, 20, 26, 0.1);
}

.timesheets-details__grid--row:last-child {
  border-bottom: none;
}

.timesheets-details__grid--row.is-cancelled {
  opacity: 0.55;
  background: rgba(200, 74, 60, 0.05);
}

.timesheet-actions-cell {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.timesheet-action-btn {
  padding: 0.25rem 0.5rem;
  font-size: 0.78rem;
  border-radius: 0.35rem;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 500;
  transition: background-color 0.15s, border-color 0.15s;
}

.timesheet-action-btn--stop {
  background: #f59e0b;
  color: #fff;
  border-color: #d97706;
}

.timesheet-action-btn--stop:hover {
  background: #d97706;
}

.timesheet-action-btn--cancel {
  background: rgba(200, 74, 60, 0.1);
  color: #c84a3c;
  border-color: rgba(200, 74, 60, 0.3);
}

.timesheet-action-btn--cancel:hover {
  background: rgba(200, 74, 60, 0.2);
}

.timesheet-modal-info {
  font-size: 0.9rem;
  color: rgba(6, 20, 26, 0.7);
  margin: 0.5rem 0;
  font-style: italic;
}

.timesheet-modal-reason {
  margin: 1rem 0;
  text-align: left;
}

.timesheet-modal-reason label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
}

.timesheet-modal-reason label .required {
  color: #c84a3c;
}

.timesheet-modal-reason textarea {
  width: 100%;
  min-height: 80px;
  padding: 0.65rem;
  border: 1px solid rgba(6, 20, 26, 0.2);
  border-radius: 0.5rem;
  font-family: inherit;
  font-size: 0.92rem;
  resize: vertical;
}

.timesheet-modal-reason textarea:focus {
  outline: none;
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(17, 60, 104, 0.1);
}

.timesheet-modal-reason-error {
  color: #c84a3c;
  font-size: 0.85rem;
  margin: 0.35rem 0 0;
}

.contract-doc-modal__actions .warning-btn {
  background: #f59e0b;
  color: #fff;
}

.contract-doc-modal__actions .warning-btn:hover {
  background: #d97706;
}

.timesheets-graph-card,
.timesheets-table-card {
  border-radius: 1.2rem;
  border: 1px solid rgba(6, 20, 26, 0.08);
  background: #fff;
  box-shadow: 0 30px 45px rgba(6, 20, 26, 0.08);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.timesheets-graph-card__header {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: flex-start;
}

.timesheets-graph-card__header h4 {
  margin: 0;
  font-size: 1.15rem;
  color: #06141a;
}

.timesheets-graph-card__header p {
  margin: 0.25rem 0 0;
  color: rgba(6, 20, 26, 0.6);
  font-size: 0.92rem;
}

.timesheets-graph-legend {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.85rem;
  color: rgba(6, 20, 26, 0.65);
}

.timesheets-graph-legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.timesheets-graph-legend i {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, #003049, #276678);
  display: inline-block;
}

.timesheets-graph-legend i.is-secondary {
  background: linear-gradient(135deg, #e3b505, #f8d57c);
}

.timesheets-graph-placeholder {
  height: 280px;
  border-radius: 1rem;
  border: 1px dashed rgba(6, 20, 26, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: rgba(6, 20, 26, 0.55);
  font-size: 0.95rem;
  padding: 1rem;
  background: radial-gradient(circle at top, rgba(6, 20, 26, 0.04), transparent);
}

.timesheets-table-card header h4 {
  margin: 0;
  font-size: 1.05rem;
  color: #06141a;
}

.timesheets-table-card header p {
  margin: 0.3rem 0 0;
  color: rgba(6, 20, 26, 0.6);
}

.timesheets-table-card__search {
  margin-top: 0.85rem;
}

.timesheets-table-card__search input[type='search'] {
  width: 100%;
  max-width: 420px;
}

.timesheets-table {
  width: 100%;
  border-radius: 1rem;
  border: 1px solid rgba(6, 20, 26, 0.08);
  overflow-x: auto;
  overflow-y: hidden;
}

.timesheets-table__row {
  display: grid;
  grid-template-columns: 1.35fr 0.8fr 0.9fr 0.9fr 0.8fr 0.65fr 0.6fr;
  gap: 0.8rem;
  padding: 0.85rem 1.1rem;
  font-size: 0.93rem;
  align-items: center;
  min-width: 860px;
}

.timesheets-table__row:nth-child(even) {
  background: rgba(6, 20, 26, 0.02);
}

.timesheets-table__row--head {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  background: rgba(6, 20, 26, 0.05);
}

.timesheets-table__row.is-empty {
  grid-template-columns: 1fr;
  text-align: center;
  color: rgba(6, 20, 26, 0.55);
}

.timesheets-cell {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.timesheets-cell small {
  font-size: 0.75rem;
  color: rgba(6, 20, 26, 0.55);
  line-height: 1.2;
}

.timesheets-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.timesheets-actions__export {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  flex-wrap: wrap;
}

.timesheets-controls {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.timesheets-timer {
  text-align: right;
  min-width: 150px;
}

.timesheets-timer__label {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(6, 20, 26, 0.55);
}

.timesheets-timer__value {
  margin: 0.2rem 0 0;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #06141a;
}

.timesheets-timer__hint {
  margin: 0.15rem 0 0;
  font-size: 0.9rem;
  color: rgba(6, 20, 26, 0.6);
}

.timesheets-card--tracker header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.timesheets-card--tracker[data-state='running'] {
  background: linear-gradient(135deg, rgba(25, 135, 84, 0.12), rgba(255, 255, 255, 0.92));
  border-color: rgba(25, 135, 84, 0.22);
}

.timesheets-card--tracker[data-state='paused'] {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.14), rgba(255, 255, 255, 0.92));
  border-color: rgba(245, 158, 11, 0.26);
}

.timesheets-card--tracker[data-state='idle'] {
  background: rgba(255, 255, 255, 0.95);
}

.btn {
  border: 1px solid rgba(6, 20, 26, 0.18);
  border-radius: 999px;
  padding: 0.7rem 1.15rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  background: rgba(255, 255, 255, 0.9);
  color: #06141a;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn--secondary {
  background: rgba(6, 20, 26, 0.04);
}

.btn--secondary:hover:not(:disabled) {
  background: rgba(6, 20, 26, 0.1);
}

.btn--success {
  background: rgba(25, 135, 84, 0.14);
  border-color: rgba(25, 135, 84, 0.35);
  color: #0f5132;
}

.btn--success:hover:not(:disabled) {
  background: rgba(25, 135, 84, 0.2);
}

.btn--warning {
  background: rgba(245, 158, 11, 0.16);
  border-color: rgba(245, 158, 11, 0.4);
  color: #7c5200;
}

.btn--warning:hover:not(:disabled) {
  background: rgba(245, 158, 11, 0.22);
}

.btn--danger {
  background: rgba(220, 38, 38, 0.14);
  border-color: rgba(220, 38, 38, 0.34);
  color: #7f1d1d;
}

.btn--danger:hover:not(:disabled) {
  background: rgba(220, 38, 38, 0.2);
}

.input {
  border-radius: 0.85rem;
  border: 1px solid rgba(6, 20, 26, 0.15);
  padding: 0.65rem 0.9rem;
  font-size: 0.95rem;
  background: rgba(255, 255, 255, 0.9);
}

.input--compact {
  padding: 0.58rem 0.75rem;
  border-radius: 999px;
}

@media (max-width: 640px) {
  .timesheets-timer {
    text-align: left;
    min-width: 0;
  }

  .timesheets-card--tracker header {
    flex-direction: column;
    align-items: flex-start;
  }

  .timesheets-actions__export {
    width: 100%;
  }

  .timesheets-actions__export .input {
    flex: 1;
    min-width: 0;
  }

  .timesheets-actions__export .btn {
    width: 100%;
  }
}

.timesheets-export {
  width: 100%;
  border-radius: 1.2rem;
  border: 1px solid rgba(6, 20, 26, 0.08);
  background: linear-gradient(135deg, rgba(6, 20, 26, 0.02), rgba(255, 255, 255, 0.85));
  padding: 1.4rem 1.6rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.timesheets-export h4 {
  margin: 0;
  font-size: 1.05rem;
  color: #06141a;
}

.timesheets-export p {
  margin: 0.3rem 0 0;
  color: rgba(6, 20, 26, 0.6);
  max-width: 580px;
}

.timesheets-export__actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.issues-layout {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(300px, 360px) 1fr;
  gap: 1.75rem;
  align-items: flex-start;
}

.issues-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.issues-toolbar {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.issues-toolbar input,
.issues-toolbar select {
  border-radius: 0.85rem;
  border: 1px solid rgba(6, 20, 26, 0.12);
  padding: 0.8rem 1rem;
  background: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
}

.issues-toolbar select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, rgba(15, 27, 40, 0.6) 50%),
    linear-gradient(135deg, rgba(15, 27, 40, 0.6) 50%, transparent 50%),
    linear-gradient(to right, rgba(15, 27, 40, 0.08), rgba(15, 27, 40, 0.08));
  background-position: calc(100% - 18px) calc(50% - 3px), calc(100% - 13px) calc(50% - 3px),
    calc(100% - 42px) 50%;
  background-size: 6px 6px, 6px 6px, 1px 60%;
  background-repeat: no-repeat;
  padding-right: 2.6rem;
}

.issues-toolbar select:focus,
.issues-toolbar input:focus {
  outline: none;
  border-color: rgba(17, 60, 104, 0.6);
  box-shadow: 0 18px 40px rgba(17, 60, 104, 0.15);
}

.issues-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.issues-card {
  border-radius: 1rem;
  border: 1px solid rgba(6, 20, 26, 0.08);
  background: rgba(255, 255, 255, 0.9);
  padding: 1rem 1.1rem;
  box-shadow: 0 15px 35px rgba(6, 20, 26, 0.08);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.issues-card.is-active {
  border-color: #0d3258;
  box-shadow: 0 25px 55px rgba(13, 47, 80, 0.15);
  transform: translateY(-2px);
}

.issues-card h4 {
  margin: 0;
  font-size: 1rem;
  color: #06141a;
}

.issues-card p {
  margin: 0.25rem 0 0;
  color: rgba(6, 20, 26, 0.65);
  font-size: 0.9rem;
}

.issues-card footer {
  margin-top: 0.6rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: rgba(6, 20, 26, 0.5);
}

.issues-status {
  padding: 0.2rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.issues-status[data-status='new'] {
  background: rgba(230, 60, 60, 0.12);
  color: #a31818;
}

.issues-status[data-status='in_progress'] {
  background: rgba(255, 170, 33, 0.15);
  color: #bb6b00;
}

.issues-status[data-status='resolved'] {
  background: rgba(54, 150, 81, 0.18);
  color: #1b5c2e;
}

.issues-status[data-status='archived'] {
  background: rgba(6, 20, 26, 0.08);
  color: rgba(6, 20, 26, 0.6);
}

.issues-empty {
  margin: 0;
  padding: 0.9rem;
  border-radius: 0.9rem;
  text-align: center;
  background: rgba(6, 20, 26, 0.04);
  color: rgba(6, 20, 26, 0.6);
}

.issues-detail {
  width: 100%;
  border-radius: 1.5rem;
  border: 1px solid rgba(6, 20, 26, 0.08);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 30px 70px rgba(6, 20, 26, 0.12);
  min-height: 520px;
  padding: 1.75rem;
}

.issues-detail__placeholder {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(6, 20, 26, 0.55);
  text-align: center;
}

.issues-detail__content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.issues-detail__content.is-hidden {
  display: none;
}

.issues-detail__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.issues-detail__eyebrow {
  margin: 0;
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(6, 20, 26, 0.45);
}

.issues-detail__reference {
  margin: 0.2rem 0 0;
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  color: rgba(6, 20, 26, 0.6);
}

.issues-detail__meta {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: flex-end;
}

.issues-detail__meta label {
  font-size: 0.85rem;
  color: rgba(6, 20, 26, 0.65);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.issues-detail__sla {
  margin-top: 0.5rem;
  text-align: right;
}

.issues-sla-badge {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.issues-sla-badge--ok {
  background: rgba(34, 197, 94, 0.12);
  color: #166534;
}

.issues-sla-badge--warning {
  background: rgba(245, 158, 11, 0.15);
  color: #92400e;
}

.issues-sla-badge--danger {
  background: rgba(239, 68, 68, 0.12);
  color: #991b1b;
}

.tag-btn--warning {
  background: rgba(245, 158, 11, 0.12);
  color: #92400e;
  border-color: rgba(245, 158, 11, 0.25);
}

.tag-btn--warning:hover {
  background: rgba(245, 158, 11, 0.2);
}

.issues-priority-badge {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.issues-priority-badge--urgent {
  background: rgba(239, 68, 68, 0.12);
  color: #991b1b;
}

.issues-priority-badge--normal {
  background: rgba(59, 130, 246, 0.1);
  color: #1e40af;
}

.issues-priority-badge--low {
  background: rgba(107, 114, 128, 0.1);
  color: #4b5563;
}

.issues-detail__section {
  border-top: 1px solid rgba(6, 20, 26, 0.08);
  padding-top: 1rem;
}

.issues-detail__grid {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
}

.issues-detail__grid dt {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(6, 20, 26, 0.5);
}

.issues-detail__grid dd {
  margin: 0;
  font-weight: 600;
  color: #06141a;
}

.issues-detail__description {
  margin: 0;
  padding: 0.9rem 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(6, 20, 26, 0.08);
  background: rgba(255, 255, 255, 0.75);
  color: rgba(6, 20, 26, 0.75);
  line-height: 1.55;
  white-space: pre-line;
}

.issues-detail__description.is-empty {
  color: rgba(6, 20, 26, 0.45);
  font-style: italic;
}

.issues-photos-section .issues-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 0.6rem;
}

.issues-gallery-loading,
.issues-gallery-empty {
  margin: 0;
  padding: 0.85rem 1rem;
  border-radius: 0.85rem;
  border: 1px dashed rgba(6, 20, 26, 0.2);
  color: rgba(6, 20, 26, 0.55);
  background: rgba(255, 255, 255, 0.7);
}

.issues-gallery-item {
  border: 1px solid rgba(6, 20, 26, 0.1);
  border-radius: 0.85rem;
  overflow: hidden;
  background: #fff;
  cursor: pointer;
  padding: 0;
  line-height: 0;
}

.issues-gallery-item img {
  width: 100%;
  height: 88px;
  object-fit: cover;
  display: block;
}

.issues-thread {
  max-height: 320px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-right: 0.5rem;
}

.issues-thread .placeholder {
  padding: 0.8rem 1rem;
  border-radius: 0.85rem;
  border: 1px dashed rgba(6, 20, 26, 0.25);
  color: rgba(6, 20, 26, 0.55);
  background: rgba(255, 255, 255, 0.7);
  text-align: center;
}

.issues-thread::-webkit-scrollbar {
  width: 6px;
}

.issues-thread::-webkit-scrollbar-thumb {
  background: rgba(6, 20, 26, 0.25);
  border-radius: 999px;
}

.issues-message {
  border-radius: 1rem;
  border: 1px solid rgba(6, 20, 26, 0.08);
  background: rgba(6, 20, 26, 0.03);
  padding: 0.8rem 1rem;
}

.issues-message__meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: rgba(6, 20, 26, 0.55);
  margin-bottom: 0.3rem;
}

.issues-message__photos {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.55rem;
}

.issues-message__photos a {
  width: 74px;
  height: 74px;
  border-radius: 0.6rem;
  overflow: hidden;
  border: 1px solid rgba(6, 20, 26, 0.12);
  background: #fff;
  display: inline-flex;
}

.issues-message__photos img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.issues-comment-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.issues-comment-form textarea {
  border-radius: 1rem;
  border: 1px solid rgba(6, 20, 26, 0.12);
  padding: 0.9rem 1rem;
  background: rgba(255, 255, 255, 0.95);
  resize: vertical;
}

.issues-comment-form__actions {
  display: flex;
  justify-content: flex-end;
}

.issues-detail__footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  border-top: 1px solid rgba(6, 20, 26, 0.08);
  padding-top: 0.75rem;
}

.company-space-premium {
  width: 100%;
  max-width: 720px;
  padding: 2rem;
  border-radius: 1.5rem;
  border: 1px solid rgba(8, 31, 48, 0.08);
  background: #fff;
  box-shadow: 0 25px 60px rgba(8, 32, 55, 0.08);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.company-space-premium__badge {
  align-self: flex-start;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(5, 24, 34, 0.2);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #051822;
}

.company-space-premium h3 {
  margin: 0;
  font-size: 1.4rem;
  color: #051822;
}

.company-space-premium p {
  margin: 0;
  color: #4a5963;
  line-height: 1.5;
}

.company-space-premium ul {
  margin: 0;
  padding-left: 1.2rem;
  color: #2a3944;
  line-height: 1.45;
}

.company-space-premium__actions {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  color: #0d3258;
  font-size: 0.95rem;
}

.overview-metrics {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.page--facturo-space .overview-metrics {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 980px) {
  .page--facturo-space .overview-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .page--facturo-space .overview-metrics {
    grid-template-columns: 1fr;
  }
}

.facturo-dashboard-v2 .panel-header.facturo-dashboard-top {
  align-items: flex-start;
  gap: 1.5rem;
}

.facturo-dashboard-top__titles {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.facturo-dashboard-top__title {
  margin: 0;
  font-family: 'Playfair Display', serif;
  font-size: 2.1rem;
  letter-spacing: 0.01em;
  color: #06141a;
}

.facturo-dashboard-top__subtitle {
  margin: 0;
  color: rgba(6, 20, 26, 0.6);
  font-size: 0.95rem;
}

.facturo-dashboard-top__actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.facturo-dashboard-period select {
  border-radius: 0.85rem;
  border: 1px solid rgba(12, 28, 44, 0.15);
  padding: 0.7rem 2.6rem 0.7rem 1.1rem;
  font-size: 0.95rem;
  background: #fff;
  font-weight: 600;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #1b4f6a 50%),
    linear-gradient(135deg, #1b4f6a 50%, transparent 50%),
    linear-gradient(to right, transparent, transparent);
  background-position: calc(100% - 18px) 50%, calc(100% - 12px) 50%, 100% 0;
  background-size: 6px 6px, 6px 6px, 2.5rem 100%;
  background-repeat: no-repeat;
}

.facturo-dashboard-kpis {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}

@media (max-width: 1100px) {
  .facturo-dashboard-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .facturo-dashboard-top__actions {
    justify-content: flex-start;
  }

  .facturo-dashboard-kpis {
    grid-template-columns: 1fr;
  }
}

.facturo-kpi-card {
  border-radius: 1.1rem;
  border: 1px solid rgba(12, 28, 44, 0.08);
  background: #fff;
  padding: 1.25rem 1.35rem;
  box-shadow: 0 20px 45px rgba(12, 28, 44, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  cursor: pointer;
  min-width: 0;
}

.facturo-kpi-label {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(6, 20, 26, 0.65);
}

.facturo-kpi-value {
  font-size: 1.7rem;
  font-weight: 700;
  color: #06141a;
}

.facturo-kpi-meta {
  margin-top: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.facturo-kpi-delta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 999px;
  padding: 0.25rem 0.55rem;
  font-size: 0.78rem;
  font-weight: 700;
  background: rgba(18, 182, 134, 0.12);
  color: rgba(15, 122, 69, 0.95);
}

.facturo-kpi-delta.is-negative {
  background: rgba(244, 63, 94, 0.12);
  color: rgba(190, 18, 60, 0.95);
}

.facturo-kpi-hint {
  font-size: 0.85rem;
  color: rgba(6, 20, 26, 0.55);
}

.facturo-dashboard-main {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr);
  gap: 1.5rem;
  margin-top: 1.35rem;
  align-items: start;
}

@media (max-width: 980px) {
  .facturo-dashboard-main {
    grid-template-columns: 1fr;
  }
}

.facturo-dashboard-left {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  min-width: 0;
}

.facturo-dashboard-side {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.facturo-dashboard-card {
  border-radius: 1.25rem;
  border: 1px solid rgba(8, 31, 48, 0.08);
  background: #fff;
  box-shadow: 0 25px 60px rgba(8, 32, 55, 0.08);
  overflow: hidden;
  min-width: 0;
}

.facturo-dashboard-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.05rem 1.25rem;
  border-bottom: 1px solid rgba(8, 31, 48, 0.08);
}

.facturo-dashboard-card__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #06141a;
}

.facturo-dashboard-card__select {
  border-radius: 0.85rem;
  border: 1px solid rgba(12, 28, 44, 0.15);
  padding: 0.55rem 2.6rem 0.55rem 1.1rem;
  font-size: 0.9rem;
  background: #fff;
  font-weight: 600;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #1b4f6a 50%),
    linear-gradient(135deg, #1b4f6a 50%, transparent 50%),
    linear-gradient(to right, transparent, transparent);
  background-position: calc(100% - 18px) 50%, calc(100% - 12px) 50%, 100% 0;
  background-size: 6px 6px, 6px 6px, 2.5rem 100%;
  background-repeat: no-repeat;
}

.facturo-dashboard-card__body {
  padding: 1rem 1.25rem 1.25rem;
}

.facturo-dashboard-card--chart .facturo-dashboard-card__body {
  padding: 0.75rem 0.9rem 1.1rem;
}

.facturo-dashboard-linechart {
  width: 100%;
  height: 320px;
  display: block;
}

@media (max-width: 640px) {
  .facturo-dashboard-linechart {
    height: 240px;
  }
}

.facturo-dashboard-card__footer {
  padding: 0.95rem 1.25rem;
  border-top: 1px solid rgba(8, 31, 48, 0.08);
  background: rgba(250, 251, 252, 0.9);
}

.facturo-dashboard-link {
  color: rgba(17, 60, 104, 0.95);
  font-weight: 700;
  text-decoration: none;
}

.facturo-dashboard-link:hover {
  text-decoration: underline;
}

.facturo-dashboard-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.25rem 0.6rem;
  font-size: 0.78rem;
  font-weight: 700;
  background: rgba(244, 63, 94, 0.12);
  color: rgba(190, 18, 60, 0.95);
}

.facturo-dashboard-empty {
  margin: 0;
  color: rgba(6, 20, 26, 0.55);
  font-size: 0.9rem;
}

.facturo-activity-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.facturo-activity-item {
  width: 100%;
  text-align: left;
  border-radius: 1rem;
  border: 1px solid rgba(8, 31, 48, 0.12);
  background: rgba(250, 251, 252, 0.75);
  padding: 0.75rem 0.9rem;
  cursor: pointer;
  display: grid;
  gap: 0.12rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.facturo-activity-item:hover {
  transform: translateX(2px);
  background: #fff;
  box-shadow: 0 14px 28px rgba(8, 32, 55, 0.08);
}

.facturo-activity-item__meta {
  font-size: 0.78rem;
  color: rgba(6, 20, 26, 0.55);
}

.facturo-activity-item__title {
  font-size: 0.92rem;
  font-weight: 700;
  color: #06141a;
}

.facturo-activity-item__doc {
  font-size: 0.85rem;
  color: rgba(6, 20, 26, 0.7);
}

.facturo-activity-item__detail {
  font-size: 0.85rem;
  color: rgba(6, 20, 26, 0.55);
}

.facturo-activity-sheet {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.facturo-activity-row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(8, 31, 48, 0.08);
}

.facturo-activity-row__time {
  font-size: 0.85rem;
  color: rgba(6, 20, 26, 0.6);
  font-weight: 600;
}

.facturo-activity-row__title {
  font-weight: 700;
  color: #06141a;
}

.facturo-activity-row__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.25rem;
  color: rgba(6, 20, 26, 0.6);
  font-size: 0.9rem;
  align-items: center;
}

.facturo-activity-row__detail {
  color: rgba(6, 20, 26, 0.55);
}

.facturo-activity-row__meta .facturo-dashboard-link {
  margin-left: auto;
}

.facturo-activity-row:last-child {
  border-bottom: 0;
}

.facturo-activity-row__main {
  min-width: 0;
}

.facturo-activity-row__title,
.facturo-activity-row__meta span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.facturo-activity-row__meta span {
  max-width: 100%;
}

.facturo-activity-row__title {
  max-width: 100%;
}

.facturo-activity-row__meta .facturo-dashboard-link {
  white-space: nowrap;
}

.facturo-activity-row__meta span:first-child {
  font-weight: 600;
}

@media (max-width: 640px) {
  .facturo-activity-row {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }
  .facturo-activity-row__meta .facturo-dashboard-link {
    margin-left: 0;
  }
}

.facturo-bank-table {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.facturo-bank-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 140px 110px;
  gap: 0.9rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(8, 31, 48, 0.08);
  align-items: center;
}

.facturo-bank-row:last-child {
  border-bottom: 0;
}

.facturo-bank-row--head {
  padding-top: 0;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(6, 20, 26, 0.55);
  font-weight: 700;
}

.facturo-bank-row--head .is-right {
  text-align: right;
}

.facturo-bank-date {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  font-weight: 700;
  color: rgba(6, 20, 26, 0.65);
}

.facturo-bank-label {
  font-weight: 700;
  color: #06141a;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.facturo-bank-amount {
  font-weight: 800;
  white-space: nowrap;
}

.facturo-bank-amount.is-positive {
  color: rgba(15, 122, 69, 0.95);
}

.facturo-bank-amount.is-negative {
  color: rgba(190, 18, 60, 0.95);
}

.facturo-bank-pill {
  display: inline-flex;
  justify-content: center;
  border-radius: 999px;
  padding: 0.25rem 0.6rem;
  font-size: 0.78rem;
  font-weight: 700;
  background: rgba(6, 20, 26, 0.08);
  color: rgba(6, 20, 26, 0.6);
  white-space: nowrap;
}

.facturo-bank-pill.is-positive {
  background: rgba(18, 182, 134, 0.12);
  color: rgba(15, 122, 69, 0.95);
}

.facturo-bank-pill.is-neutral {
  background: rgba(6, 20, 26, 0.08);
  color: rgba(6, 20, 26, 0.6);
}

.facturo-bank-row .is-right {
  text-align: right;
}

.overview-card {
  padding: 1.75rem;
  border-radius: 1.25rem;
  border: 1px solid rgba(8, 31, 48, 0.08);
  background: #fff;
  box-shadow: 0 25px 60px rgba(8, 32, 55, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.overview-card__label {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(6, 20, 26, 0.6);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.overview-card__value {
  margin: 0;
  font-size: 2rem;
  font-weight: 600;
  color: #06141a;
}

.overview-card__value--secondary {
  font-size: 1.4rem;
  color: #103357;
}

.overview-card__hint {
  font-size: 0.85rem;
  color: rgba(6, 20, 26, 0.55);
}

.page--company-space [data-companyspace-panel="overview"] .overview-card__hint {
  display: none;
}

.overview-card--revenue {
  grid-column: span 2;
}

.company-dashboard-manage {
  margin-top: 0.85rem;
  padding: 0.95rem 1.1rem;
  border-radius: 1.1rem;
  border: 1px solid rgba(12, 28, 44, 0.1);
  background: rgba(12, 28, 44, 0.02);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.75rem;
}

.company-dashboard-manage__item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.7rem 0.9rem;
  border-radius: 0.95rem;
  border: 1px solid rgba(12, 28, 44, 0.1);
  background: rgba(255, 255, 255, 0.92);
  color: rgba(6, 20, 26, 0.85);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.company-dashboard-manage__item:hover {
  background: rgba(255, 255, 255, 1);
  box-shadow: 0 16px 30px rgba(12, 28, 44, 0.08);
  transform: translateY(-1px);
}

.company-dashboard-manage__item input {
  width: 1.15rem;
  height: 1.15rem;
  accent-color: #113c68;
}

.company-dashboard-manage__item span {
  font-weight: 600;
}

.overview-card__inline {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: space-between;
}

.overview-actions {
  width: 100%;
  border-radius: 1.2rem;
  border: 1px solid rgba(12, 28, 44, 0.08);
  padding: 1.5rem 1.75rem 1.75rem;
  background: rgba(12, 28, 44, 0.02);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.overview-actions__header {
  margin-bottom: 1.25rem;
}

.overview-actions__title {
  margin: 0;
  font-weight: 600;
  color: #06141a;
}

.overview-actions__subtitle {
  font-size: 0.9rem;
  color: rgba(6, 20, 26, 0.6);
}

.overview-actions__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.company-space-panel__subtitle {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(6, 20, 26, 0.55);
}

.revenue-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.revenue-details-card {
  background: #ffffff;
  border-radius: 1rem;
  border: 1px solid rgba(6, 20, 26, 0.08);
  padding: 1.1rem 1.2rem;
  box-shadow: 0 16px 35px rgba(6, 25, 41, 0.1);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.revenue-details-card p {
  margin: 0;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(6, 20, 26, 0.55);
  font-weight: 700;
}

.revenue-details-card strong {
  font-size: 1.35rem;
  color: #0d2c44;
}

.revenue-details-card span {
  font-size: 0.8rem;
  color: rgba(6, 20, 26, 0.5);
}

.revenue-details-table {
  background: #ffffff;
  border-radius: 1.2rem;
  border: 1px solid rgba(6, 20, 26, 0.08);
  padding: 1rem 1.2rem;
  box-shadow: 0 20px 40px rgba(6, 25, 41, 0.12);
}

.revenue-details-table__head,
.revenue-details-row {
  display: grid;
  grid-template-columns: 1.2fr 1.3fr 1.5fr 0.9fr 0.9fr;
  gap: 0.75rem;
  align-items: center;
}

.revenue-details-table__head {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(6, 20, 26, 0.5);
  font-weight: 700;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(6, 20, 26, 0.08);
}

.revenue-details-table__body {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-top: 0.75rem;
}

.revenue-details-row {
  background: #f8fafc;
  border-radius: 0.85rem;
  padding: 0.75rem 0.9rem;
  font-weight: 600;
  color: #0f172a;
}

.revenue-details-row span {
  color: rgba(6, 20, 26, 0.7);
}

.revenue-details-row--client {
  cursor: pointer;
  transition: background 0.15s ease;
}

.revenue-details-row--client:hover {
  background: #eef4fb;
}

.revenue-details-row--client.is-open {
  background: #e8f1fd;
}

.revenue-details-sites {
  display: none;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: -0.3rem;
  margin-bottom: 0.1rem;
}

.revenue-details-sites.is-open {
  display: flex;
}

.revenue-details-row--site {
  margin-left: 0.9rem;
  border: 1px solid rgba(6, 20, 26, 0.08);
  background: #ffffff;
}

.revenue-details-empty {
  margin: 0.8rem 0 0;
  text-align: center;
  color: rgba(6, 20, 26, 0.5);
}

@media (max-width: 900px) {
  .revenue-details-table__head,
  .revenue-details-row {
    grid-template-columns: 1fr 1fr;
    row-gap: 0.35rem;
  }
}

.facturo-dashboard-chart {
  margin-top: 1.5rem;
  padding: 1.5rem;
  border-radius: 1.25rem;
  border: 1px solid rgba(8, 31, 48, 0.08);
  background: #fff;
  box-shadow: 0 25px 60px rgba(8, 32, 55, 0.08);
}

.facturo-dashboard-chart__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.facturo-dashboard-chart__meta {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.facturo-dashboard-chart__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: #06141a;
}

.facturo-dashboard-chart__subtitle {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(6, 20, 26, 0.6);
}

.facturo-dashboard-chart__controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.facturo-dashboard-chart__control {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: rgba(6, 20, 26, 0.6);
}

.facturo-dashboard-chart__control span {
  font-weight: 600;
  color: rgba(6, 20, 26, 0.55);
}

.facturo-dashboard-chart__control input {
  border-radius: 999px;
  border: 1px solid rgba(12, 28, 44, 0.15);
  padding: 0.55rem 0.85rem;
  font-size: 0.95rem;
  background: #fff;
  color: #06141a;
}

.facturo-dashboard-chart__control input:focus {
  outline: none;
  border-color: rgba(17, 60, 104, 0.35);
  box-shadow: 0 0 0 3px rgba(17, 60, 104, 0.12);
}

.facturo-dashboard-chart__canvas {
  width: 100%;
  height: 220px;
}

.facturo-dashboard-chart__svg {
  width: 100%;
  height: 100%;
  display: block;
}

@media (max-width: 640px) {
  .facturo-dashboard-chart__header {
    flex-direction: column;
  }

  .facturo-dashboard-chart__controls {
    width: 100%;
    justify-content: flex-start;
    flex-direction: column;
    align-items: stretch;
  }

  .facturo-dashboard-chart__control {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .facturo-dashboard-chart__control input {
    width: 100%;
  }
}

.facturo-quotes-toolbar {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
}

.facturo-docs-header {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.facturo-docs-header__titles {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.facturo-docs-header__title {
  margin: 0;
  font-family: 'Playfair Display', serif;
  font-size: 2.1rem;
  letter-spacing: 0.01em;
  color: #06141a;
}

.facturo-docs-header__subtitle {
  margin: 0;
  color: rgba(6, 20, 26, 0.6);
}

.facturo-docs-header__actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.page--facturo-quotes .facturo-docs-metrics {
  margin-top: 1.25rem;
  margin-bottom: 1.25rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 1100px) {
  .page--facturo-quotes .facturo-docs-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .page--facturo-quotes .facturo-docs-metrics {
    grid-template-columns: 1fr;
  }
}

.page--facturo-quotes .facturo-docs-metrics .overview-card__label {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 600;
  font-size: 0.95rem;
}

.page--facturo-quotes .facturo-docs-metrics .overview-card__value {
  font-size: 1.9rem;
}

.facturo-docs-filters {
  width: 100%;
  border-radius: 1.25rem;
  border: 1px solid rgba(8, 31, 48, 0.08);
  background: #fff;
  box-shadow: 0 25px 60px rgba(8, 32, 55, 0.08);
  padding: 1rem;
  display: grid;
  grid-template-columns: minmax(240px, 2fr) repeat(3, minmax(180px, 1fr));
  gap: 0.85rem;
  align-items: center;
}

@media (max-width: 980px) {
  .facturo-docs-filters {
    grid-template-columns: 1fr;
  }

  .facturo-docs-filters .facturo-select,
  .facturo-docs-filters .facturo-input {
    min-width: 0;
    width: 100%;
  }
}

.facturo-docs-list {
  margin-top: 1.25rem;
}

.facturo-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid rgba(6, 20, 26, 0.12);
  background: rgba(6, 20, 26, 0.04);
  color: rgba(6, 20, 26, 0.72);
  white-space: nowrap;
}

.facturo-status--draft {
  border-color: rgba(6, 20, 26, 0.14);
  background: rgba(6, 20, 26, 0.06);
  color: rgba(6, 20, 26, 0.72);
}

.facturo-status--ready {
  border-color: rgba(8, 31, 48, 0.14);
  background: rgba(8, 31, 48, 0.06);
  color: rgba(8, 31, 48, 0.82);
}

.facturo-status--sent {
  border-color: rgba(13, 58, 94, 0.18);
  background: rgba(13, 58, 94, 0.08);
  color: rgba(13, 58, 94, 0.92);
}

.facturo-status--accepted {
  border-color: rgba(0, 122, 83, 0.2);
  background: rgba(0, 122, 83, 0.1);
  color: rgba(0, 122, 83, 0.98);
}

.facturo-status--declined {
  border-color: rgba(166, 77, 0, 0.22);
  background: rgba(166, 77, 0, 0.1);
  color: rgba(166, 77, 0, 0.98);
}

.facturo-status--expired {
  border-color: rgba(185, 28, 28, 0.22);
  background: rgba(185, 28, 28, 0.1);
  color: rgba(185, 28, 28, 0.98);
}

.facturo-status--archived {
  border-color: rgba(82, 92, 102, 0.22);
  background: rgba(82, 92, 102, 0.1);
  color: rgba(82, 92, 102, 0.95);
}

.facturo-table-wrap {
  width: 100%;
  overflow: auto;
  border-radius: 1.25rem;
  border: 1px solid rgba(8, 31, 48, 0.08);
  background: #fff;
  box-shadow: 0 25px 60px rgba(8, 32, 55, 0.08);
}

.facturo-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 860px;
}

.facturo-table th,
.facturo-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(8, 31, 48, 0.08);
  text-align: left;
  vertical-align: middle;
  font-size: 0.95rem;
}

.facturo-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: rgba(255, 255, 255, 0.98);
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: rgba(6, 20, 26, 0.55);
}

.facturo-table tbody tr {
  cursor: pointer;
  background: transparent;
}

.facturo-table tbody tr:hover {
  background: rgba(13, 58, 94, 0.04);
}

.facturo-table td.is-right,
.facturo-table th.is-right {
  text-align: right;
  white-space: nowrap;
}

.facturo-table td.is-actions,
.facturo-table th.is-actions {
  width: 52px;
  text-align: right;
}

.facturo-docs-table td.is-actions,
.facturo-docs-table th.is-actions {
  width: 112px;
}

.facturo-row-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem;
}

.facturo-table__meta {
  margin-top: 0.2rem;
  font-size: 0.85rem;
  color: rgba(6, 20, 26, 0.55);
}

.facturo-balance {
  font-weight: 850;
}

.facturo-balance--due {
  color: #b91c1c;
}

.facturo-balance--ok {
  color: rgba(6, 20, 26, 0.7);
}

.facturo-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(13, 58, 94, 0.14);
  background: rgba(13, 58, 94, 0.08);
  color: rgba(13, 58, 94, 0.85);
  font-size: 0.85rem;
  font-weight: 700;
  white-space: nowrap;
}

.icon-btn.icon-btn--kebab {
  width: 38px;
  height: 38px;
  border-radius: 0.85rem;
  border: 1px solid rgba(8, 31, 48, 0.14);
  background: rgba(255, 255, 255, 0.96);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  line-height: 1;
  color: rgba(6, 20, 26, 0.75);
}

.icon-btn.icon-btn--kebab:hover {
  background: rgba(13, 58, 94, 0.08);
}

.facturo-input,
.facturo-select {
  border-radius: 0.9rem;
  border: 1px solid rgba(6, 20, 26, 0.15);
  padding: 0.85rem 1rem;
  font-size: 1rem;
  font-family: inherit;
  background: white;
  min-width: 190px;
}

.facturo-autocomplete {
  position: relative;
  width: 100%;
}

.facturo-autocomplete .facturo-input {
  width: 100%;
  min-width: 0;
}

.facturo-autocomplete__menu {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 0.35rem);
  border-radius: 1rem;
  border: 1px solid rgba(8, 31, 48, 0.1);
  background: #fff;
  box-shadow: 0 18px 40px rgba(8, 32, 55, 0.12);
  padding: 0.35rem;
  z-index: 30;
  max-height: 240px;
  overflow: auto;
}

.facturo-autocomplete__item {
  width: 100%;
  border: none;
  background: transparent;
  text-align: left;
  padding: 0.65rem 0.75rem;
  border-radius: 0.85rem;
  cursor: pointer;
  display: grid;
  gap: 0.12rem;
  color: rgba(6, 20, 26, 0.92);
  font-weight: 750;
}

.facturo-autocomplete__item small {
  display: block;
  color: rgba(6, 20, 26, 0.6);
  font-weight: 650;
}

.facturo-autocomplete__item:hover,
.facturo-autocomplete__item:focus {
  outline: none;
  background: rgba(13, 58, 94, 0.06);
}

.facturo-quote-actions {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.75rem 1.25rem;
  border-radius: 0;
  border-bottom: 1px solid var(--facturo-border);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--facturo-shadow-sm);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
}

.facturo-quote-actions__left {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.facturo-quote-actions__meta {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
}

.facturo-quote-actions__total {
  display: grid;
  gap: 0.1rem;
  padding: 0.35rem 0.7rem;
  border-radius: 0.6rem;
  border: 1px solid var(--facturo-border);
  background: #f8fafc;
}

.facturo-quote-actions__total span {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(15, 23, 42, 0.6);
  font-weight: 700;
}

.facturo-quote-actions__total strong {
  font-size: 1rem;
  color: #0f172a;
  font-weight: 800;
}

.facturo-quote-actions__meta strong {
  font-weight: 700;
  color: #0f172a;
}

.facturo-quote-actions__meta span {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: #f1f5f9;
  border: 1px solid var(--facturo-border);
  color: rgba(15, 23, 42, 0.8);
  font-size: 0.8rem;
  font-weight: 600;
}

.facturo-quote-actions__right {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.facturo-quote-actions__right input[type='color'].facturo-input {
  width: 44px;
  height: 38px;
  padding: 0;
  border-radius: 0.75rem;
  border: 1px solid rgba(8, 31, 48, 0.14);
  overflow: hidden;
  background: transparent;
}

/* -------------------------------------------------------------------------- */
/* Facturo - Quotes (Aventin V2 look)                                         */
/* -------------------------------------------------------------------------- */

body.page--facturo-quotes.facturo-quotes-detail .company-space-main {
  padding: 0;
  gap: 0;
}

body.page--facturo-quotes.facturo-quotes-detail .company-space-panels {
  gap: 0;
}

body.page--facturo-quotes.facturo-quotes-detail .company-space-panel.is-visible {
  padding: 0;
  gap: 0;
}

body.page--facturo-quotes.facturo-quotes-detail .company-space-panel {
  height: auto;
  min-height: 100%;
}

.facturo-pro-appheader {
  height: 70px;
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 1rem;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--facturo-border);
  box-shadow: var(--facturo-shadow-sm);
  backdrop-filter: blur(12px);
}

.facturo-pro-appheader__left,
.facturo-pro-appheader__center,
.facturo-pro-appheader__right {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

.facturo-pro-appheader__center {
  justify-content: center;
}

.facturo-pro-appheader__right {
  justify-content: flex-end;
}

.facturo-pro-back {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid var(--facturo-border);
  background: #fff;
  font-weight: 800;
  color: #0f172a;
  cursor: pointer;
}

.facturo-pro-back:hover {
  background: #f8fafc;
}

.facturo-pill-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--facturo-border);
  background: #f8fafc;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(15, 23, 42, 0.78);
}

.facturo-pill-badge--type {
  background: rgba(37, 99, 235, 0.1);
  border-color: rgba(37, 99, 235, 0.25);
  color: rgba(37, 99, 235, 0.95);
}

.facturo-pro-doc {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.facturo-pro-doc strong[data-facturo-quote-reference] {
  font-weight: 800;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 320px;
}

.facturo-pro-doc__amount {
  font-weight: 800;
  color: #0f172a;
  white-space: nowrap;
}

.facturo-pro-link {
  border: none;
  background: transparent;
  color: rgba(15, 23, 42, 0.68);
  font-weight: 700;
  cursor: pointer;
  padding: 0.35rem 0.45rem;
  border-radius: 10px;
}

.facturo-pro-link:hover {
  background: rgba(15, 23, 42, 0.06);
  color: #0f172a;
}

.facturo-btn {
  border: none;
  cursor: pointer;
  border-radius: 12px;
  padding: 0.55rem 0.9rem;
  font-weight: 800;
  font-size: 0.92rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
}

.facturo-btn--dark {
  background: #111827;
  color: #fff;
}

.facturo-btn--dark:hover {
  background: #0b1220;
}

.facturo-btn--teal {
  background: #0d9488;
  color: #fff;
}

.facturo-btn--teal:hover {
  background: #0f766e;
}

.facturo-btn--blue {
  background: #2563eb;
  color: #fff;
}

.facturo-btn--blue:hover {
  background: #1d4ed8;
}

.icon-btn.icon-btn--kebab {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: none;
  background: rgba(15, 23, 42, 0.06);
  color: rgba(15, 23, 42, 0.8);
  font-weight: 900;
}

.icon-btn.icon-btn--kebab:hover {
  background: rgba(15, 23, 42, 0.1);
}

.facturo-pro-layout-toggle {
  display: inline-flex;
  border: 1px solid var(--facturo-border);
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
}

.facturo-pro-layout-toggle__btn {
  border: none;
  background: transparent;
  padding: 0.35rem 0.6rem;
  font-weight: 800;
  font-size: 0.8rem;
  color: rgba(15, 23, 42, 0.7);
  cursor: pointer;
}

.facturo-pro-layout-toggle__btn.is-active {
  background: #f8fafc;
  color: #0f172a;
}

.facturo-editor-sticky {
  position: sticky;
  top: 0.75rem;
  z-index: 5;
  background: #fff;
  border: 1px solid var(--facturo-border);
  border-radius: 0.9rem;
  padding: 0.85rem 1rem;
  box-shadow: var(--facturo-shadow-sm);
}

.facturo-editor-sticky__top {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
}

.facturo-editor-sticky__ref {
  font-weight: 900;
  color: #0f172a;
}

.facturo-editor-sticky .facturo-quote-pills {
  margin-top: 0;
  border: none;
  padding: 0;
  background: transparent;
  gap: 0.45rem;
}

.facturo-editor-sticky .facturo-quote-pill {
  border: 1px solid var(--facturo-border);
  background: #fff;
  padding: 0.45rem 0.85rem;
  font-weight: 700;
  color: rgba(15, 23, 42, 0.78);
}

.facturo-editor-sticky .facturo-quote-pill:hover {
  color: #0f172a;
  background: #f8fafc;
}

.facturo-editor-sticky .facturo-quote-pill.is-active {
  background: #111827;
  border-color: #111827;
  color: #fff;
}

.facturo-pill__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
}

/* Tabs behave like DocumentEditor: one panel visible in standard mode */
body.page--facturo-quotes.facturo-mode-standard .quote-step__status {
  display: none;
}

body.page--facturo-quotes.facturo-mode-standard .quote-step__toggle::before {
  display: none;
}

body.page--facturo-quotes.facturo-mode-standard .quote-step.is-collapsed {
  display: none;
}

body.page--facturo-quotes.facturo-mode-standard .quote-step__header {
  border-left: none;
  border-bottom: 1px solid var(--facturo-border);
  background: #fff;
}

body.page--facturo-quotes.facturo-mode-standard .quote-step__toggle {
  font-weight: 800;
}

body.page--facturo-quotes.facturo-mode-standard .quote-step__header {
  display: none;
}

body.page--facturo-quotes.facturo-mode-standard .quote-step__body {
  padding-top: 1.15rem;
}

.facturo-emitter-grid3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

@media (max-width: 900px) {
  .facturo-emitter-grid3 {
    grid-template-columns: 1fr;
  }
}

.facturo-emitter-logo > label {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: rgba(15, 23, 42, 0.9);
}

.facturo-emitter-logo__box {
  margin-top: 0.6rem;
  border: 1px solid rgba(6, 20, 26, 0.12);
  border-radius: 1.15rem;
  padding: 1rem 1.05rem;
  background: rgba(248, 250, 252, 0.75);
}

.facturo-emitter-logo__row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.facturo-logo-dropzone {
  width: 140px;
  height: 58px;
  border-radius: 0.95rem;
  border: 1px dashed rgba(6, 20, 26, 0.22);
  background: rgba(255, 255, 255, 0.9);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  padding: 0;
}

.facturo-logo-dropzone__placeholder {
  font-weight: 700;
  color: rgba(15, 23, 42, 0.6);
  font-size: 0.9rem;
}

.facturo-logo-dropzone__preview {
  position: absolute;
  inset: 10px;
  width: calc(100% - 20px);
  height: calc(100% - 20px);
  object-fit: contain;
}

.facturo-emitter-save {
  margin-top: 1.1rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(6, 20, 26, 0.12);
}

.facturo-btn--green {
  background: #198754;
  border: 1px solid rgba(25, 135, 84, 0.9);
  box-shadow: 0 12px 18px rgba(25, 135, 84, 0.15);
}

.facturo-btn--green:hover {
  filter: brightness(0.96);
}

.facturo-emitter-save__hint {
  text-align: center;
  margin-top: 0.55rem;
}

.facturo-subcard {
  width: 100%;
  border-radius: 1.15rem;
  border: 1px solid rgba(6, 20, 26, 0.12);
  background: #ffffff;
  padding: 1rem 1.05rem;
}

.facturo-subcard__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.facturo-subcard__title {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 900;
  font-size: 1.15rem;
  color: rgba(15, 23, 42, 0.92);
}

.facturo-subcard__icon {
  width: 34px;
  height: 34px;
  border-radius: 0.9rem;
  border: 1px solid rgba(6, 20, 26, 0.08);
  background: rgba(248, 250, 252, 0.9);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(15, 23, 42, 0.7);
  font-size: 1rem;
}

.facturo-switch-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.facturo-switch-row__button {
  border: none;
  background: transparent;
  padding: 0.35rem 0;
  font-weight: 850;
  font-size: 1rem;
  color: rgba(15, 23, 42, 0.9);
  cursor: pointer;
  text-align: left;
}

.facturo-switch {
  position: relative;
  width: 44px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.facturo-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.facturo-switch__track {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.55);
  border: 1px solid rgba(15, 23, 42, 0.15);
  transition: background 0.2s ease;
}

.facturo-switch__track::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.18);
  transition: transform 0.2s ease;
}

.facturo-switch input:checked + .facturo-switch__track {
  background: rgba(17, 60, 104, 0.85);
}

.facturo-switch input:checked + .facturo-switch__track::after {
  transform: translateX(18px);
}


.facturo-quote-layout {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 0;
  align-items: stretch;
}

.facturo-quote-editor,
.facturo-quote-preview {
  min-width: 0;
}

.facturo-quote-editor {
  padding: 1.5rem;
  background: var(--facturo-surface);
  border-right: 1px solid var(--facturo-border);
  min-height: calc(100dvh - 70px);
  height: auto;
  overflow: visible;
}

.facturo-quote-preview {
  background-color: #cbd5e1;
  background-image: radial-gradient(#e2e8f0 1px, transparent 1px);
  background-size: 20px 20px;
  padding: 2.25rem;
  display: flex;
  justify-content: center;
  min-height: calc(100dvh - 70px);
  height: auto;
  overflow: visible;
}

.facturo-quote-preview .facturo-preview-card {
  width: min(820px, 100%);
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}

.facturo-editor-card {
  width: 100%;
  border-radius: 1.25rem;
  border: 1px solid rgba(6, 20, 26, 0.12);
  background: #ffffff;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.06);
  overflow: visible;
}

.facturo-editor-card__header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid rgba(6, 20, 26, 0.08);
  background: rgba(248, 250, 252, 0.7);
}

.facturo-editor-card__header h3 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 850;
  color: rgba(15, 23, 42, 0.92);
}

.facturo-editor-card__icon {
  width: 34px;
  height: 34px;
  border-radius: 0.9rem;
  border: 1px solid rgba(6, 20, 26, 0.08);
  background: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(15, 23, 42, 0.7);
}

.facturo-editor-card__body {
  padding: 1.25rem;
}

.facturo-divider {
  border: none;
  border-top: 1px solid rgba(6, 20, 26, 0.12);
  margin: 1.25rem 0;
}

.facturo-segment {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  border: 1px solid rgba(6, 20, 26, 0.18);
  border-radius: 0.75rem;
  overflow: hidden;
  background: #ffffff;
}

.facturo-segment button {
  border: none;
  background: transparent;
  padding: 0.75rem 0.8rem;
  font-weight: 800;
  cursor: pointer;
  color: rgba(15, 23, 42, 0.8);
}

.facturo-segment button.is-active {
  background: #1363df;
  color: #ffffff;
}

.facturo-segment button:disabled {
  cursor: not-allowed;
  color: rgba(15, 23, 42, 0.35);
  background: rgba(15, 23, 42, 0.03);
}

.facturo-accordion {
  margin-top: 1rem;
  border-radius: 1.1rem;
  border: 1px solid rgba(6, 20, 26, 0.12);
  overflow: hidden;
  background: #ffffff;
}

.facturo-accordion__toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1.05rem 1.15rem;
  border: none;
  background: #ffffff;
  font-weight: 850;
  cursor: pointer;
}

.facturo-accordion__toggle:hover {
  background: rgba(248, 250, 252, 0.9);
}

.facturo-accordion__chevron {
  transition: transform 0.25s ease;
  color: rgba(15, 23, 42, 0.6);
}

.facturo-accordion.is-open .facturo-accordion__chevron {
  transform: rotate(180deg);
}

.facturo-accordion__panel {
  border-top: 1px solid rgba(6, 20, 26, 0.08);
  padding: 1.1rem 1.15rem;
  display: none;
}

.facturo-accordion.is-open .facturo-accordion__panel {
  display: block;
}

.facturo-quote-tabs {
  width: 100%;
  display: none;
  gap: 0.6rem;
  padding: 0.2rem;
  border-radius: 999px;
  border: 1px solid rgba(6, 20, 26, 0.12);
  background: rgba(6, 20, 26, 0.03);
}

.facturo-tab {
  flex: 1 1 0;
  border: none;
  background: transparent;
  border-radius: 999px;
  padding: 0.65rem 0.85rem;
  font-weight: 700;
  cursor: pointer;
  color: rgba(6, 20, 26, 0.65);
}

.facturo-tab.is-active {
  background: white;
  box-shadow: 0 12px 26px rgba(8, 32, 55, 0.1);
  color: #06141a;
}

.facturo-preview-card {
  border-radius: 0.85rem;
  border: 1px solid var(--facturo-border);
  background: #fff;
  box-shadow: var(--facturo-shadow-md);
  padding: 2rem;
}

.facturo-preview-zone {
  border-radius: 0.9rem;
  padding: 0.6rem 0.75rem;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
  border: 1px solid transparent;
}

.facturo-preview-zone:hover {
  background: rgba(13, 58, 94, 0.04);
  border-color: rgba(13, 58, 94, 0.12);
}

.facturo-quote-guidance {
  position: sticky;
  top: 0.75rem;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.7rem 1rem;
  border-radius: 0.85rem;
  border: 1px solid var(--facturo-border);
  background: #fff;
  box-shadow: var(--facturo-shadow-sm);
}

.facturo-quote-guidance__right {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.facturo-quote-pills {
  margin-top: 1rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  border: 1px solid var(--facturo-border);
  padding: 0.35rem;
  border-radius: 999px;
  background: #f8fafc;
}

.facturo-quote-pill {
  border: 1px solid transparent;
  background: transparent;
  color: rgba(15, 23, 42, 0.7);
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
}

.facturo-quote-pill:hover {
  border-color: var(--facturo-border);
  color: #0f172a;
}

.facturo-quote-pill.is-active {
  background: #0f172a;
  border-color: #0f172a;
  color: #fff;
}

.facturo-quote-guidance__left strong {
  display: block;
  font-weight: 800;
  color: #06141a;
}

.facturo-quote-guidance__checklist {
  margin-top: 0.4rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.55rem;
}

.facturo-quote-guidance-card {
  text-align: left;
  border-radius: 1rem;
  border: 1px solid rgba(6, 20, 26, 0.12);
  background: rgba(6, 20, 26, 0.03);
  padding: 0.55rem 0.7rem;
  display: grid;
  gap: 0.2rem;
  cursor: pointer;
  transition: transform 140ms ease, background 180ms ease, border-color 180ms ease;
}

.facturo-quote-guidance-card:hover {
  transform: translateY(-1px);
  background: rgba(17, 60, 104, 0.04);
  border-color: rgba(17, 60, 104, 0.18);
}

.facturo-quote-guidance-card__label {
  font-weight: 900;
  color: rgba(6, 20, 26, 0.92);
  font-size: 0.92rem;
}

.facturo-quote-guidance-card__meta {
  font-weight: 750;
  color: rgba(6, 20, 26, 0.6);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.facturo-quote-guidance-card.is-ok {
  border-color: rgba(19, 105, 73, 0.2);
  background: rgba(19, 105, 73, 0.08);
}

.facturo-quote-guidance-card.is-ok .facturo-quote-guidance-card__label,
.facturo-quote-guidance-card.is-ok .facturo-quote-guidance-card__meta {
  color: rgba(19, 105, 73, 0.98);
}

.facturo-quote-guidance-card.is-missing {
  border-color: rgba(166, 77, 0, 0.2);
  background: rgba(166, 77, 0, 0.08);
}

.facturo-quote-guidance-card.is-missing .facturo-quote-guidance-card__label,
.facturo-quote-guidance-card.is-missing .facturo-quote-guidance-card__meta {
  color: rgba(166, 77, 0, 0.98);
}

.facturo-quote-steps {
  margin-top: 1rem;
  display: grid;
  gap: 0.75rem;
}

.quote-step {
  border-radius: 0.75rem;
  border: 1px solid var(--facturo-border);
  background: #fff;
  box-shadow: var(--facturo-shadow-sm);
  overflow: hidden;
}

.quote-step__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: #fff;
  transition: background 180ms ease, border-color 180ms ease;
  border-left: 3px solid transparent;
}

.quote-step.is-ok .quote-step__header {
  background: #f0fdf4;
  border-left-color: rgba(19, 105, 73, 0.6);
}

.quote-step.is-missing .quote-step__header {
  background: #fff7ed;
  border-left-color: rgba(166, 77, 0, 0.6);
}

.quote-step__toggle {
  border: none;
  background: transparent;
  padding: 0;
  font-weight: 600;
  cursor: pointer;
  color: #0f172a;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.quote-step__toggle::before {
  content: '\25BE';
  color: rgba(15, 23, 42, 0.6);
  font-size: 0.95rem;
  transform: translateY(-1px);
}

.quote-step.is-collapsed .quote-step__toggle::before {
  content: '\25B8';
}

.quote-step__status {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--facturo-border);
  background: #f8fafc;
  color: rgba(15, 23, 42, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.quote-step.is-ok .quote-step__status {
  border-color: rgba(19, 105, 73, 0.22);
  background: rgba(19, 105, 73, 0.1);
  color: rgba(19, 105, 73, 0.98);
}

.quote-step.is-missing .quote-step__status {
  border-color: rgba(166, 77, 0, 0.22);
  background: rgba(166, 77, 0, 0.1);
  color: rgba(166, 77, 0, 0.98);
}

.quote-step__body {
  padding: 0.25rem 0.95rem 1rem;
  max-height: 2200px;
  opacity: 1;
  transform: translateY(0);
  transition: max-height 260ms ease, opacity 200ms ease, transform 260ms ease;
}

.quote-step.is-collapsed .quote-step__body {
  padding-bottom: 0;
  max-height: 0;
  opacity: 0;
  transform: translateY(-6px);
}

.facturo-lines {
  margin-top: 1.25rem;
}

.facturo-lines__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.facturo-lines__header h3 {
  margin: 0;
  font-weight: 700;
  color: #06141a;
}

.facturo-lines__table {
  width: 100%;
  display: grid;
  gap: 0.75rem;
}

.facturo-lines.is-step-target {
  box-shadow: 0 22px 55px rgba(17, 60, 104, 0.16);
  border-radius: 1rem;
}

.facturo-mode-standard [data-facturo-quote-link],
.facturo-mode-standard [data-facturo-quote-convert],
.facturo-mode-standard [data-facturo-quote-color-toggle],
.facturo-mode-standard [data-facturo-quote-color] {
  display: none !important;
}

.facturo-mode-standard .facturo-expert-only {
  display: none !important;
}

/* Desktop: en mode standard, afficher uniquement la rubrique active (pas de liste de rubriques empilées). */
@media (min-width: 992px) {
  body.page--facturo-quotes.facturo-quotes-detail.facturo-mode-standard .quote-step.is-collapsed {
    display: none;
  }

  /* Desktop : n'afficher que la rubrique active en mode standard */
  body.page--facturo-quotes.facturo-quotes-detail.facturo-mode-standard .quote-step {
    display: none;
  }
  body.page--facturo-quotes.facturo-quotes-detail.facturo-mode-standard[data-facturo-active-step='context'] .quote-step[data-quote-step='context'],
  body.page--facturo-quotes.facturo-quotes-detail.facturo-mode-standard[data-facturo-active-step='attachments'] .quote-step[data-quote-step='attachments'],
  body.page--facturo-quotes.facturo-quotes-detail.facturo-mode-standard[data-facturo-active-step='parties'] .quote-step[data-quote-step='parties'],
  body.page--facturo-quotes.facturo-quotes-detail.facturo-mode-standard[data-facturo-active-step='lines'] .quote-step[data-quote-step='lines'],
  body.page--facturo-quotes.facturo-quotes-detail.facturo-mode-standard[data-facturo-active-step='conditions'] .quote-step[data-quote-step='conditions'] {
    display: block;
  }

  body.page--facturo-quotes.facturo-quotes-detail.facturo-mode-standard .facturo-lines-structure {
    display: none;
  }
}

/* Correctif: certains écrans n'ont pas toujours la classe `facturo-quotes-detail`. */
@media (min-width: 992px) {
  body.page--facturo-quotes.facturo-mode-standard .quote-step {
    display: none;
  }

  body.page--facturo-quotes.facturo-mode-standard[data-facturo-active-step='context'] .quote-step[data-quote-step='context'],
  body.page--facturo-quotes.facturo-mode-standard[data-facturo-active-step='attachments'] .quote-step[data-quote-step='attachments'],
  body.page--facturo-quotes.facturo-mode-standard[data-facturo-active-step='parties'] .quote-step[data-quote-step='parties'],
  body.page--facturo-quotes.facturo-mode-standard[data-facturo-active-step='lines'] .quote-step[data-quote-step='lines'],
  body.page--facturo-quotes.facturo-mode-standard[data-facturo-active-step='conditions'] .quote-step[data-quote-step='conditions'] {
    display: block;
  }

  body.page--facturo-quotes.facturo-mode-standard .quote-step.is-collapsed {
    display: none;
  }

  body.page--facturo-quotes.facturo-mode-standard .facturo-lines-structure {
    display: none;
  }
}

.facturo-lines-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid rgba(6, 20, 26, 0.12);
  background: #fff;
}

.facturo-lines-table th,
.facturo-lines-table td {
  padding: 0.6rem 0.65rem;
  border-bottom: 1px solid rgba(6, 20, 26, 0.08);
  vertical-align: middle;
}

.facturo-lines-table thead th {
  background: rgba(6, 20, 26, 0.03);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(6, 20, 26, 0.65);
  font-weight: 800;
}

.facturo-lines-table tbody tr:last-child td {
  border-bottom: none;
}

.facturo-lines-table input,
.facturo-lines-table select {
  width: 100%;
  border-radius: 0.75rem;
  border: 1px solid rgba(6, 20, 26, 0.16);
  padding: 0.55rem 0.6rem;
  font-size: 0.95rem;
  font-family: inherit;
  background: #fff;
}

.facturo-lines-table .cell-total {
  font-weight: 900;
  text-align: right;
  color: #06141a;
  white-space: nowrap;
}

.facturo-lines-table .cell-actions {
  text-align: right;
  white-space: nowrap;
}

.facturo-lines-table .cell-actions .icon-btn {
  margin-left: 0.35rem;
}

.facturo-lines-table .col-advanced {
  display: none;
}

.facturo-mode-expert .facturo-lines-table .col-advanced {
  display: table-cell;
}

.facturo-lines-card {
  width: 100%;
  border: 1px solid rgba(6, 20, 26, 0.12);
  border-radius: 1.2rem;
  background: #fff;
  box-shadow: 0 12px 24px rgba(6, 20, 26, 0.08);
  margin-bottom: 1rem;
}

.facturo-lines-card__header {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid rgba(6, 20, 26, 0.08);
}

.facturo-lines-card__header h4 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 800;
  color: #0f172a;
}

.facturo-lines-card__title {
  display: inline-block;
  background: transparent;
  border: 0;
  padding: 0;
  margin: 0;
  font-size: 1.2rem;
  font-weight: 800;
  color: #0f172a;
  text-align: left;
  cursor: text;
}

.facturo-lines-card__title:hover {
  text-decoration: underline;
  text-decoration-color: rgba(13, 148, 136, 0.35);
}

.facturo-section-title-input {
  max-width: 100%;
  font-weight: 800;
  font-size: 1.2rem;
}

.facturo-lines-card__body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.facturo-lines-card__table {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.facturo-lines-empty {
  margin: 0;
  padding: 1rem 0.5rem;
  color: rgba(6, 20, 26, 0.65);
  font-weight: 650;
}

.facturo-line-row-simple {
  border: 1px solid rgba(6, 20, 26, 0.1);
  border-radius: 1rem;
  padding: 0.9rem;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.facturo-line-row-simple.is-option {
  background: #fff7ed;
  border-color: rgba(234, 88, 12, 0.35);
}

.facturo-line-row-simple__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.facturo-line-row-simple__left {
  flex: 1;
  min-width: 220px;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.facturo-line-row-simple__right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.facturo-line-row-simple__right .facturo-input {
  width: 90px;
}

.facturo-line-total {
  min-width: 90px;
  text-align: right;
  font-weight: 800;
  color: #0f172a;
}

.facturo-line-row-simple__bottom {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

@media (max-width: 900px) {
  .facturo-line-row-simple__bottom {
    grid-template-columns: 1fr;
  }
}

.facturo-line-option {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 700;
  color: rgba(6, 20, 26, 0.8);
}

.facturo-badge-option {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: #fbbf24;
  color: #92400e;
  font-weight: 800;
  font-size: 0.8rem;
}

.facturo-line-buttons {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.facturo-lines__footer {
  margin-top: 0.75rem;
}
.facturo-compact .facturo-lines-table th,
.facturo-compact .facturo-lines-table td {
  padding: 0.4rem 0.5rem;
}

.facturo-compact .facturo-lines-table input,
.facturo-compact .facturo-lines-table select {
  padding: 0.42rem 0.5rem;
  font-size: 0.9rem;
}

@media print {
  .facturo-quote-layout {
    zoom: 1 !important;
    transform: none !important;
    width: auto !important;
  }
}

.facturo-line-row {
  border-radius: 1rem;
  border: 1px solid rgba(6, 20, 26, 0.12);
  padding: 0.85rem;
  background: rgba(6, 20, 26, 0.02);
  display: grid;
  grid-template-columns: 1.4fr 0.5fr 0.7fr 0.55fr 0.55fr 0.8fr 40px;
  gap: 0.65rem;
  align-items: end;
}

.facturo-line-row label {
  display: block;
  font-size: 0.8rem;
  color: rgba(6, 20, 26, 0.65);
  margin-bottom: 0.35rem;
}

.facturo-line-row input {
  width: 100%;
  border-radius: 0.8rem;
  border: 1px solid rgba(6, 20, 26, 0.16);
  padding: 0.65rem 0.7rem;
  font-size: 0.95rem;
  font-family: inherit;
  background: white;
}

.facturo-line-row .facturo-line-total {
  font-weight: 800;
  color: #06141a;
  font-size: 1rem;
}

.facturo-line-main {
  display: grid;
  gap: 0.75rem;
}

.facturo-line-primary {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
}

.facturo-line-secondary {
  display: grid;
  grid-template-columns: repeat(4, minmax(110px, 1fr));
  gap: 0.65rem;
  align-items: end;
}

.facturo-line-advanced {
  display: none;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 0.65rem;
  align-items: end;
  padding-top: 0.2rem;
}

.facturo-line-row.is-expanded .facturo-line-advanced {
  display: grid;
}

.facturo-line-actions {
  display: grid;
  gap: 0.45rem;
  justify-items: end;
  align-content: start;
}

.facturo-line-actions__total {
  width: 100%;
  border-radius: 0.9rem;
  border: 1px solid rgba(8, 31, 48, 0.08);
  background: #fff;
  padding: 0.55rem 0.6rem;
}

.facturo-line-actions__total small {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.82rem;
  color: rgba(6, 20, 26, 0.55);
  font-weight: 700;
}

.facturo-line-actions__buttons {
  display: flex;
  gap: 0.45rem;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.facturo-catalog-list {
  display: grid;
  gap: 0.6rem;
  margin-top: 0.75rem;
}

.facturo-catalog-item {
  border-radius: 1rem;
  border: 1px solid rgba(8, 31, 48, 0.08);
  background: #fff;
  padding: 0.8rem 0.9rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.facturo-catalog-item__meta {
  min-width: 0;
}

.facturo-catalog-item__meta strong {
  display: block;
  font-weight: 800;
  color: #06141a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.facturo-catalog-item__meta span {
  display: block;
  margin-top: 0.2rem;
  color: rgba(6, 20, 26, 0.65);
  font-weight: 600;
  font-size: 0.9rem;
}

.facturo-public {
  min-height: 100vh;
  padding: 2.5rem 1.5rem;
  background: radial-gradient(circle at top, rgba(13, 58, 94, 0.08), transparent 55%);
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.facturo-public__card {
  width: min(980px, 100%);
  border-radius: 1.5rem;
  border: 1px solid rgba(8, 31, 48, 0.08);
  background: #fff;
  box-shadow: 0 25px 60px rgba(8, 32, 55, 0.08);
  padding: 1.6rem;
}

.facturo-public__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.facturo-public__eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.65rem;
  color: rgba(6, 20, 26, 0.55);
}

.facturo-public__title {
  margin: 0.35rem 0 0;
  font-family: 'Playfair Display', 'Times New Roman', serif;
  font-size: 2.2rem;
  font-weight: 500;
  color: #06141a;
}

.facturo-public__subtitle {
  margin: 0.4rem 0 0;
  color: rgba(6, 20, 26, 0.65);
}

@media (max-width: 980px) {
  .facturo-quote-layout {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .facturo-quote-tabs {
    display: flex;
  }

  .facturo-quote-preview[data-visible='false'],
  .facturo-quote-editor[data-visible='false'] {
    display: none;
  }

  .facturo-quote-preview {
    background: transparent;
    padding: 0;
    height: auto;
  }

  .facturo-quote-editor {
    height: auto;
    padding: 1.25rem;
    border-right: none;
  }

  .facturo-line-row {
    grid-template-columns: 1fr 1fr;
  }

  .facturo-line-row .facturo-line-total {
    grid-column: 1 / -1;
  }

  .facturo-line-secondary,
  .facturo-line-advanced {
    grid-template-columns: 1fr 1fr;
  }

  .facturo-line-actions {
    justify-items: stretch;
  }
}

@media (max-width: 640px) {
  .facturo-quote-guidance {
    position: static;
  }

  .facturo-quote-guidance__right {
    width: 100%;
    justify-content: stretch;
  }

  .facturo-quote-guidance__right .primary-btn,
  .facturo-quote-guidance__right .secondary-btn {
    flex: 1 1 140px;
  }

  .facturo-quote-guidance__checklist {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 420px) {
  .facturo-quote-guidance__checklist {
    grid-template-columns: 1fr;
  }
}

.overview-alert {
  width: 100%;
  margin-top: 1.15rem;
  border-radius: 1.15rem;
  border: 1px solid rgba(17, 60, 104, 0.18);
  background: rgba(17, 60, 104, 0.06);
  padding: 1rem 1.15rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-weight: 600;
  color: #0b2742;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.overview-alert:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(17, 60, 104, 0.12);
  background: rgba(17, 60, 104, 0.085);
}

.overview-alert::after {
  content: 'a';
  font-size: 1.6rem;
  line-height: 1;
  color: rgba(11, 39, 66, 0.6);
}

/* Override broken glyphs + add danger state for unread signalements. */
.overview-alert::after {
  content: none;
  display: none;
}

.overview-alert--danger {
  border-color: rgba(216, 68, 68, 0.32);
  background: rgba(216, 68, 68, 0.08);
  color: #5c1414;
}

.overview-alert--danger:hover {
  box-shadow: 0 18px 40px rgba(216, 68, 68, 0.14);
  background: rgba(216, 68, 68, 0.11);
}

.overview-alert--danger::after {
  color: rgba(216, 68, 68, 0.65);
}

.overview-alert--warning {
  border-color: rgba(245, 158, 11, 0.35);
  background: rgba(245, 158, 11, 0.12);
  color: rgba(146, 64, 14, 0.95);
}

.overview-alert--warning:hover {
  box-shadow: 0 18px 40px rgba(245, 158, 11, 0.18);
  background: rgba(245, 158, 11, 0.16);
}

.overview-alert--warning::after {
  color: rgba(245, 158, 11, 0.75);
}

.overview-alert--info {
  border-color: rgba(17, 60, 104, 0.32);
  background: rgba(17, 60, 104, 0.08);
  color: rgba(17, 60, 104, 0.92);
}

.overview-alert--info:hover {
  box-shadow: 0 18px 40px rgba(17, 60, 104, 0.14);
  background: rgba(17, 60, 104, 0.11);
}

.overview-card--danger {
  border-color: rgba(216, 68, 68, 0.24);
  box-shadow: 0 18px 40px rgba(216, 68, 68, 0.12);
}

.overview-card--danger .overview-card__label {
  color: rgba(92, 20, 20, 0.9);
}

.settings-pane {
  width: 100%;
  max-width: 720px;
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.settings-pane--full {
  max-width: none;
}

.settings-card {
  border-radius: 1.2rem;
  border: 1px solid rgba(6, 20, 26, 0.08);
  background: rgba(255, 255, 255, 0.95);
  padding: 1.35rem;
  box-shadow: 0 20px 35px rgba(6, 20, 26, 0.07);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.settings-card__header h3 {
  margin: 0;
  font-size: 1.15rem;
  color: #06141a;
}

.settings-card__header p {
  margin: 0.35rem 0 0;
  color: rgba(6, 20, 26, 0.6);
  font-size: 0.92rem;
}

.settings-form {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.settings-metric {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0.85rem;
  border-radius: 0.95rem;
  border: 1px solid rgba(6, 20, 26, 0.08);
  background: rgba(6, 20, 26, 0.02);
}

.settings-metric__label {
  color: rgba(6, 20, 26, 0.65);
  font-size: 0.92rem;
}

.settings-metric__value {
  color: rgba(6, 20, 26, 0.92);
  font-size: 1rem;
  font-weight: 600;
}

.leave-balance-grid {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 1.2rem;
  align-items: center;
}

.leave-balance-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.donut {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  --donut-color: rgba(216, 68, 68, 0.72);
  --donut-track: rgba(6, 20, 26, 0.08);
  background: conic-gradient(var(--donut-color) var(--pct), var(--donut-track) 0);
  display: grid;
  place-items: center;
  box-shadow: 0 18px 35px rgba(6, 20, 26, 0.12);
  transition: background 0.25s ease;
}

.donut__inner {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.98);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  text-align: center;
}

.donut__inner strong {
  font-size: 1.65rem;
  color: rgba(6, 20, 26, 0.92);
}

.donut__inner span {
  font-size: 0.9rem;
  color: rgba(6, 20, 26, 0.6);
}

.donut__inner small {
  font-size: 0.82rem;
  color: rgba(6, 20, 26, 0.55);
}

.leave-requests {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.leave-balance-table {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.leave-balance-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) repeat(4, minmax(90px, 120px));
  gap: 0.9rem;
  align-items: center;
  padding: 0.95rem 1rem;
  border-radius: 1.05rem;
  border: 1px solid rgba(6, 20, 26, 0.08);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 16px 28px rgba(6, 20, 26, 0.06);
}

.leave-balance-row__name {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.leave-balance-row__name strong {
  font-weight: 700;
  color: rgba(6, 20, 26, 0.92);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.leave-balance-row__name span {
  font-size: 0.85rem;
  color: rgba(6, 20, 26, 0.6);
}

.leave-balance-cell {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  text-align: right;
}

.leave-balance-cell__label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(6, 20, 26, 0.45);
}

.leave-balance-cell__value {
  font-weight: 700;
  color: rgba(6, 20, 26, 0.9);
}

.leave-balance-row__bar {
  grid-column: 1 / -1;
  height: 10px;
  border-radius: 999px;
  background: rgba(6, 20, 26, 0.08);
  overflow: hidden;
}

.leave-balance-row__bar > span {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(216, 68, 68, 0.55), rgba(216, 68, 68, 0.85));
  transition: width 0.25s ease;
}

.leave-request-card {
  border-radius: 1.1rem;
  border: 1px solid rgba(6, 20, 26, 0.08);
  background: rgba(255, 255, 255, 0.85);
  padding: 1rem 1.05rem;
  box-shadow: 0 16px 30px rgba(6, 20, 26, 0.08);
  display: grid;
  gap: 0.55rem;
}

.leave-request-card__header {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: baseline;
  flex-wrap: wrap;
}

.leave-request-card__title {
  margin: 0;
  font-weight: 700;
  color: rgba(6, 20, 26, 0.92);
}

.leave-status {
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(6, 20, 26, 0.08);
  color: rgba(6, 20, 26, 0.75);
}

.leave-status--pending {
  background: rgba(245, 158, 11, 0.18);
  color: rgba(146, 64, 14, 0.95);
}

.leave-status--approved {
  background: rgba(25, 135, 84, 0.16);
  color: rgba(10, 88, 56, 0.95);
}

.leave-status--refused {
  background: rgba(220, 38, 38, 0.14);
  color: rgba(153, 27, 27, 0.95);
}

@media (max-width: 720px) {
  .leave-balance-grid {
    grid-template-columns: 1fr;
    justify-items: center;
  }
  .leave-balance-stats {
    grid-template-columns: 1fr;
  }
  .leave-balance-row {
    grid-template-columns: 1fr 1fr;
  }
  .leave-balance-cell {
    text-align: left;
  }
}

.password-strength {
  border-radius: 1rem;
  border: 1px solid rgba(6, 20, 26, 0.08);
  background: rgba(6, 20, 26, 0.02);
  padding: 0.9rem;
}

.password-strength__bar {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: rgba(6, 20, 26, 0.08);
  overflow: hidden;
}

.password-strength__fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(220, 38, 38, 0.9), rgba(245, 158, 11, 0.9), rgba(25, 135, 84, 0.9));
  transition: width 0.2s ease;
}

.password-strength__rules {
  margin-top: 0.75rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem 0.75rem;
  font-size: 0.88rem;
  color: rgba(6, 20, 26, 0.62);
}

.password-strength__rules span {
  position: relative;
  padding-left: 1.2rem;
}

.password-strength__rules span::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.35rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: rgba(6, 20, 26, 0.28);
}

.password-strength__rules span.is-ok {
  color: rgba(25, 135, 84, 0.95);
}

.password-strength__rules span.is-ok::before {
  background: rgba(25, 135, 84, 0.95);
}

@media (max-width: 560px) {
  .password-strength__rules {
    grid-template-columns: 1fr;
  }
}

.overview-action-btn {
  flex: 1;
  min-width: 200px;
  border: none;
  border-radius: 999px;
  padding: 0.85rem 1.75rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: white;
  background: linear-gradient(120deg, #0d2f50, #1a4f7a);
  box-shadow: 0 15px 35px rgba(13, 47, 80, 0.25);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.overview-action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(13, 47, 80, 0.3);
}

.clients-toolbar {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.reports-toolbar {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.reports-search {
  flex: 1;
}

.reports-search input {
  width: 100%;
  border-radius: 999px;
  border: 1px solid rgba(12, 28, 44, 0.15);
  padding: 0.85rem 1.5rem;
  font-size: 1rem;
  background: #fff;
}

.reports-list {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 1.75rem;
}

.report-card {
  position: relative;
  border-radius: 1.5rem;
  padding: 2rem;
  background: linear-gradient(135deg, #ffffff, #f4f7fb);
  box-shadow: 0 30px 70px rgba(10, 32, 54, 0.1);
  border: 1px solid rgba(10, 33, 52, 0.08);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.report-card::after {
  content: '';
  position: absolute;
  inset: 18px;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.5);
  pointer-events: none;
}

.report-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 45px 90px rgba(6, 25, 41, 0.18);
}

.report-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.report-card__eyebrow {
  margin: 0;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(6, 20, 26, 0.5);
}

.report-card__title {
  margin: 0.1rem 0 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: #041016;
}

.report-card__date {
  font-size: 0.85rem;
  color: rgba(6, 20, 26, 0.55);
}

.report-card__summary {
  margin: 0;
  color: rgba(6, 20, 26, 0.7);
  line-height: 1.55;
  min-height: 3.6rem;
}

.report-card__footer {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  color: rgba(6, 20, 26, 0.55);
}

.report-card__action {
  border: none;
  background: rgba(13, 47, 80, 0.07);
  color: #0d2f50;
  padding: 0.45rem 1.2rem;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.report-card__action:hover {
  background: rgba(13, 47, 80, 0.18);
  color: #072036;
}

.reports-empty {
  width: 100%;
  text-align: center;
  color: rgba(6, 20, 26, 0.45);
  font-style: italic;
}

.clients-search {
  flex: 1;
}

.clients-search input {
  width: 100%;
  border-radius: 999px;
  border: 1px solid rgba(12, 28, 44, 0.15);
  padding: 0.85rem 1.5rem;
  font-size: 1rem;
  background: #fff;
}

.clients-list {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.clients-card {
  border-radius: 1.1rem;
  border: 1px solid rgba(12, 28, 44, 0.08);
  background: #fff;
  padding: 1.25rem 1.35rem;
  box-shadow: 0 20px 45px rgba(12, 28, 44, 0.08);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.clients-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 60px rgba(12, 28, 44, 0.16);
}

.clients-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
}

.clients-card__title {
  margin: 0;
  font-weight: 600;
  color: #06141a;
  font-size: 1.05rem;
}

.clients-card__badge {
  padding: 0.25rem 0.8rem;
  border-radius: 999px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #0c2437;
  background: rgba(12, 36, 55, 0.08);
}

.clients-card__reference {
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  color: rgba(6, 20, 26, 0.55);
  text-transform: uppercase;
  margin: 0;
}

.clients-card__meta {
  margin: 0;
  font-size: 0.93rem;
  color: rgba(6, 20, 26, 0.78);
}

.clients-card__meta + .clients-card__meta {
  margin-top: 0.2rem;
}

.clients-card__actions {
  margin-top: auto;
  padding-top: 0.85rem;
  display: flex;
  gap: 0.4rem;
  justify-content: flex-end;
}

.clients-card__action--view {
  font-size: 1rem;
}

.clients-card__action {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(12, 28, 44, 0.15);
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.clients-card__action {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(12, 28, 44, 0.15);
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.clients-card__action svg,
.clients-card__action span {
  font-size: 0.9rem;
}

.clients-card__action--danger {
  border-color: rgba(181, 49, 49, 0.2);
  color: #b53131;
}

.collaborators-toolbar {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.collaborators-search {
  flex: 1;
}

.collaborators-search input {
  width: 100%;
  border-radius: 999px;
  border: 1px solid rgba(12, 28, 44, 0.15);
  padding: 0.85rem 1.5rem;
  font-size: 1rem;
  background: #fff;
}

.collaborators-list {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.collaborator-card {
  border-radius: 1.1rem;
  border: 1px solid rgba(12, 28, 44, 0.08);
  background: #fff;
  padding: 1.75rem 1.35rem 1.25rem;
  box-shadow: 0 20px 45px rgba(12, 28, 44, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  cursor: pointer;
}

.collaborator-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 60px rgba(12, 28, 44, 0.16);
}

.collaborator-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.collaborator-card__name {
  margin: 0;
  font-weight: 600;
  color: #06141a;
  font-size: 1.05rem;
}

.collaborator-card__reference {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  color: rgba(6, 20, 26, 0.55);
  text-transform: uppercase;
}

.collaborator-card__meta {
  margin: 0;
  font-size: 0.93rem;
  color: rgba(6, 20, 26, 0.7);
}

.collaborators-empty {
  margin-top: 1rem;
  color: rgba(6, 20, 26, 0.55);
}

.collaborator-card__actions {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  display: flex;
  gap: 0.35rem;
}

.collaborator-card__action-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(6, 20, 26, 0.12);
  background: #fff;
  color: #06141a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.collaborator-card__action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(6, 20, 26, 0.15);
  color: #0b5fff;
}

.drawer--collab-detail {
  width: min(520px, 100%);
  left: auto;
}

.collab-detail-reference {
  margin-top: 0.4rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(6, 20, 26, 0.15);
  font-size: 0.85rem;
  text-transform: uppercase;
}

.collab-detail-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 0.75rem;
  padding: 0 2rem 0.5rem;
}

.collab-detail-meta article {
  background: #f6f8fb;
  border-radius: 0.9rem;
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.collab-detail-meta span {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(6, 20, 26, 0.55);
}

.collab-detail-meta strong {
  font-size: 0.95rem;
  color: #06141a;
  display: block;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.collab-detail-nav {
  display: flex;
  gap: 0.5rem;
  padding: 0 2rem 0.3rem;
  border-bottom: 1px solid rgba(6, 20, 26, 0.08);
}

.collab-detail-nav button {
  flex: 1;
  padding: 0.65rem 1.1rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  font-weight: 600;
  color: rgba(6, 20, 26, 0.6);
  transition: all 0.2s ease;
}

.collab-detail-nav button.is-active {
  border-color: rgba(6, 20, 26, 0.15);
  background: rgba(6, 20, 26, 0.05);
  color: #06141a;
}

.collab-detail-panel {
  padding: 1.35rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.collab-detail-panel.is-hidden {
  display: none;
}

.collab-detail-panel__header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}

.collab-detail-panel__header h4 {
  margin: 0;
  font-size: 1.05rem;
  color: #06141a;
}

.collab-detail-panel__header p {
  margin: 0.2rem 0 0;
  color: rgba(6, 20, 26, 0.65);
}

.collab-assignments-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.collab-assignment-card {
  border-radius: 1rem;
  border: 1px solid rgba(6, 20, 26, 0.1);
  padding: 1rem 1.1rem;
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
}

.collab-assignment-card h5 {
  margin: 0;
  font-size: 1rem;
}

.collab-assignment-card small {
  color: rgba(6, 20, 26, 0.55);
}

.collab-doc-upload {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
}

.collab-doc-upload__label {
  border: 1px dashed rgba(6, 20, 26, 0.25);
  border-radius: 999px;
  padding: 0.55rem 1.1rem;
  font-size: 0.9rem;
  color: rgba(6, 20, 26, 0.65);
  cursor: pointer;
}

.collab-docs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.collab-doc-card {
  border-radius: 1rem;
  border: 1px solid rgba(6, 20, 26, 0.08);
  background: #fff;
  padding: 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  box-shadow: 0 20px 35px rgba(6, 20, 26, 0.08);
}

.collab-doc-card h5 {
  margin: 0;
  font-size: 1rem;
}

.collab-doc-card small {
  color: rgba(6, 20, 26, 0.55);
}

.collab-doc-card__actions {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.collab-doc-card__actions button {
  flex: 1;
  min-width: 90px;
  border-radius: 999px;
  border: 1px solid rgba(6, 20, 26, 0.15);
  background: transparent;
  padding: 0.35rem 0.7rem;
  font-size: 0.85rem;
  transition: background 0.2s ease, color 0.2s ease;
}

.collab-doc-card__actions button:hover {
  background: rgba(11, 95, 255, 0.1);
  color: #0b5fff;
}

.collab-docs-empty,
.collab-assignments-empty {
  color: rgba(6, 20, 26, 0.55);
  font-size: 0.9rem;
}

.collab-timesheets {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.collab-timesheet-row {
  border: 1px solid rgba(6, 20, 26, 0.08);
  border-radius: 0.9rem;
  padding: 0.85rem 1rem;
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  background: #fff;
  box-shadow: 0 10px 25px rgba(6, 20, 26, 0.08);
}

.collab-timesheet-row h5 {
  margin: 0;
  font-size: 0.95rem;
}

.collab-timesheet-row small {
  display: block;
  color: rgba(6, 20, 26, 0.55);
}

.collab-timesheet-status {
  align-self: center;
  padding: 0.2rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(6, 20, 26, 0.15);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(6, 20, 26, 0.7);
}

.collab-timesheets-empty {
  color: rgba(6, 20, 26, 0.55);
  font-size: 0.9rem;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 20, 26, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 100;
}

.modal-overlay.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.client-modal {
  position: fixed;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%) scale(0.95);
  width: min(420px, calc(100% - 2rem));
  background: #fff;
  border-radius: 1rem;
  padding: 1.75rem;
  box-shadow: 0 40px 80px rgba(6, 20, 26, 0.25);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 110;
}

.client-modal.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

.client-modal h4 {
  margin: 0 0 0.5rem;
}

.client-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.client-modal__primary,
.client-modal__secondary {
  border-radius: 999px;
  padding: 0.65rem 1.4rem;
  border: none;
  font-weight: 600;
  cursor: pointer;
}

.client-modal__secondary {
  background: rgba(12, 28, 44, 0.08);
  color: #0c1c2c;
}

.client-modal__primary {
  background: #b53131;
  color: #fff;
}

.client-modal-open .company-space-layout,
.contract-modal-open .company-space-layout {
  filter: blur(4px);
}

.client-success {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  background: linear-gradient(135deg, #0f5221, #1b7a38);
  color: #fff;
  padding: 1rem 1.75rem;
  border-radius: 1rem;
  box-shadow: 0 35px 80px rgba(12, 28, 44, 0.35);
  font-weight: 600;
  font-size: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 130;
}

.client-success.is-visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.clients-empty {
  margin-top: 1rem;
  color: rgba(6, 20, 26, 0.55);
}

.contracts-toolbar {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.contracts-search {
  flex: 1;
}

.contracts-search input {
  width: 100%;
  border-radius: 999px;
  border: 1px solid rgba(12, 28, 44, 0.15);
  padding: 0.85rem 1.5rem;
  font-size: 1rem;
  background: #fff;
}

.contracts-toolbar select {
  border-radius: 999px;
  border: 1px solid rgba(12, 28, 44, 0.15);
  padding: 0.85rem 2.6rem 0.85rem 1.2rem;
  font-size: 1rem;
  background: #fff;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #1b4f6a 50%),
    linear-gradient(135deg, #1b4f6a 50%, transparent 50%),
    linear-gradient(to right, transparent, transparent);
  background-position: calc(100% - 18px) 50%, calc(100% - 12px) 50%, 100% 0;
  background-size: 6px 6px, 6px 6px, 2.5rem 100%;
  background-repeat: no-repeat;
}

.contracts-list {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.contracts-list.contracts-list--table {
  display: block;
  grid-template-columns: none;
  gap: 0;
}

.contracts-card {
  border-radius: 1.1rem;
  border: 1px solid rgba(12, 28, 44, 0.08);
  background: #fff;
  padding: 1.25rem 1.35rem;
  box-shadow: 0 20px 45px rgba(12, 28, 44, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.contracts-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 60px rgba(12, 28, 44, 0.16);
}

.contracts-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
  overflow: hidden;
  min-width: 0;
}

.contracts-card__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  flex-shrink: 1;
  max-width: 45%;
  justify-content: flex-end;
  align-items: flex-start;
}

.contracts-card__title {
  margin: 0;
  font-weight: 600;
  color: #06141a;
  font-size: 1.05rem;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contracts-card__badge {
  padding: 0.25rem 0.8rem;
  border-radius: 999px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #0c2437;
  background: rgba(12, 36, 55, 0.08);
}

.contracts-card__badge--warning {
  background: rgba(245, 158, 11, 0.16);
  color: rgba(146, 64, 14, 0.95);
}

.contracts-card__badge--danger {
  background: rgba(220, 38, 38, 0.14);
  color: rgba(153, 27, 27, 0.95);
}

.contracts-card__badge--info {
  background: rgba(17, 60, 104, 0.12);
  color: rgba(17, 60, 104, 0.95);
}

.contracts-card__reference {
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  color: rgba(6, 20, 26, 0.55);
  text-transform: uppercase;
  margin: 0;
}

.contracts-card__meta {
  margin: 0;
  font-size: 0.93rem;
  color: rgba(6, 20, 26, 0.78);
}

.contracts-card__meta + .contracts-card__meta {
  margin-top: 0.2rem;
}

.contracts-card__actions {
  margin-top: auto;
  padding-top: 0.85rem;
  display: flex;
  gap: 0.4rem;
  justify-content: flex-end;
  align-items: center;
}

.contracts-card__renew {
  border: 1px solid rgba(12, 28, 44, 0.15);
  background: rgba(12, 28, 44, 0.03);
  border-radius: 999px;
  padding: 0.5rem 0.9rem;
  font-weight: 700;
  font-size: 0.8rem;
  color: #0c1f2e;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.2s ease;
}

.contracts-card__renew:hover {
  transform: translateY(-1px);
  background: rgba(12, 28, 44, 0.06);
  box-shadow: 0 12px 24px rgba(12, 28, 44, 0.1);
}

.contracts-card__renew:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.contracts-card__action {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(12, 28, 44, 0.15);
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.contracts-card__action svg,
.contracts-card__action span {
  font-size: 0.9rem;
}

.contracts-card__icon {
  width: 1.1rem;
  height: 1.1rem;
  display: inline-block;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
}

.contracts-card__icon--edit {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%2306141a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='M12 20h9'/%3E%3Cpath d='M16.5 3.5l4 4L7 21H3v-4z'/%3E%3C/svg%3E");
}

.contracts-card__icon--delete {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%23b53131' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='M3 6h18'/%3E%3Cpath d='M8 6V4h8v2'/%3E%3Cpath d='M10 11v6M14 11v6'/%3E%3Cpath d='M5 6l1 14h12l1-14'/%3E%3C/svg%3E");
}

.contracts-card__icon--view {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%2306141a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='M2 12s3.5-7 10-7 10 7 10 7-3.5 7-10 7S2 12 2 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E");
}

.contracts-card__action--danger {
  border-color: rgba(181, 49, 49, 0.2);
  color: #b53131;
}

@media (max-width: 720px) {
  .clients-list,
  .contracts-list {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .clients-card,
  .contracts-card {
    padding: 0.95rem 1.05rem;
    gap: 0.35rem;
    box-shadow: 0 12px 30px rgba(12, 28, 44, 0.08);
  }

  .clients-card__header,
  .contracts-card__header {
    align-items: center;
  }

  .clients-card__title,
  .contracts-card__title {
    font-size: 1rem;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .clients-card__badge,
  .contracts-card__badge {
    font-size: 0.7rem;
    padding: 0.22rem 0.65rem;
  }

  .clients-card:not(.is-expanded) .clients-card__reference,
  .clients-card:not(.is-expanded) .clients-card__meta,
  .clients-card:not(.is-expanded) .clients-card__badge,
  .clients-card:not(.is-expanded) .clients-card__actions,
  .contracts-card:not(.is-expanded) .contracts-card__reference,
  .contracts-card:not(.is-expanded) .contracts-card__meta,
  .contracts-card:not(.is-expanded) .contracts-card__badge,
  .contracts-card:not(.is-expanded) .contracts-card__actions {
    display: none;
  }

  .clients-card {
    cursor: pointer;
  }
}

.contracts-empty {
  margin-top: 1rem;
  color: rgba(6, 20, 26, 0.55);
}

.drawer--client {
  max-width: 620px;
}

.client-reference-chip {
  padding: 0.35rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(12, 28, 44, 0.15);
  color: #06141a;
  display: inline-flex;
  align-items: baseline;
  gap: 0.6rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.client-stepper {
  margin: 1.2rem auto 0;
  width: 100%;
  max-width: 460px;
}

.client-stepper.is-hidden {
  display: none;
}

.client-stepper__track {
  position: relative;
  height: 6px;
  border-radius: 999px;
  background: rgba(12, 28, 44, 0.15);
  overflow: hidden;
  max-width: 460px;
  margin: 0 auto;
}

.client-stepper__progress {
  position: absolute;
  inset: 0;
  width: 0%;
  background: linear-gradient(90deg, #0d2f50, #1a4f7a);
  transition: width 0.35s ease;
}

.client-stepper__stages {
  display: flex;
  justify-content: space-between;
  margin-top: 0.65rem;
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
}

.client-stepper__stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(6, 20, 26, 0.5);
}

.client-stepper__stage::before {
  content: '';
  position: absolute;
  top: -28px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid rgba(6, 20, 26, 0.3);
  box-shadow: 0 10px 20px rgba(6, 20, 26, 0.15);
  transition: border-color 0.35s ease, background 0.35s ease, transform 0.35s ease, box-shadow 0.35s ease;
}

.client-stepper__stage::after {
  content: 'o"';
  position: absolute;
  top: -24px;
  left: 50%;
  transform: translateX(-50%) scale(0.6);
  font-size: 0.85rem;
  color: #fff;
  font-weight: 600;
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.client-stepper__stage.is-active::before {
  border-color: #1a4f7a;
  background: radial-gradient(circle at 30% 30%, #3a6ba0, #0d2f50);
  transform: translateX(-50%) scale(1.12);
  box-shadow: 0 12px 25px rgba(26, 79, 122, 0.35);
}

.client-stepper__stage.is-completed::before {
  border-color: #0b253f;
  background: radial-gradient(circle at 40% 30%, #1f5f90, #0a2137);
  box-shadow: 0 0 0 6px rgba(13, 47, 80, 0.15);
}

.client-stepper__stage.is-completed::after {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

.client-stepper__stage.is-active,
.client-stepper__stage.is-completed {
  color: #0b253f;
  font-weight: 600;
}

.client-type-selector {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.client-type-card {
  border-radius: 1rem;
  border: 1px solid rgba(12, 28, 44, 0.15);
  padding: 1.5rem;
  background: #fff;
  text-align: left;
  cursor: pointer;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.client-type-card h4 {
  margin: 0 0 0.4rem;
}

.client-type-card p {
  margin: 0;
  color: rgba(6, 20, 26, 0.65);
}

.client-type-card.is-selected {
  border-color: #1a4f7a;
  box-shadow: 0 20px 40px rgba(26, 79, 122, 0.15);
}

.client-form__section {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.client-form__section h4 {
  margin: 0;
}

.client-form .form-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.client-form .form-field input,
.client-form .form-field select {
  border-radius: 0.6rem;
  border: 1px solid rgba(12, 28, 44, 0.2);
  padding: 0.8rem;
  font-size: 1rem;
}

.client-form .form-field--address {
  position: relative;
}

.client-form .address-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  list-style: none;
  margin: 0.35rem 0 0;
  padding: 0;
  border-radius: 0.6rem;
  border: 1px solid rgba(12, 28, 44, 0.15);
  max-height: 220px;
  overflow-y: auto;
  display: none;
  z-index: 3;
}

.client-form .address-suggestions.is-visible {
  display: block;
}

.client-form .address-suggestions li {
  padding: 0.65rem 0.8rem;
  cursor: pointer;
}

.client-form .address-suggestions li:hover {
  background: rgba(12, 28, 44, 0.05);
}

.dashboard-card {
  width: min(1000px, 100%);
  border-radius: 2rem;
  padding: 3rem;
  background: var(--panel-bg);
  box-shadow: 0 45px 90px rgba(6, 20, 26, 0.18);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.dashboard-card__hero {
  color: white;
  padding: 2.5rem;
  border-radius: 1.5rem;
  position: relative;
  overflow: hidden;
}

.dashboard-sidebar__nav {
  margin-top: 2rem;
}

.dashboard-sidebar__title {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 0.6rem;
}

.dashboard-sidebar__nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.dashboard-sidebar__nav li {
  padding: 0.35rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  font-weight: 600;
}

.dashboard-card__hero::after {
  content: '';
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  opacity: 0.5;
  right: -60px;
  bottom: -60px;
}

.dashboard-card__eyebrow {
  letter-spacing: 0.35em;
  text-transform: uppercase;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

.dashboard-card h1 {
  margin: 0.8rem 0;
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 3vw, 2.8rem);
}

.dashboard-card__content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.dashboard-card__section {
  background: rgba(6, 20, 26, 0.04);
  border-radius: 1rem;
  padding: 1.5rem;
}

.dashboard-card__section h2 {
  margin-top: 0;
  font-size: 1.2rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dashboard-card__section ul {
  padding-left: 1.1rem;
  margin: 0.5rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.dashboard-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.dashboard-card--admin .dashboard-card__hero {
  background: var(--hero-gradient);
}

.dashboard-card--company .dashboard-card__hero {
  background: var(--hero-gradient-alt);
}

.dashboard-card--employee .dashboard-card__hero {
  background: var(--hero-gradient-soft);
}

.page--admin-blank {
  min-height: 100vh;
  margin: 0;
  background: #f5f7fb;
  display: flex;
}

.page--employee-blank {
  min-height: 100vh;
  margin: 0;
  background: white;
  display: flex;
}

.admin-blank-layout {
  width: 100%;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 280px 1fr;
  background: white;
}

.admin-space-layout {
  width: 100%;
}

.admin-company-overlay {
  z-index: 35;
}

.admin-company-modal {
  position: fixed;
  top: 0;
  left: var(--app-sidebar-width, 0px);
  right: 0;
  bottom: 0;
  width: auto;
  max-height: none;
  overflow: auto;
  background: #ffffff;
  border-radius: 0;
  border: none;
  box-shadow: 0 -25px 60px rgba(7, 20, 35, 0.18);
  transform: translateY(110%);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, transform 0.35s ease;
  z-index: 40;
  padding: 1.75rem;
}

.admin-company-modal.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.admin-company-modal__header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid rgba(9, 20, 35, 0.08);
  padding-bottom: 1rem;
}

.admin-company-modal__header h3 {
  margin: 0.25rem 0 0;
  font-size: 1.4rem;
}

.admin-company-modal__header span {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(15, 27, 40, 0.55);
}

.admin-company-modal__eyebrow {
  margin: 0;
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(15, 27, 40, 0.5);
}

.admin-company-modal__close {
  border: none;
  background: rgba(15, 27, 40, 0.08);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
}

.admin-company-modal__content {
  padding-top: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.admin-company-modal__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.5rem;
}

.admin-company-modal__grid-item--full {
  grid-column: 1 / -1;
}

.admin-company-modal__grid dt {
  margin: 0;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(15, 27, 40, 0.5);
}

.admin-company-modal__grid dd {
  margin: 0.3rem 0 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: #0f1b28;
}

.admin-company-modal__meta p {
  margin: 0.4rem 0 0;
  color: rgba(15, 27, 40, 0.7);
}

.admin-invoices-toolbar select {
  min-width: 180px;
  border-radius: 999px;
  border: 1px solid rgba(12, 28, 44, 0.15);
  padding: 0.85rem 1.25rem;
  background: #fff;
}

.admin-invoices-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.2rem;
  width: 100%;
}

.admin-invoice-settings {
  border: 1px solid rgba(12, 28, 44, 0.1);
  border-radius: 1.3rem;
  padding: 1.5rem;
  background: #fff;
  box-shadow: 0 25px 60px rgba(6, 20, 26, 0.06);
}

.admin-invoice-settings__header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1.25rem;
}

.admin-invoice-settings__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.admin-invoice-settings .form-field--upload {
  grid-column: span 2;
}

.admin-send-overlay {
  z-index: 35;
}

.admin-send-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  width: min(520px, 92vw);
  max-height: 90vh;
  overflow: auto;
  background: #ffffff;
  border-radius: 1.4rem;
  border: 1px solid rgba(9, 20, 35, 0.12);
  box-shadow: 0 35px 80px rgba(7, 20, 35, 0.18);
  transform: translate(-50%, -50%) scale(0.98);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 40;
  padding: 1.6rem;
}

.admin-send-modal.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.admin-invoice-card {
  border-radius: 1.1rem;
  border: 1px solid rgba(6, 20, 26, 0.12);
  background: #fff;
  padding: 1.2rem;
  box-shadow: 0 25px 60px rgba(6, 20, 26, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.admin-invoice-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 70px rgba(6, 20, 26, 0.12);
}

.admin-invoice-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
}

.admin-invoice-card__status {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.2rem 0.75rem;
  border-radius: 999px;
  background: rgba(15, 27, 40, 0.08);
  color: #0f1b28;
}

.admin-invoice-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  width: min(840px, 92vw);
  max-height: 90vh;
  overflow: auto;
  background: #ffffff;
  border-radius: 1.5rem;
  border: 1px solid rgba(9, 20, 35, 0.12);
  box-shadow: 0 40px 90px rgba(7, 20, 35, 0.18);
  transform: translate(-50%, -50%) scale(0.98);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 40;
  padding: 2rem;
  --admin-invoice-accent: #113c68;
}

.admin-invoice-modal.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.admin-invoice-modal__header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid rgba(9, 20, 35, 0.08);
  padding-bottom: 1.25rem;
}

.admin-invoice-modal__content {
  padding-top: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.admin-invoice-modal__header h3 {
  margin: 0.25rem 0 0;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}

.admin-invoice-modal__header span {
  display: inline-flex;
  margin-top: 0.35rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  border: 1px solid #d9dfe8;
  background: #f1f3f6;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  text-transform: uppercase;
}

.admin-invoice-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.admin-invoice-payment {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.admin-invoice-modal .form-field span {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(15, 27, 40, 0.55);
}

.admin-invoice-modal .form-field input,
.admin-invoice-modal .form-field select,
.admin-invoice-modal .form-field textarea {
  border-radius: 0.9rem;
  border: 1px solid rgba(12, 28, 44, 0.15);
  padding: 0.75rem 0.9rem;
  font-size: 0.95rem;
  background: #fff;
}

.admin-invoice-lines__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.admin-invoice-lines__tools {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.admin-invoice-line-head {
  display: grid;
  grid-template-columns: 1.6fr 0.55fr 0.85fr 0.9fr 0.9fr auto;
  align-items: center;
  margin-top: 0.75rem;
  border-radius: 0.9rem;
  overflow: hidden;
  background: var(--admin-invoice-accent);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.admin-invoice-line-head span {
  padding: 0.7rem 0.75rem;
  border-right: 1px solid rgba(255, 255, 255, 0.35);
}

.admin-invoice-line-head span:last-child {
  border-right: none;
}

.admin-invoice-lines__list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.admin-invoice-line {
  display: grid;
  grid-template-columns: 1.6fr 0.55fr 0.85fr 0.9fr 0.9fr auto;
  gap: 0.75rem;
  align-items: center;
  background: rgba(15, 27, 40, 0.03);
  border: 1px solid rgba(12, 28, 44, 0.08);
  border-radius: 0.9rem;
  padding: 0.6rem;
}

.admin-invoice-line input {
  border-radius: 0.8rem;
  border: 1px solid rgba(12, 28, 44, 0.15);
  padding: 0.6rem 0.8rem;
  background: #fff;
}

.admin-invoice-line__total {
  font-weight: 800;
  color: rgba(6, 20, 26, 0.82);
  text-align: right;
  padding-right: 0.35rem;
  font-size: 0.92rem;
}

.admin-invoice-attachments {
  border: 1px solid rgba(12, 28, 44, 0.08);
  border-radius: 1rem;
  padding: 1rem;
  background: rgba(15, 27, 40, 0.02);
  display: grid;
  gap: 0.75rem;
}

.admin-invoice-attachments__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.admin-invoice-attachments__header h4 {
  margin: 0;
  font-size: 1rem;
}

.admin-invoice-attachments__upload input[type='file'] {
  display: none;
}

.admin-invoice-preview {
  border: 1px solid rgba(12, 28, 44, 0.08);
  border-radius: 1.25rem;
  background: rgba(248, 250, 252, 0.82);
  padding: 1.1rem;
  display: grid;
  gap: 0.85rem;
}

.admin-invoice-preview__header h4 {
  margin: 0;
  font-size: 1.05rem;
}

.admin-invoice-preview__header p {
  margin: 0.25rem 0 0;
  color: rgba(6, 20, 26, 0.62);
  font-weight: 600;
  font-size: 0.92rem;
}

.invoice-paper {
  --invoice-accent: var(--admin-invoice-accent, #113c68);
}

.invoice-table {
  border: 1px solid rgba(6, 20, 26, 0.08);
  border-radius: 1rem;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.92);
}

.invoice-table__head {
  display: grid;
  grid-template-columns: 1.6fr 0.55fr 0.85fr 0.9fr 0.9fr;
  background: var(--invoice-accent);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.invoice-table--quote .invoice-table__head {
  grid-template-columns: 1.65fr 0.65fr 0.55fr 0.8fr 0.95fr 0.55fr;
  background: var(--quote-table-head-bg, rgba(15, 23, 42, 0.06));
  color: var(--quote-table-head-fg, rgba(6, 20, 26, 0.75));
}

.invoice-table--quote .invoice-table__head span {
  border-right: 1px solid var(--quote-table-head-divider, rgba(6, 20, 26, 0.08));
  padding: 0.6rem 0.75rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.invoice-table--quote .invoice-table__head span:last-child {
  border-right: none;
}

.invoice-table__head span {
  padding: 0.65rem 0.75rem;
  border-right: 1px solid rgba(255, 255, 255, 0.32);
}

.invoice-table__head span:last-child {
  border-right: none;
}

.invoice-table__rows {
  display: grid;
}

.invoice-table__row {
  display: grid;
  grid-template-columns: 1.6fr 0.55fr 0.85fr 0.9fr 0.9fr;
  border-top: 1px solid rgba(6, 20, 26, 0.08);
}

.invoice-table--quote .invoice-table__row {
  grid-template-columns: 1.65fr 0.65fr 0.55fr 0.8fr 0.95fr 0.55fr;
}

.invoice-table__row--section {
  background: rgba(15, 23, 42, 0.06);
}

.invoice-table__row--section span {
  font-weight: 800;
  color: rgba(6, 20, 26, 0.88);
}

.invoice-table--quote .invoice-table__row span:nth-child(2) {
  text-align: left;
  font-weight: 650;
  color: rgba(6, 20, 26, 0.62);
}

.invoice-table--quote .invoice-table__row span:nth-child(6) {
  text-align: right;
}

.invoice-table__row--quote-line span {
  padding-top: 0.55rem;
  padding-bottom: 0.55rem;
}

.invoice-table__row--quote-line span:first-child {
  text-align: left;
  font-weight: 650;
}

.quote-line__label {
  font-weight: 800;
  color: rgba(6, 20, 26, 0.92);
}

.quote-line__desc {
  margin-top: 0.25rem;
  color: rgba(6, 20, 26, 0.6);
  font-weight: 600;
  font-size: 0.82rem;
  line-height: 1.35;
  white-space: pre-line;
}

.quote-line__discount {
  margin-top: 0.25rem;
  color: rgba(16, 185, 129, 0.92);
  font-weight: 800;
  font-size: 0.82rem;
}

.quote-line__site,
.quote-line__sku {
  display: block;
  margin-top: 0.25rem;
  color: rgba(6, 20, 26, 0.52);
  font-weight: 650;
  font-size: 0.78rem;
}

.quote-line__total-cell {
  display: grid;
  justify-items: end;
  gap: 0.25rem;
}

.quote-line__net {
  color: rgba(16, 185, 129, 0.92);
  font-weight: 900;
  font-size: 0.86rem;
}

.invoice-table__row.is-option {
  opacity: 0.65;
}

.quote-line__option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.2rem;
  font-style: italic;
  color: rgba(6, 20, 26, 0.55);
  font-weight: 700;
}

.quote-line__option-badge {
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: rgba(245, 158, 11, 0.95);
}

.quote-logo-placeholder {
  width: 140px;
  height: 54px;
  border-radius: 0.95rem;
  border: 2px dashed rgba(148, 163, 184, 0.9);
  color: rgba(30, 41, 59, 0.65);
  font-weight: 800;
  font-size: 0.72rem;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 0.3rem;
  background: rgba(248, 250, 252, 0.9);
}

.quote-paper__doc-title {
  min-width: 160px;
  display: grid;
  justify-items: end;
  gap: 0.25rem;
  padding-top: 0.2rem;
}

.quote-paper__doc-kind {
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(6, 20, 26, 0.82);
}

.quote-paper__doc-ref {
  font-size: 1.35rem;
  font-weight: 1000;
  color: var(--invoice-accent);
}

.letter-paper__recipient-label {
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(6, 20, 26, 0.55);
  margin-bottom: 0.15rem;
}

.quote-meta-grid {
  border: 1px solid rgba(6, 20, 26, 0.12);
  border-radius: 1rem;
  overflow: hidden;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.quote-meta-cell {
  padding: 0.6rem 0.7rem;
  border-right: 1px solid rgba(6, 20, 26, 0.12);
}

.quote-meta-cell:last-child {
  border-right: none;
}

.quote-meta-label {
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: rgba(6, 20, 26, 0.55);
}

.quote-meta-value {
  margin-top: 0.25rem;
  font-weight: 900;
  color: rgba(6, 20, 26, 0.92);
}

.quote-totals {
  margin-top: 1.2rem;
  display: grid;
  gap: 0.35rem;
  justify-content: end;
  min-width: 320px;
}

.quote-totals__row {
  display: grid;
  grid-template-columns: 220px 140px;
  gap: 1rem;
  align-items: center;
  font-weight: 750;
  color: rgba(6, 20, 26, 0.72);
}

.quote-totals__row strong {
  text-align: right;
  font-weight: 900;
  color: rgba(6, 20, 26, 0.9);
}

.quote-totals__row--discount strong,
.quote-totals__row--discount span {
  color: rgba(16, 185, 129, 0.92);
}

.quote-totals__grand {
  margin-top: 0.55rem;
  padding-top: 0.75rem;
  border-top: 2px solid rgba(13, 148, 136, 0.65);
  display: grid;
  grid-template-columns: 220px 140px;
  gap: 1rem;
  align-items: baseline;
  font-weight: 1000;
}

.quote-totals__grand span {
  letter-spacing: 0.12em;
  font-weight: 1000;
  color: rgba(6, 20, 26, 0.85);
}

.quote-totals__grand strong {
  text-align: right;
  font-size: 1.25rem;
  font-weight: 1000;
  color: var(--invoice-accent);
}
.invoice-table__row span {
  padding: 0.6rem 0.75rem;
  border-right: 1px solid rgba(6, 20, 26, 0.08);
  overflow-wrap: anywhere;
}

.invoice-table__row span:last-child {
  border-right: none;
}

.invoice-table__row span:nth-child(n + 2) {
  text-align: right;
  font-weight: 700;
}

.invoice-totals {
  margin-top: 1rem;
  display: grid;
  gap: 0.35rem;
  justify-content: end;
}

.invoice-totals__row {
  display: grid;
  grid-template-columns: 140px 120px;
  gap: 0.85rem;
  align-items: center;
  font-weight: 700;
}

.invoice-totals__row strong {
  text-align: right;
}

.invoice-totals__row--grand {
  font-size: 1.05rem;
  font-weight: 900;
}

.invoice-conditions {
  margin-top: 0.75rem;
  font-size: 0.82rem;
  line-height: 1.5;
  color: rgba(6, 20, 26, 0.72);
  white-space: pre-line;
}

.admin-invoice-totals {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  background: rgba(15, 27, 40, 0.04);
  border-radius: 1rem;
  padding: 1rem;
  border: 1px solid rgba(12, 28, 44, 0.08);
}

.admin-invoice-totals span {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(15, 27, 40, 0.55);
}

.admin-invoice-totals strong {
  font-size: 1.2rem;
}

.admin-invoice-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-end;
  border-top: 1px solid rgba(9, 20, 35, 0.08);
  padding-top: 1rem;
}

.employee-blank-layout {
  width: 100%;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 280px 1fr;
  background: white;
}

.admin-blank-sidebar {
  background: linear-gradient(145deg, #04070c, #0f1b28 50%, #143641 100%);
  color: white;
  padding: 2.75rem 2.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
  position: relative;
  overflow: hidden;
  font-family: 'Space Grotesk', 'Inter', sans-serif;
}

.employee-blank-sidebar {
  background: var(--hero-gradient-soft);
  color: white;
  padding: 2.75rem 2.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
  position: relative;
  overflow: hidden;
  font-family: 'Space Grotesk', 'Inter', sans-serif;
}

.employee-blank-sidebar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 25% 15%, rgba(255, 255, 255, 0.16), transparent 55%);
  pointer-events: none;
}

.employee-blank-sidebar::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 90% 90%, rgba(255, 255, 255, 0.12), transparent 55%);
  mix-blend-mode: screen;
}

.sidebar-welcome {
  position: relative;
  z-index: 1;
  padding: 0.85rem 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
}

.sidebar-welcome__label {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.4em;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.65);
}

.sidebar-welcome__name {
  margin: 0.35rem 0 0;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.06em;
}

.admin-blank-sidebar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 25% 15%, rgba(255, 255, 255, 0.18), transparent 55%);
  opacity: 1;
  pointer-events: none;
}

.admin-blank-sidebar::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 90% 90%, rgba(200, 74, 60, 0.25), transparent 55%);
  mix-blend-mode: screen;
}

.sidebar-branding {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  width: 100%;
}

.sidebar-branding__role {
  text-transform: uppercase;
  letter-spacing: 0.6em;
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(240, 241, 255, 0.65);
}

.sidebar-branding__signature {
  margin: 0.2rem 0 0;
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.4rem, 1.9vw, 1.8rem);
  letter-spacing: 0.04em;
  color: #f4f7ff;
  white-space: nowrap;
}

.sidebar-branding__product {
  font-style: italic;
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 184, 163, 0.8);
}

.sidebar-branding__divider {
  display: block;
  width: 100%;
  height: 2px;
  margin-top: 1rem;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  border-radius: 999px;
  opacity: 0.9;
}

.sidebar-nav {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.sidebar-nav__label {
  text-transform: uppercase;
  letter-spacing: 0.4em;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.55);
  margin: 0;
}

.sidebar-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.sidebar-nav li {
  padding: 0.7rem 0.9rem;
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid transparent;
  transition: border-color 0.2s ease, background 0.2s ease;
  cursor: pointer;
}

.sidebar-nav li span {
  font-size: 0.95rem;
  letter-spacing: 0.06em;
}

.sidebar-nav li.is-active {
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.08);
}

.sidebar-admin-chip {
  position: relative;
  z-index: 1;
  margin-top: auto;
  border-radius: 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

.sidebar-admin-chip__toggle {
  width: 100%;
  border: none;
  background: transparent;
  color: inherit;
  padding: 0.9rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  cursor: pointer;
}

.sidebar-admin-chip__chevron {
  font-size: 1rem;
  transition: transform 0.2s ease;
}

.sidebar-admin-chip[data-open='true'] .sidebar-admin-chip__chevron {
  transform: rotate(180deg);
}

.sidebar-admin-chip__dropdown {
  display: none;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  flex-direction: column;
  background: rgba(12, 20, 28, 0.8);
}

.sidebar-admin-chip[data-open='true'] .sidebar-admin-chip__dropdown {
  display: flex;
}

.sidebar-admin-chip__dropdown button {
  border: none;
  background: none;
  color: white;
  padding: 0.75rem 1rem;
  text-align: left;
  cursor: pointer;
  font-size: 0.95rem;
}

.sidebar-admin-chip__dropdown button:hover {
  background: rgba(255, 255, 255, 0.1);
}

.page--admin-blank .sidebar-admin-chip {
  border: 1px solid #dfe4ea;
  background: #f9fafb;
}

.page--admin-blank .sidebar-admin-chip__toggle {
  color: #0f1b28;
  padding: 1rem;
}

.page--admin-blank .sidebar-admin-chip__dropdown {
  border-top: 1px solid #eef1f4;
  background: #ffffff;
}

.page--admin-blank .sidebar-admin-chip__dropdown button {
  color: #0f1b28;
}

.page--admin-blank .sidebar-admin-chip__dropdown button:hover {
  background: rgba(15, 27, 40, 0.06);
}

.sidebar-admin-chip__name {
  margin: 0;
  font-weight: 600;
}

.sidebar-admin-chip__role {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

.admin-blank-main {
  background: #f5f7fb;
  padding: 2.5rem 3rem 3rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.employee-blank-main {
  background: white;
  padding: 2.5rem 3rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.admin-panels {
  width: 100%;
  height: 100%;
}

.admin-panel {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  background: #ffffff;
  border-radius: 1.6rem;
  border: 1px solid rgba(9, 20, 35, 0.08);
  padding: 2rem;
  box-shadow: 0 35px 80px rgba(7, 20, 35, 0.08);
}

.admin-panel.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.page--admin-blank .admin-panel {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
}

.page--admin-blank .company-space-panel {
  width: 100%;
}

.panel-header h2 {
  margin: 0;
  font-size: 1.6rem;
  letter-spacing: -0.02em;
}

.panel-header p {
  margin: 0.5rem 0 1.5rem;
  color: rgba(6, 20, 26, 0.65);
  max-width: 680px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.4rem;
}

.dashboard-card--metrics {
  border-radius: 1.2rem;
  border: 1px solid rgba(6, 20, 26, 0.08);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(10, 32, 56, 0.05));
  padding: 1.4rem 1.5rem;
  position: relative;
  overflow: hidden;
}

.dashboard-card--metrics::after {
  content: '';
  position: absolute;
  inset: 0;
  border-top: 3px solid rgba(203, 73, 57, 0.55);
  opacity: 0.8;
}

.admin-dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.admin-dashboard-header__titles {
  min-width: min(420px, 100%);
}

.admin-dashboard-header__titles .company-space-panel__description {
  margin: 0.35rem 0 0;
  max-width: 680px;
}

.admin-dashboard-actions {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
  align-items: center;
}

.admin-dashboard-actions .primary-btn,
.admin-dashboard-actions .secondary-btn {
  white-space: nowrap;
}

.admin-dashboard-section {
  margin-top: 2rem;
}

.admin-dashboard-section__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.admin-dashboard-section__header h3 {
  margin: 0;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  color: #0f1b28;
}

.admin-dashboard-section__header p {
  margin: 0;
  color: rgba(6, 20, 26, 0.65);
  max-width: 680px;
}

.admin-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}

.admin-metric-card {
  appearance: none;
  width: 100%;
  text-align: left;
  display: flex;
  gap: 1.05rem;
  align-items: flex-start;
  border-radius: 1.25rem;
  border: 1px solid rgba(6, 20, 26, 0.08);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(10, 32, 56, 0.06));
  padding: 1.35rem 1.45rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  box-shadow: 0 22px 55px rgba(7, 20, 35, 0.08);
}

.admin-metric-card:hover {
  transform: translateY(-2px);
  border-color: rgba(17, 60, 104, 0.22);
  box-shadow: 0 26px 65px rgba(7, 20, 35, 0.12);
}

.admin-metric-card:focus-visible {
  outline: none;
  border-color: rgba(17, 60, 104, 0.55);
  box-shadow: 0 0 0 3px rgba(17, 60, 104, 0.18), 0 26px 65px rgba(7, 20, 35, 0.12);
}

.admin-metric-card__icon {
  width: 2.65rem;
  height: 2.65rem;
  border-radius: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.02em;
  background: rgba(17, 60, 104, 0.12);
  color: rgba(17, 60, 104, 0.96);
  box-shadow: inset 0 0 0 1px rgba(17, 60, 104, 0.2);
}

.admin-dashboard-grid--activity .admin-metric-card__icon {
  background: rgba(6, 20, 26, 0.08);
  color: rgba(6, 20, 26, 0.82);
  box-shadow: inset 0 0 0 1px rgba(6, 20, 26, 0.14);
}

.admin-metric-card__body {
  flex: 1;
  min-width: 0;
}

.admin-metric-card__label {
  margin: 0;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(6, 20, 26, 0.55);
}

.admin-metric-card__value {
  margin: 0.55rem 0 0;
  font-size: 1.7rem;
  font-weight: 650;
  letter-spacing: -0.03em;
  color: #0f1b28;
  word-break: break-word;
}

.admin-metric-card__hint {
  margin: 0.5rem 0 0;
  font-size: 0.95rem;
  color: rgba(6, 20, 26, 0.65);
}

.card-label {
  margin: 0;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(6, 20, 26, 0.55);
}

.card-value {
  margin: 0.6rem 0 0;
  font-size: 1.8rem;
  font-weight: 600;
  color: #0f1b28;
}

.panel-placeholder {
  border: 1px dashed rgba(6, 20, 26, 0.2);
  border-radius: 1.2rem;
  padding: 2rem;
  color: rgba(6, 20, 26, 0.6);
  font-style: italic;
  text-align: center;
}

.companies-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.35rem;
  width: 100%;
  max-width: 100%;
  margin: 0 0 1.5rem 0;
  justify-content: flex-start;
}

@media (min-width: 1100px) {
  .companies-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.company-card {
  border-radius: 1.1rem;
  border: 1px solid rgba(6, 20, 26, 0.12);
  background: white;
  box-shadow: 0 25px 60px rgba(6, 20, 26, 0.08);
  padding: 1.4rem 1.4rem 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
}

.company-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 70px rgba(6, 20, 26, 0.12);
}

.company-card__identity {
  display: flex;
  gap: 0.9rem;
  align-items: center;
}

.company-card__logo-wrapper {
  width: 60px;
  height: 60px;
  border-radius: 0.9rem;
  background: rgba(17, 60, 104, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.company-card__logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.company-card__logo--fallback {
  font-weight: 600;
  font-size: 1.1rem;
  color: #113c68;
}

.company-card__body {
  flex: 1;
}

.company-card__meta-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin: 0;
  font-size: 0.92rem;
  color: rgba(6, 20, 26, 0.75);
}

.company-card__meta-list span {
  display: block;
}

.panel-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1.5rem;
}

.panel-toolbar .search-field input {
  width: 100%;
  min-width: 220px;
  border-radius: 999px;
  border: 1px solid rgba(12, 28, 44, 0.15);
  padding: 0.85rem 1.5rem;
  font-size: 1rem;
  background: #fff;
}

.company-card__header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
}

.company-card__name {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
}

.company-card__reference {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(17, 60, 104, 0.7);
}

.company-card__actions {
  margin-left: auto;
  display: flex;
  gap: 0.45rem;
}

.icon-btn {
  border: 1px solid rgba(17, 60, 104, 0.2);
  background: rgba(17, 60, 104, 0.06);
  width: 34px;
  height: 34px;
  border-radius: 0.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #0f3c7a;
  font-weight: 600;
}

.icon-btn svg {
  width: 16px;
  height: 16px;
  display: block;
}

.icon-btn--danger {
  border-color: rgba(200, 74, 60, 0.4);
  background: rgba(200, 74, 60, 0.08);
  color: #c84a3c;
}

.company-card__meta {
  margin: 0;
  font-size: 0.95rem;
  color: rgba(6, 20, 26, 0.7);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.company-card__contacts {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(6, 20, 26, 0.55);
  line-height: 1.4;
}

.toast {
  position: fixed;
  top: calc(env(safe-area-inset-top, 0px) + 1rem);
  right: calc(env(safe-area-inset-right, 0px) + 1rem);
  min-width: 260px;
  max-width: 360px;
  padding: 1rem 1.2rem;
  border-radius: 1rem;
  background: rgba(13, 85, 54, 0.95);
  color: white;
  line-height: 1.35;
  word-break: break-word;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transform: translateY(-20px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  z-index: 20000;
  pointer-events: none;
}

@media (max-width: 520px) {
  .toast {
    left: calc(env(safe-area-inset-left, 0px) + 1rem);
    right: calc(env(safe-area-inset-right, 0px) + 1rem);
    min-width: 0;
    max-width: none;
  }
}

.toast[data-type='error'] {
  background: rgba(200, 74, 60, 0.97);
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.panel-toolbar {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.search-field {
  flex: 1 1 260px;
}

.search-field input {
  width: 100%;
  border-radius: 0.9rem;
  border: 1px solid rgba(6, 20, 26, 0.15);
  padding: 0.85rem 1rem;
  font-size: 1rem;
  font-family: inherit;
}

.primary-btn--compact {
  padding: 0.75rem 1.2rem;
  text-transform: none;
  letter-spacing: 0.05em;
}

.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 7, 12, 0.45);
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  z-index: 30;
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(820px, 100%);
  height: 100vh;
  background: white;
  box-shadow: -30px 0 60px rgba(4, 7, 12, 0.25);
  transform: translateX(110%);
  transition: transform 0.35s ease;
  z-index: 40;
  display: flex;
  flex-direction: column;
}

.drawer--details {
  width: min(720px, 100%);
}

.page--company-space .drawer,
.page--facturo-space .drawer,
.page--facturo-quotes .drawer,
.page--employee-space .drawer,
.page--admin-blank .drawer {
  width: calc(100% - var(--app-sidebar-width, 0px));
  max-width: calc(100% - var(--app-sidebar-width, 0px));
}

.drawer-overlay.is-visible {
  opacity: 1;
  visibility: visible;
}

.drawer--open {
  transform: translateX(0);
}

.bottom-sheet {
  position: fixed;
  inset: 0;
  z-index: 70;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.bottom-sheet.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.bottom-sheet__overlay {
  position: absolute;
  inset: 0;
  background: rgba(4, 7, 12, 0.45);
  backdrop-filter: blur(10px);
}

.bottom-sheet__panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: min(85vh, 760px);
  background: #fff;
  border-radius: 1.5rem 1.5rem 0 0;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  transform: translateY(110%);
  transition: transform 0.35s ease;
  display: flex;
  flex-direction: column;
  box-shadow: 0 -25px 60px rgba(4, 7, 12, 0.25);
}

.page--company-space .bottom-sheet__panel,
.page--facturo-space .bottom-sheet__panel,
.page--facturo-quotes .bottom-sheet__panel,
.page--employee-space .bottom-sheet__panel,
.page--admin-blank .bottom-sheet__panel {
  top: 0;
  height: 100%;
  max-height: none;
  border-radius: 0;
  left: var(--app-sidebar-width, 0px);
}

.bottom-sheet.is-visible .bottom-sheet__panel {
  transform: translateY(0);
}

.bottom-sheet__handle {
  width: 46px;
  height: 5px;
  border-radius: 99px;
  background: rgba(6, 20, 26, 0.18);
  margin: 0.75rem auto 0.4rem;
}

.bottom-sheet__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.2rem;
  border-bottom: 1px solid rgba(6, 20, 26, 0.08);
}

.bottom-sheet__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: #06141a;
}

.bottom-sheet__content {
  padding: 1.2rem;
  overflow: auto;
}

.bottom-sheet__actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: flex-end;
  margin-top: 1rem;
}

.bottom-sheet__section-title {
  margin: 1.25rem 0 0.75rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #06141a;
}

.quote-parties-sheet__summary {
  margin-top: 1rem;
  padding: 0.95rem;
  border: 1px solid rgba(6, 20, 26, 0.08);
  border-radius: 16px;
  background: #f8fafc;
}

.quote-parties-sheet__summary-title {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(6, 20, 26, 0.55);
  margin-bottom: 0.55rem;
}

.quote-parties-sheet__summary-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.45rem 0;
  border-top: 1px solid rgba(6, 20, 26, 0.06);
}

.quote-parties-sheet__summary-row:first-of-type {
  border-top: 0;
}

.quote-parties-sheet__summary-row span {
  color: rgba(6, 20, 26, 0.65);
  font-weight: 650;
}

.quote-parties-sheet__summary-row strong {
  color: rgba(6, 20, 26, 0.92);
  font-weight: 750;
  text-align: right;
}

.facturo-actions-sheet {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.facturo-actions-group {
  border: 1px solid rgba(6, 20, 26, 0.08);
  border-radius: 16px;
  background: #ffffff;
  padding: 0.95rem;
}

.facturo-actions-group__title {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(6, 20, 26, 0.55);
  margin-bottom: 0.7rem;
}

.facturo-actions-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.facturo-actions-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 0.6rem;
}

.facturo-actions-row .secondary-btn {
  width: 100%;
  justify-content: center;
}

.facturo-action-item {
  width: 100%;
  border: 1px solid rgba(6, 20, 26, 0.1);
  border-radius: 14px;
  background: #f8fafc;
  padding: 0.8rem 0.9rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  text-align: left;
}

.facturo-action-item:hover {
  background: #ffffff;
  border-color: rgba(6, 20, 26, 0.18);
}

.facturo-action-item:active {
  transform: translateY(1px);
}

.facturo-action-item__label {
  font-weight: 650;
  color: rgba(6, 20, 26, 0.92);
}

.facturo-action-item__hint {
  font-size: 0.85rem;
  color: rgba(6, 20, 26, 0.5);
  text-align: right;
  max-width: 16rem;
}

.facturo-action-item--danger {
  background: rgba(239, 68, 68, 0.06);
  border-color: rgba(239, 68, 68, 0.25);
}

.facturo-action-item--danger .facturo-action-item__label {
  color: #b91c1c;
}

.drawer__header {
  padding: 2.5rem 2.5rem 1.25rem;
  display: flex;
  justify-content: flex-start;
  gap: 1rem;
  border-bottom: 1px solid rgba(6, 20, 26, 0.08);
  align-items: center;
}

.drawer__title-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.drawer__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.35em;
  font-size: 0.7rem;
  color: rgba(6, 20, 26, 0.5);
}

.drawer__reference {
  text-align: right;
}

.drawer__reference p {
  margin: 0;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  color: rgba(6, 20, 26, 0.5);
}

.drawer__reference span {
  display: block;
  margin-top: 0.35rem;
  font-weight: 700;
  color: #0f3c7a;
}

.drawer__close-btn {
  border: none;
  background: transparent;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  color: rgba(6, 20, 26, 0.5);
  transition: color 0.2s ease;
}

.drawer__close-btn:hover {
  color: rgba(6, 20, 26, 0.85);
}

.drawer__content {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem 2.5rem;
}

.company-details__header {
  justify-content: space-between;
}

.company-details__identity {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.company-details__logo {
  width: 64px;
  height: 64px;
  border-radius: 1rem;
  background: rgba(17, 60, 104, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 600;
  color: #0f1b28;
  overflow: hidden;
}

.company-details__logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.company-details__name {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 600;
  color: #06141a;
}

.company-details__reference {
  margin: 0.15rem 0 0;
  font-size: 0.9rem;
  letter-spacing: 0.18em;
  color: rgba(6, 20, 26, 0.6);
  text-transform: uppercase;
}

.company-details__body {
  padding: 1.5rem 2.5rem 2.5rem;
  flex: 1;
  overflow-y: auto;
}

.company-details__section + .company-details__section {
  margin-top: 1.75rem;
}

.company-details__section h4 {
  margin: 0 0 0.8rem;
  font-size: 1rem;
  font-weight: 600;
  color: #0f1b28;
}

.company-details__list {
  margin: 0;
  padding: 0;
}

.company-details__list div {
  margin-bottom: 0.6rem;
}

.company-details__list dt {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(6, 20, 26, 0.5);
}

.company-details__list dd {
  margin: 0.2rem 0 0;
  font-size: 0.95rem;
  color: #06141a;
}

.company-details__contacts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.company-details__contact {
  border: 1px solid rgba(6, 20, 26, 0.08);
  border-radius: 0.9rem;
  padding: 0.9rem 1rem;
  background: rgba(6, 20, 26, 0.02);
}

.company-details__contact strong {
  display: block;
  margin-bottom: 0.35rem;
  color: #0f1b28;
}

.company-details__contact p {
  margin: 0.15rem 0;
  font-size: 0.92rem;
  color: rgba(6, 20, 26, 0.75);
}

.company-details__contacts-empty {
  color: rgba(6, 20, 26, 0.6);
  font-style: italic;
}

.drawer-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.drawer-form--grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.drawer-column {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.section-header h4 {
  margin: 0;
  font-size: 0.95rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(6, 20, 26, 0.65);
}

.drawer-form label {
  font-weight: 600;
  font-size: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.facturo-help {
  margin: 0.4rem 0 0;
  font-size: 0.88rem;
  color: rgba(6, 20, 26, 0.62);
  font-weight: 500;
}

.drawer-form input,
.drawer-form select {
  border: 1px solid rgba(6, 20, 26, 0.18);
  border-radius: 0.85rem;
  padding: 0.8rem 1rem;
  font-family: inherit;
  font-size: 0.95rem;
}

.add-contact-btn {
  align-self: flex-start;
  border: 1px dashed rgba(17, 60, 104, 0.4);
  border-radius: 999px;
  padding: 0.65rem 1.2rem;
  background: rgba(17, 60, 104, 0.08);
  color: #113c68;
  font-weight: 600;
  cursor: pointer;
}

.contact-section__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.contact-section__header button {
  border: none;
  background: rgba(17, 60, 104, 0.1);
  color: #113c68;
  border-radius: 999px;
  padding: 0.6rem 1rem;
  cursor: pointer;
  font-weight: 600;
}

.contact-card {
  border: 1px solid rgba(6, 20, 26, 0.1);
  border-radius: 1rem;
  padding: 1rem;
  margin-bottom: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  position: relative;
}

.contact-card__remove {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  border: none;
  background: rgba(6, 20, 26, 0.08);
  width: 28px;
  height: 28px;
  border-radius: 999px;
  cursor: pointer;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.drawer__content.is-hidden {
  display: none;
}

.drawer__footer {
  padding: 1rem 2.5rem 2rem;
  border-top: 1px solid rgba(6, 20, 26, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.drawer__primary {
  border: 1px solid rgba(6, 20, 26, 0.25);
  border-radius: 999px;
  padding: 0.75rem 1.3rem;
  background: transparent;
  font-weight: 600;
  color: rgba(6, 20, 26, 0.7);
  cursor: pointer;
}

.drawer__footer-actions {
  display: flex;
  gap: 0.5rem;
}

.secondary-btn {
  border: 1px solid rgba(6, 20, 26, 0.18);
  border-radius: 999px;
  padding: 0.65rem 1.2rem;
  background: rgba(6, 20, 26, 0.04);
  color: #06141a;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

.secondary-btn--sm {
  padding: 0.45rem 0.9rem;
  font-size: 0.9rem;
}

.secondary-btn:hover {
  background: rgba(6, 20, 26, 0.1);
}

.secondary-btn.is-active {
  border-color: rgba(17, 60, 104, 0.35);
  background: rgba(17, 60, 104, 0.1);
  color: rgba(17, 60, 104, 0.95);
}

.drawer__footer-actions .is-hidden {
  display: none;
}

.drawer--company-settings {
  width: 90vw;
  max-width: calc(100vw - 260px);
  right: 0;
  background: rgba(255, 255, 255, 0.8);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: inset 1px 0 0 rgba(15, 27, 40, 0.08);
}

.company-settings__header h3 {
  margin: 0.2rem 0 0;
}

.company-settings__body {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  flex: 1;
  overflow-y: auto;
  padding-bottom: 6rem;
}

.company-settings__reference {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  border: 1px solid #e3e7ee;
  border-radius: 0.9rem;
  background: #f8f9fb;
}

.company-settings__reference p,
.company-settings__reference strong {
  margin: 0;
}

.company-settings__reference strong {
  letter-spacing: 0.18em;
  font-size: 0.95rem;
}

.drawer--report {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: inset 1px 0 0 rgba(15, 27, 40, 0.08);
}

.report-stepper {
  padding: 1.25rem 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.report-stepper__track {
  width: 100%;
  height: 4px;
  border-radius: 999px;
  background: rgba(6, 20, 26, 0.08);
  position: relative;
}

.report-stepper__progress {
  position: absolute;
  inset: 0;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(120deg, #0a2236, #1f4d70);
  transition: width 0.3s ease;
}

.report-stepper__stages {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(6, 20, 26, 0.45);
}

.report-stepper__stage.is-active {
  color: #0d2c44;
  font-weight: 600;
}

.report-contract-list {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

.report-contract-search--modern {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  background: #f4f7fb;
  border: 1px solid rgba(6, 20, 26, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.report-contract-search--modern i {
  color: rgba(6, 20, 26, 0.45);
}

.report-contract-search--modern input {
  border: none;
  background: transparent;
  width: 100%;
  flex: 1;
  font-weight: 600;
  color: #06141a;
  outline: none;
}

.report-contract-card {
  border-radius: 1rem;
  border: 1px solid rgba(6, 20, 26, 0.1);
  padding: 1rem;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.report-contract-card.is-selected {
  border-color: #0d3258;
  box-shadow: 0 15px 35px rgba(13, 47, 80, 0.15);
}

.report-contract-card h4 {
  margin: 0;
  font-size: 1rem;
  color: #06141a;
}

.report-contract-card p {
  margin: 0.35rem 0 0;
  color: rgba(6, 20, 26, 0.6);
  font-size: 0.9rem;
}

.report-contract-empty {
  margin-top: 1.2rem;
  text-align: center;
  color: rgba(6, 20, 26, 0.45);
}

.report-panel-card {
  width: 100%;
  border-radius: 1.35rem;
  border: 1px solid rgba(6, 20, 26, 0.08);
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.96), rgba(243, 246, 250, 0.9));
  box-shadow: 0 30px 70px rgba(6, 25, 41, 0.12);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.report-panel-card--content {
  gap: 1.5rem;
  padding: 2rem;
}

.report-init-card {
  background: #ffffff;
  border-radius: 1.4rem;
  border: 1px solid rgba(6, 20, 26, 0.08);
  box-shadow: 0 18px 45px rgba(6, 25, 41, 0.1);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.report-init-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 1rem;
  font-weight: 700;
  color: #0d2c44;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.report-init-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #1247f0;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 14px 26px rgba(18, 71, 240, 0.28);
}

.report-init-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.report-init-block {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.report-init-block h5 {
  margin: 0;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(6, 20, 26, 0.6);
}

.report-field-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0.85rem;
}

.report-field-grid--compact {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.report-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-weight: 600;
  color: rgba(6, 20, 26, 0.7);
}

.report-field input,
.report-field textarea {
  border-radius: 0.95rem;
  border: 1px solid rgba(6, 20, 26, 0.12);
  background: #f8fafc;
  padding: 0.75rem 0.9rem;
  font-weight: 600;
  color: #0f172a;
}

.report-field--full {
  grid-column: 1 / -1;
}

.report-section-form-card {
  background: #ffffff;
  border-radius: 1.4rem;
  border: 1px solid rgba(6, 20, 26, 0.08);
  box-shadow: 0 14px 32px rgba(6, 25, 41, 0.08);
  padding: 1.25rem;
}

.report-section-form--card {
  background: transparent;
  border: none;
  padding: 0;
  gap: 1rem;
}

.report-section-form__header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-bottom: 1px solid rgba(6, 20, 26, 0.08);
  padding-bottom: 0.75rem;
}

.report-section-form__badge {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #0d2c44;
  color: #fff;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.report-section-form__title {
  border: none;
  background: transparent;
  font-size: 1rem;
  font-weight: 700;
  flex: 1;
  outline: none;
}

.report-section-form__close {
  border: none;
  background: transparent;
  font-size: 1.4rem;
  color: rgba(6, 20, 26, 0.4);
  cursor: pointer;
}

.report-section-form__textarea {
  width: 100%;
  border-radius: 0.95rem;
  border: 1px solid rgba(6, 20, 26, 0.12);
  background: #f8fafc;
  padding: 0.85rem;
}

.report-section-form__toolbar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.report-photos-btn {
  border: none;
  background: #0f172a;
  color: #fff;
  padding: 0.55rem 1rem;
  border-radius: 0.9rem;
  font-weight: 700;
  font-size: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.report-add-section-btn {
  width: 100%;
  padding: 0.9rem;
  border: 2px dashed rgba(13, 47, 80, 0.35);
  border-radius: 1rem;
  background: transparent;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(13, 47, 80, 0.7);
  cursor: pointer;
}

.report-section-card--modern {
  border-radius: 1.1rem;
  border: 1px solid rgba(6, 20, 26, 0.08);
  background: #ffffff;
  padding: 1rem;
  box-shadow: 0 10px 30px rgba(6, 25, 41, 0.08);
}

.report-section-card__header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-bottom: 1px solid rgba(6, 20, 26, 0.08);
  padding-bottom: 0.75rem;
}

.report-section-card__badge {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #2046f0;
  color: #fff;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.report-section-card__title strong {
  font-size: 0.95rem;
  color: #0f172a;
}

.report-section-card__actions {
  margin-left: auto;
  display: flex;
  gap: 0.5rem;
}

.report-section-card__summary {
  margin: 0.75rem 0;
  color: rgba(6, 20, 26, 0.7);
}

.report-section-card__photos {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.report-section-card__photos span {
  color: rgba(6, 20, 26, 0.5);
  font-size: 0.8rem;
}

.report-conclusion-card {
  background: #ffffff;
  border-radius: 1.2rem;
  border: 1px solid rgba(6, 20, 26, 0.08);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  box-shadow: 0 12px 30px rgba(6, 25, 41, 0.08);
}

.report-conclusion-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.report-conclusion-icon {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: #0fba7d;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
}

.report-signature-pad .report-conclusion-icon {
  background: #1f4d70;
}

.report-signature-pad__hint {
  margin-left: auto;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(6, 20, 26, 0.55);
  font-weight: 700;
}

.report-conclusion-textarea {
  border-radius: 0.85rem;
  border: 1px solid rgba(15, 186, 125, 0.35);
  background: rgba(15, 186, 125, 0.08);
  padding: 0.85rem;
  font-weight: 600;
}

.report-conclusion-toggle {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: #a8550f;
}

.report-signature-zone {
  background: #0b1220;
  color: #fff;
  border-radius: 1.3rem;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: 0 20px 40px rgba(2, 6, 23, 0.35);
}

.report-signature-zone h4 {
  margin: 0;
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-align: center;
}

.report-signature-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
}

.report-signature-list--light .report-signature-card {
  background: #ffffff;
  color: #0f172a;
  border-color: rgba(12, 28, 44, 0.12);
}

.report-signature-list--light .report-signature-card span {
  color: rgba(15, 23, 42, 0.6);
}

.report-signature-list--light .report-signature-card i {
  color: rgba(15, 23, 42, 0.45);
}

.report-signature-list--light .report-signature-card.is-active {
  background: rgba(59, 130, 246, 0.12);
  border-color: rgba(59, 130, 246, 0.5);
}

.report-signature-list--light .report-signature-empty {
  color: rgba(15, 23, 42, 0.6);
}

.report-signature-card {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
  border-radius: 0.9rem;
  padding: 0.85rem 1rem;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  text-align: left;
}

.report-signature-card:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.5);
}

.report-signature-card strong {
  display: block;
  font-size: 0.85rem;
  text-transform: uppercase;
}

.report-signature-card span {
  display: block;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.6);
}

.report-signature-card i {
  color: rgba(255, 255, 255, 0.5);
}

.report-signature-card.is-active {
  border-color: rgba(96, 165, 250, 0.9);
  background: rgba(59, 130, 246, 0.25);
}

.report-signature-empty {
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
}

.report-panel-card--content {
  gap: 1.5rem;
  padding: 2rem;
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.98), rgba(236, 243, 252, 0.92));
}

.report-content-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
}

.report-content-eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(6, 20, 26, 0.55);
  font-weight: 700;
}

.report-content-subtitle {
  margin: 0;
  font-size: 0.92rem;
  color: rgba(6, 20, 26, 0.58);
}

.report-content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.report-content-card {
  background: #ffffff;
  border-radius: 1.4rem;
  border: 1px solid rgba(6, 20, 26, 0.08);
  box-shadow: 0 18px 45px rgba(6, 25, 41, 0.1);
  padding: 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.report-content-card__title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.report-content-card__title p {
  margin: 0;
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(6, 20, 26, 0.45);
  font-weight: 700;
}

.report-content-card__title h5 {
  margin: 0.2rem 0 0;
  font-size: 1rem;
  color: #0d2c44;
  font-weight: 700;
}

.report-content-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: #0d2c44;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 26px rgba(13, 44, 68, 0.25);
  font-size: 1.1rem;
}

.report-content-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0.85rem;
}

.report-content-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: rgba(6, 20, 26, 0.7);
  font-weight: 600;
}

.report-content-field span {
  font-weight: 700;
}

.report-content-field input,
.report-content-field textarea {
  border-radius: 0.95rem;
  border: 1px solid rgba(6, 20, 26, 0.12);
  background: #f8fafc;
  padding: 0.75rem 0.9rem;
  font-weight: 600;
  color: #0f172a;
}

.report-content-field input:focus,
.report-content-field textarea:focus {
  outline: none;
  border-color: rgba(13, 47, 80, 0.45);
  box-shadow: 0 0 0 2px rgba(13, 47, 80, 0.12);
  background: #ffffff;
}

.report-content-field textarea {
  resize: vertical;
  min-height: 72px;
}

.report-content-field--full {
  grid-column: 1 / -1;
}

.report-status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  background: #e0f2fe;
  color: #0369a1;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.report-content-divider {
  width: 100%;
  height: 1px;
  background: rgba(6, 20, 26, 0.08);
}

.report-sections-wrap {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.report-sections-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

.report-section-form--modern {
  border-radius: 1.3rem;
  border: 1px solid rgba(6, 20, 26, 0.08);
  background: #f8fafc;
  padding: 1.1rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.report-participants {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.report-participants .placeholder {
  padding: 0.9rem 1.1rem;
  border-radius: 0.85rem;
  border: 1px dashed rgba(6, 20, 26, 0.25);
  color: rgba(6, 20, 26, 0.6);
  background: rgba(255, 255, 255, 0.7);
  text-align: center;
}

.report-participant {
  padding: 0.9rem 1rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(6, 20, 26, 0.08);
  background: rgba(6, 20, 26, 0.02);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.report-participant strong {
  display: block;
  font-size: 1rem;
  color: #06141a;
}

.report-participant span {
  display: block;
  font-size: 0.85rem;
  color: rgba(6, 20, 26, 0.6);
}

.report-participant button {
  border: none;
  background: transparent;
  font-size: 1.1rem;
  color: rgba(6, 20, 26, 0.45);
  cursor: pointer;
}

.report-participant-form {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0.75rem;
  align-items: end;
}

.tag-btn--ghost {
  border-style: dashed;
  border-color: rgba(6, 20, 26, 0.3);
  color: rgba(6, 20, 26, 0.6);
  background: transparent;
}

.report-core-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.report-section-form {
  padding: 1rem;
  border: 1px solid rgba(6, 20, 26, 0.08);
  border-radius: 1rem;
  background: rgba(6, 20, 26, 0.02);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.report-section-upload input {
  border: 1px dashed rgba(6, 20, 26, 0.2);
  padding: 0.7rem;
  border-radius: 0.75rem;
  background: rgba(6, 20, 26, 0.02);
}

.report-section-upload__trigger {
  border: none;
  background: rgba(13, 47, 80, 0.08);
  color: #0d2f50;
  padding: 0.65rem 1.2rem;
  border-radius: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.2s ease;
}

.report-section-upload__trigger svg {
  width: 22px;
  height: 22px;
}

.report-section-upload__trigger:hover {
  background: rgba(13, 47, 80, 0.18);
}

.report-section-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.report-section-actions .reportflow-btn {
  flex: 1 1 220px;
}

.report-photo-toolbar {
  display: flex;
  justify-content: flex-end;
  margin: 0.35rem 0 0.65rem;
}

.report-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
}

.report-photo-slot {
  border-radius: 1rem;
  border: 1px dashed rgba(6, 20, 26, 0.25);
  background: rgba(255, 255, 255, 0.7);
  padding: 0.8rem;
  display: grid;
  gap: 0.6rem;
  overflow: hidden;
}

.report-photo-slot__header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.6rem;
}

.report-photo-slot__header strong {
  font-size: 0.9rem;
}

.report-photo-slot__header small {
  color: rgba(6, 20, 26, 0.6);
}

.report-photo-slot__preview {
  width: 100%;
  height: 150px;
  border-radius: 0.85rem;
  border: 1px solid rgba(6, 20, 26, 0.08);
  background: rgba(6, 20, 26, 0.04);
  overflow: hidden;
  display: grid;
  place-items: center;
  position: relative;
}

.report-photo-slot__preview img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.report-photo-slot__preview span {
  color: rgba(6, 20, 26, 0.55);
  font-size: 0.85rem;
}

.report-photo-slot__actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.report-photo-slot__actions button {
  border: none;
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.85rem;
  background: rgba(13, 47, 80, 0.1);
  color: #0d2f50;
}

.report-photo-slot__actions button:hover {
  background: rgba(13, 47, 80, 0.18);
}

.report-photo-slot__actions .danger-btn {
  background: rgba(181, 49, 49, 0.12);
  color: #b53131;
}

.report-preview {
  display: grid;
  gap: 0.7rem;
}

.report-preview__frame {
  width: 100%;
  height: 420px;
  border: 1px solid rgba(6, 20, 26, 0.12);
  border-radius: 1rem;
  background: #fff;
}

.report-summary__block:last-child .report-preview__frame {
  height: min(62vh, 520px);
  border-radius: 1.2rem;
  box-shadow: 0 18px 40px rgba(6, 25, 41, 0.12);
}

.report-section-list {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.report-section-list .placeholder {
  padding: 0.8rem 1rem;
  border-radius: 0.9rem;
  border: 1px dashed rgba(6, 20, 26, 0.25);
  color: rgba(6, 20, 26, 0.55);
  text-align: center;
  background: rgba(255, 255, 255, 0.7);
}

.report-section-card {
  border-radius: 1rem;
  border: 1px solid rgba(6, 20, 26, 0.1);
  padding: 1rem;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.report-section-card header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.report-section-card footer {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.report-section-card footer img {
  width: 72px;
  height: 54px;
  object-fit: contain;
  object-position: center;
  border-radius: 0.65rem;
  border: 1px solid rgba(6, 20, 26, 0.12);
  background: #fff;
  display: block;
}

.report-section-card footer span {
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(6, 20, 26, 0.18);
  font-size: 0.8rem;
}

.report-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.report-summary__block {
  border-radius: 1rem;
  border: 1px solid rgba(6, 20, 26, 0.08);
  padding: 1.1rem;
  background: rgba(255, 255, 255, 0.8);
}

.report-summary__block h5 {
  margin: 0 0 0.6rem;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(6, 20, 26, 0.6);
}

.report-summary__block dl,
.report-summary__block ul {
  margin: 0;
  padding: 0;
}

.report-summary__block li {
  list-style: none;
  margin-bottom: 0.35rem;
  color: rgba(6, 20, 26, 0.8);
}

.report-summary__block dl div {
  margin-bottom: 0.3rem;
}

.report-summary__block dt {
  font-size: 0.8rem;
  color: rgba(6, 20, 26, 0.5);
  text-transform: uppercase;
}

.report-summary__block dd {
  margin: 0;
  font-weight: 600;
  color: #06141a;
}

.tag-btn {
  border: 1px solid #d3dae5;
  border-radius: 999px;
  padding: 0.3rem 0.9rem;
  background: white;
  cursor: pointer;
  font-size: 0.85rem;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.tag-btn:hover {
  background: #eff3f8;
  border-color: #b7c3d6;
}

.company-settings__form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.company-settings__field span,
.company-settings__logo-field label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.85rem;
  color: #5b6677;
}

.company-settings__field input,
.company-settings__field textarea {
  width: 100%;
  border: 1px solid #dfe4ea;
  border-radius: 0.6rem;
  padding: 0.65rem 0.8rem;
  font-size: 0.95rem;
}

.company-settings__logo-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.company-settings__logo-box {
  position: relative;
  border: 1px dashed #d3dae5;
  border-radius: 1rem;
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 110px;
  background: #fdfdfd;
  cursor: pointer;
}

.company-settings__logo-box img {
  width: 72px;
  height: 72px;
  border-radius: 1rem;
  object-fit: cover;
  display: none;
}

.company-settings__logo-box.has-logo img {
  display: block;
}

.company-settings__logo-box.has-logo .company-settings__logo-placeholder {
  display: none;
}

.company-settings__logo-placeholder {
  flex: 1;
  color: #7f8a99;
  font-size: 0.9rem;
}

.company-settings__footer {
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid rgba(6, 20, 26, 0.08);
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.admin-blank-main {
  background: #f5f7fb;
}

@media (max-width: 960px) {
  .page--auth {
    align-items: flex-start;
  }

  .auth-layout {
    grid-template-columns: 1fr;
  }

  .auth-hero,
  .auth-panel {
    padding: clamp(1.8rem, 4vw, 2.4rem);
  }

  .dashboard-layout--admin {
    grid-template-columns: 1fr;
  }

  .dashboard-sidebar,
  .dashboard-main {
    padding: 2.25rem;
  }

  .admin-blank-layout {
    grid-template-columns: 1fr;
    min-height: auto;
  }
}

@media (max-width: 768px) {
  .page--auth {
    padding: 0.85rem;
  }

  .auth-layout {
    grid-template-columns: 1fr;
    border-radius: 1.25rem;
  }

  .auth-hero,
  .auth-panel {
    padding: 1.5rem;
  }

  .auth-hero h1 {
    font-size: clamp(1.7rem, 6vw, 2.2rem);
  }

  .auth-panel h2 {
    font-size: clamp(1.3rem, 4.5vw, 1.7rem);
  }

  .auth-panel {
    gap: 1.1rem;
  }

  .mode-switch {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .mode-switch__btn {
    flex: 1 1 100%;
    padding: 0.65rem 0.8rem;
  }

  .form.form--panel {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .selection-shell {
    padding: 2rem;
    min-height: auto;
  }

  .selection-grid {
    grid-template-columns: 1fr;
  }

  .auth-layout {
    min-height: auto;
  }

  .auth-hero,
  .auth-panel {
    padding: 1.25rem;
  }

  .auth-panel__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.65rem;
  }

  .auth-panel__link {
    width: 100%;
    text-align: center;
  }

  .form__remember {
    flex-direction: column;
    align-items: flex-start;
  }

  .form__actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
  }

  .form__actions .text-btn {
    align-self: center;
  }

  .mode-switch__btn {
    font-size: 0.82rem;
    padding: 0.65rem 0.75rem;
  }

  .dashboard-sidebar,
  .dashboard-main {
    padding: 2rem;
  }

  .admin-blank-sidebar {
    padding: 2rem;
  }

  .admin-blank-layout {
    min-height: auto;
  }
}

@media (max-width: 420px) {
  .auth-layout {
    border-radius: 1.25rem;
  }

  .form__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .form__actions .primary-btn {
    width: 100%;
  }

  .form__actions .text-btn {
    align-self: center;
  }

  .mode-switch__btn {
    flex: 1 1 100%;
  }

  .first-access__actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .first-access__actions .text-btn {
    align-self: center;
  }
}

/* Mobile sidebar (off-canvas) */
@media (max-width: 900px) {
  body.is-sidebar-open {
    overflow: hidden;
  }

  .company-space-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: min(340px, 86vw);
    padding: 1.5rem 1.25rem !important;
    border-right: 1px solid #e5e7ec;
    border-bottom: none;
    box-shadow: 20px 0 50px rgba(15, 27, 40, 0.12);
    transform: translateX(calc(-100% - 12px));
    transition: transform 0.28s ease;
    z-index: 1001;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }

  body.is-sidebar-open .company-space-sidebar {
    transform: translateX(0);
  }

  .mobile-sidebar-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(7, 12, 18, 0.42);
    backdrop-filter: blur(8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 1000;
  }

  body.is-sidebar-open .mobile-sidebar-overlay {
    opacity: 1;
    pointer-events: auto;
  }

  .mobile-sidebar-toggle {
    position: fixed;
    top: 1rem;
    left: 1rem;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    border: 1px solid rgba(15, 27, 40, 0.12);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 12px 26px rgba(15, 27, 40, 0.12);
    z-index: 1002;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }

  .mobile-sidebar-toggle__icon {
    width: 18px;
    height: 2px;
    background: #0f1b28;
    border-radius: 2px;
    position: relative;
    display: inline-block;
  }

  .mobile-sidebar-toggle__icon::before,
  .mobile-sidebar-toggle__icon::after {
    content: '';
    position: absolute;
    left: 0;
    width: 18px;
    height: 2px;
    background: #0f1b28;
    border-radius: 2px;
    transition: transform 0.2s ease, top 0.2s ease, opacity 0.2s ease;
  }

  .mobile-sidebar-toggle__icon::before {
    top: -6px;
  }

  .mobile-sidebar-toggle__icon::after {
    top: 6px;
  }

  body.is-sidebar-open .mobile-sidebar-toggle__icon {
    background: transparent;
  }

  body.is-sidebar-open .mobile-sidebar-toggle__icon::before {
    top: 0;
    transform: rotate(45deg);
  }

  body.is-sidebar-open .mobile-sidebar-toggle__icon::after {
    top: 0;
    transform: rotate(-45deg);
  }

  .company-space-main {
    padding-top: 4.25rem;
  }

  .company-space-nav ul {
    display: block;
  }

  .company-space-nav li {
    flex: none;
  }

  /* Contract detail panel should be full width on mobile/tablet. */
  .contract-detail__panel {
    width: 100%;
    max-width: 100%;
    padding: 1.75rem 1.5rem;
    border-left: none;
  }
}

@media (max-width: 1100px) {
  .page--company-space,
  .page--facturo-space,
  .page--facturo-quotes,
  .page--employee-space,
  .page--admin-blank {
    --app-sidebar-width: 220px;
  }

  .company-space-sidebar {
    padding: 1.75rem 1.25rem;
  }

  /* Facturo sidebar stays fixed-width on desktop. */
  .page--facturo-space,
  .page--facturo-quotes {
    --app-sidebar-width: 250px;
  }
}

@media (max-width: 900px) {
  .company-space-layout {
    grid-template-columns: 1fr;
  }

  .page--company-space,
  .page--facturo-space,
  .page--facturo-quotes,
  .page--employee-space,
  .page--admin-blank {
    --app-sidebar-width: 0px;
  }

  .drawer--company-settings {
    width: 100vw;
    max-width: 100vw;
  }

  .drawer--report {
    width: 100vw;
    max-width: 100vw;
    border-radius: 0;
    left: 0;
  }

  .drawer--contract {
    width: 100vw;
    max-width: 100vw;
    border-radius: 0;
    left: 0;
  }

  .drawer--report .drawer__footer {
    position: sticky;
    bottom: 0;
    z-index: 2;
    background: rgba(255, 255, 255, 0.98);
    padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -10px 25px rgba(6, 20, 26, 0.08);
  }

  .drawer--report .drawer__content {
    padding-bottom: 7rem;
  }

  .drawer--contract .drawer__footer {
    position: sticky;
    bottom: 0;
    z-index: 2;
    background: rgba(255, 255, 255, 0.98);
    padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -10px 25px rgba(6, 20, 26, 0.08);
  }

  .drawer--contract .drawer__content {
    padding-bottom: 7rem;
  }

  .drawer--report .drawer__header {
    padding: 1.75rem 1.5rem 1rem;
  }

  .report-stepper {
    padding: 1rem 1.5rem;
  }

  .drawer--company-settings .drawer__header {
    padding: 1.75rem 1.5rem 1rem;
  }

  .drawer--company-settings .company-settings__body {
    padding: 1.5rem;
  }

  .drawer--company-settings .company-settings__footer {
    padding: 1.25rem 1.5rem;
    flex-wrap: wrap;
  }

  .drawer--company-settings .company-settings__footer > * {
    width: 100%;
  }

  .company-space-main {
    padding: 1.5rem;
    padding-top: 4.25rem;
  }

  .dashboard-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }

  .admin-dashboard-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  }

  .panel-toolbar,
  .tickets-toolbar,
  .admin-invoices-toolbar {
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .company-space-profile.sidebar-admin-chip {
    margin-top: 1rem;
  }
}

@media (max-width: 640px) {
  .company-space-main {
    padding: 1.25rem;
    padding-top: 4.25rem;
    overflow-x: hidden;
  }

  .company-space-panel__title {
    font-size: 1.85rem;
    line-height: 1.15;
  }

  .company-space-panel__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
  }

  .panel-toolbar .search-field,
  .panel-toolbar select,
  .panel-toolbar button,
  .tickets-toolbar .search-field,
  .tickets-toolbar select,
  .tickets-toolbar button,
  .admin-invoices-toolbar .search-field,
  .admin-invoices-toolbar select,
  .admin-invoices-toolbar button {
    width: 100%;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .admin-dashboard-actions > * {
    width: 100%;
  }

  .admin-dashboard-grid {
    grid-template-columns: 1fr;
  }

  .drawer--report .drawer__footer {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .drawer--report .drawer__footer-actions {
    width: 100%;
    flex-direction: column;
  }

  .drawer--report .drawer__footer-actions .primary-btn,
  .drawer--report .drawer__footer-actions .secondary-btn,
  .drawer--report .drawer__primary {
    width: 100%;
    justify-content: center;
  }

  .drawer--contract .drawer__footer {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .drawer--contract .drawer__footer-actions {
    width: 100%;
    flex-direction: column;
  }

  .drawer--contract .drawer__footer-actions .primary-btn,
  .drawer--contract .drawer__footer-actions .secondary-btn,
  .drawer--contract .drawer__primary {
    width: 100%;
    justify-content: center;
  }

  .contracts-card__header {
    flex-direction: column;
    align-items: flex-start;
  }

  .contracts-card__badges {
    max-width: 100%;
    justify-content: flex-start;
  }

  .contracts-card {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .contracts-card__header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    flex-wrap: nowrap;
  }

  .contracts-card__title {
    white-space: normal;
  }

  .contracts-card__badges {
    max-width: 100%;
    flex-wrap: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .contracts-card__badge {
    white-space: nowrap;
  }

  .contracts-card__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .contract-detail__actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.6rem;
  }

  .contract-doc-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .contract-doc-actions button {
    width: 100%;
  }

  .contract-site-structure__list {
    grid-template-columns: 1fr;
  }

  .contract-structure-card header {
    flex-direction: column;
    align-items: flex-start;
  }

  .contract-structure-card__nested-header {
    flex-direction: column;
    align-items: flex-start;
  }

  /* Contract detail: better fit on small screens. */
  .contract-detail__header {
    align-items: flex-start;
  }

  .contract-detail__title {
    font-size: 1.35rem;
    line-height: 1.15;
    word-break: break-word;
  }

  .contract-detail__reference {
    word-break: break-all;
  }

  .contract-detail__tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
    margin: 1.5rem 0;
  }

  .contract-detail__tabs button {
    width: 100%;
    padding: 0.55rem 0.85rem;
    font-size: 0.92rem;
    text-align: center;
  }

  .contract-detail__section {
    padding: 1.25rem;
  }

  .contract-detail__grid {
    grid-template-columns: 1fr;
  }

  .contract-detail__qr-grid {
    grid-template-columns: 1fr;
  }

  /* Issues: stack list/detail instead of side-by-side. */
  .issues-layout {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .issues-detail {
    min-height: auto;
    padding: 1.25rem;
  }

  .issues-detail__header {
    flex-direction: column;
    align-items: flex-start;
  }

  .issues-detail__meta {
    align-items: flex-start;
    width: 100%;
  }

  .issues-thread {
    max-height: 260px;
  }

  /* Timesheets: avoid overflow on tiny screens. */
  .timesheets-analytics {
    grid-template-columns: 1fr;
  }

  .timesheets-table {
    overflow-x: auto;
  }

  .timesheets-table__row {
    min-width: 620px;
  }
}

@media (max-width: 560px) {
  .company-space-main {
    padding: 1rem;
    padding-top: 4.25rem;
  }

  .company-space-panel {
    padding: 1.25rem;
  }

  .company-space-panel__title {
    font-size: 1.7rem;
  }

  .overview-metrics {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .overview-card {
    padding: 1.25rem;
  }

  .overview-card--revenue {
    grid-column: auto;
  }

  .overview-card__inline {
    gap: 0.9rem;
  }

  .overview-card__value {
    font-size: 1.7rem;
  }

  .overview-card__value--secondary {
    font-size: 1.25rem;
  }

  .issues-message__photos a {
    width: 64px;
    height: 64px;
  }
}

.timesheets-table {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.form-field--upload input[type='file'] {
  display: none;
}

.upload-box {
  border: 1px dashed rgba(17, 60, 104, 0.4);
  border-radius: 1rem;
  padding: 1.75rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(6, 20, 26, 0.6);
  cursor: pointer;
}

.upload-icon {
  font-size: 1.5rem;
  color: #0f3c7a;
}

.upload-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  text-align: center;
  color: rgba(6, 20, 26, 0.7);
}

.upload-box.has-preview {
  border-style: solid;
  background: rgba(17, 60, 104, 0.05);
  padding: 1rem;
}

.upload-placeholder.is-hidden {
  display: none;
}

.upload-preview {
  max-width: 180px;
  max-height: 120px;
  object-fit: contain;
  display: none;
}

.upload-preview.is-visible {
  display: block;
}

.form-field--address {
  position: relative;
}

.address-suggestions {
  position: absolute;
  top: calc(100% + 0.2rem);
  left: 0;
  right: 0;
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(6, 20, 26, 0.15);
  border-radius: 0.85rem;
  background: white;
  box-shadow: 0 20px 35px rgba(6, 20, 26, 0.1);
  max-height: 220px;
  overflow-y: auto;
  display: none;
  z-index: 5;
}

.address-suggestions.is-visible {
  display: block;
}

.address-suggestions li {
  padding: 0.65rem 1rem;
  border-bottom: 1px solid rgba(6, 20, 26, 0.05);
  cursor: pointer;
  font-size: 0.9rem;
  color: rgba(6, 20, 26, 0.8);
}

.address-suggestions li:last-child {
  border-bottom: none;
}

.address-suggestions li:hover {
  background: rgba(17, 60, 104, 0.08);
}

.summary-card {
  border: 1px solid rgba(6, 20, 26, 0.1);
  border-radius: 1.4rem;
  padding: 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.summary-section h4 {
  margin: 0 0 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-size: 0.85rem;
  color: rgba(6, 20, 26, 0.55);
}

.summary-section--logo {
  align-self: flex-start;
}

.summary-list {
  margin: 0;
  padding: 0;
}

.summary-list dt {
  font-size: 0.8rem;
  color: rgba(6, 20, 26, 0.5);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 0.8rem;
}

.summary-list dd {
  margin: 0.1rem 0 0;
  font-weight: 600;
  color: #0f1b28;
}

.summary-contact-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.summary-contact-list li {
  border: 1px solid rgba(6, 20, 26, 0.1);
  border-radius: 1rem;
  padding: 0.9rem;
}

.summary-contact__name {
  margin: 0;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.summary-contact__details {
  margin: 0.2rem 0 0;
  color: rgba(6, 20, 26, 0.65);
  font-size: 0.9rem;
}

.summary-contact--empty {
  border: 1px dashed rgba(6, 20, 26, 0.2);
  border-radius: 1rem;
  padding: 1rem;
  text-align: center;
  color: rgba(6, 20, 26, 0.6);
}

.summary-logo {
  border: 1px dashed rgba(17, 60, 104, 0.3);
  border-radius: 1.2rem;
  padding: 1rem;
  min-height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(17, 60, 104, 0.04);
}

.summary-logo img {
  max-width: 100%;
  max-height: 120px;
  object-fit: contain;
  display: block;
}

.summary-logo__placeholder {
  font-size: 0.9rem;
  color: rgba(6, 20, 26, 0.55);
  text-align: center;
}
.client-details__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid #e5e7ec;
}

.client-details__name {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 600;
}

.client-details__badge {
  margin: 0.2rem 0 0;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(6, 20, 26, 0.6);
}

/* Make the body have a slightly off-white background to contrast with the cards */
.client-details__body {
  background-color: #f8f9fa;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  flex: 1; /* Make it fill the available space */
}

/* Style each section as a card */
.client-details__body section {
  background: #fff;
  border: 1px solid #e5e7ec;
  border-radius: 0.8rem;
  padding: 1.25rem;
  box-shadow: 0 10px 25px rgba(15, 27, 40, 0.03);
}

.client-details__body h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #9aa3af;
  margin: 0 0 1rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #e5e7ec;
}

.client-details__reference {
  font-weight: 600;
  font-size: 1.1rem;
  color: #1a4f7a;
  letter-spacing: 0.1em;
}

.client-details__list {
  display: grid;
  grid-template-columns: 130px 1fr; /* Adjusted label width */
  gap: 1rem; /* Slightly reduced gap */
  margin: 0;
  padding: 0;
}

.client-details__list > div {
  display: contents;
}

.client-details__list dt {
  font-weight: 500;
  color: #7b8a99;
  grid-column: 1 / 2;
  font-size: 0.9rem;
  letter-spacing: normal;
  text-transform: none;
  margin: 0;
  padding-top: 0.15rem; /* Align better with value */
}

.client-details__list dd {
  margin: 0;
  font-weight: 500;
  color: #0f1b28;
  grid-column: 2 / 3;
}
.drawer--contract {
  max-width: 960px;
}
.contract-reference-chip {
  padding: 0.4rem 1.25rem;
  border-radius: 999px;
  border: 1px solid rgba(6, 20, 26, 0.18);
  background: #fff;
  display: inline-flex;
  align-items: center;
  gap: 1.5rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.82rem;
}
.contract-reference-chip__actions {
  display: inline-flex;
  gap: 0.35rem;
}

.contract-detail {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 950;
  display: flex;
  justify-content: flex-end;
}

.contract-detail.is-visible {
  pointer-events: auto;
}

.contract-detail__overlay {
  position: absolute;
  inset: 0;
  background: rgba(6, 20, 26, 0.35);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.contract-detail.is-visible .contract-detail__overlay {
  opacity: 1;
}

.contract-detail__panel {
  position: relative;
  width: calc(100% - var(--app-sidebar-width, 0px));
  max-width: 100%;
  height: 100%;
  background: #f8fbff;
  border-left: 1px solid rgba(6, 20, 26, 0.1);
  padding: 2.5rem;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.4s ease;
}

.contract-detail.is-visible .contract-detail__panel {
  transform: translateX(0);
}

.contract-detail__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.contract-detail__eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  color: rgba(6, 20, 26, 0.55);
}

.contract-detail__title {
  margin: 0.2rem 0;
  font-size: 1.7rem;
  color: #06141a;
}

.contract-detail__reference {
  margin: 0;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: rgba(6, 20, 26, 0.65);
}

.contract-detail__close {
  border: none;
  background: transparent;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  color: rgba(6, 20, 26, 0.6);
}

.contract-detail__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 2rem 0;
}

.contract-detail__tabs button {
  border: 1px solid rgba(6, 20, 26, 0.15);
  background: transparent;
  border-radius: 999px;
  padding: 0.45rem 1.25rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.contract-detail__tabs button.is-active {
  background: linear-gradient(120deg, #133c55, #0c1f2e);
  color: #fff;
  border-color: transparent;
}

.contract-detail__sections {
  position: relative;
  min-height: 400px; /* Adjust as needed to prevent layout jank */
}

.contract-detail__section {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  background: #fff;
  border-radius: 1.2rem;
  padding: 1.75rem;
  box-shadow: 0 25px 50px rgba(12, 28, 44, 0.07);
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  visibility: hidden;
}

.contract-detail__section.is-visible {
  position: relative;
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

.contract-detail__section h4 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.15rem;
}

.contract-detail__section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.contract-detail__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
}

.contract-detail__grid dt {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(6, 20, 26, 0.5);
  margin: 0;
}

.contract-detail__grid dd {
  margin: 0.2rem 0 0;
  font-weight: 600;
  color: #06141a;
}

.contract-detail__actions {
  margin-top: 1.25rem;
  display: flex;
  justify-content: flex-end;
  width: 100%;
}

.contract-detail__actions .is-hidden {
  display: none;
}

.contract-detail__structures {
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contract-detail__structures.is-hidden {
  display: none;
}

.contract-detail__structures-section {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.contract-detail__structures-section h5 {
  margin: 0;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(6, 20, 26, 0.55);
}

.contract-detail__structures-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contract-detail__grid--compact {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.9rem;
}

.contract-detail__placeholder {
  padding: 1rem 1.2rem;
  border-radius: 0.9rem;
  border: 1px dashed rgba(6, 20, 26, 0.3);
  background: rgba(6, 20, 26, 0.02);
  font-size: 0.95rem;
  color: rgba(6, 20, 26, 0.75);
}

.contract-detail__placeholder.is-hidden {
  display: none;
}

.contract-detail__list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contract-documents-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.contract-documents-group__title {
  margin: 0;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(6, 20, 26, 0.58);
}

.contract-detail__item {
  border: 1px solid rgba(6, 20, 26, 0.12);
  border-radius: 1rem;
  padding: 1rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  background: #fefefe;
}

.contract-detail__item > div:first-child {
  flex: 1;
  min-width: 0;
}

.contract-detail__item h5 {
  margin: 0;
  font-size: 1rem;
  color: #06141a;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.contract-detail__item p {
  margin: 0.1rem 0 0;
  color: rgba(6, 20, 26, 0.7);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.contract-detail__item small {
  display: block;
  margin-top: 0.15rem;
  color: rgba(6, 20, 26, 0.55);
  font-size: 0.8rem;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.contract-detail__item-actions {
  display: flex;
  gap: 0.4rem;
}

.contract-detail__item-actions button {
  border: none;
  background: rgba(6, 20, 26, 0.08);
  border-radius: 8px;
  padding: 0.4rem 0.6rem;
  cursor: pointer;
  font-weight: 600;
  color: rgba(6, 20, 26, 0.75);
}

.contract-detail__item-actions button:hover {
  background: rgba(6, 20, 26, 0.15);
}

.contract-detail__chip {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.8rem;
  border-radius: 999px;
  background: rgba(6, 20, 26, 0.08);
  color: rgba(6, 20, 26, 0.7);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contract-detail__module-card {
  border: 1px dashed rgba(6, 20, 26, 0.2);
  border-radius: 16px;
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(6, 20, 26, 0.02), rgba(6, 20, 26, 0.06));
  color: rgba(6, 20, 26, 0.9);
}

.contract-detail__module-card ul {
  margin: 0.8rem 0;
  padding-left: 1.2rem;
  color: rgba(6, 20, 26, 0.75);
  line-height: 1.6;
}

.contract-detail__module-card li::marker {
  color: rgba(56, 103, 214, 0.9);
}

.contract-detail__module-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-top: 1rem;
  font-size: 0.9rem;
  color: rgba(6, 20, 26, 0.65);
}

.contract-detail__module-actions button[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

.is-invalid {
  border-color: rgba(226, 86, 86, 0.6) !important;
  background: rgba(255, 239, 239, 0.9) !important;
  box-shadow: 0 0 0 4px rgba(226, 86, 86, 0.12) !important;
}

.contract-detail__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.2rem 0;
  font-size: 0.85rem;
  color: rgba(6, 20, 26, 0.65);
}

.contract-detail__meta span {
  background: rgba(6, 20, 26, 0.08);
  border-radius: 999px;
  padding: 0.1rem 0.6rem;
}

.contract-detail__note {
  margin: 0.3rem 0 0;
  color: rgba(6, 20, 26, 0.75);
  line-height: 1.4;
  font-size: 0.95rem;
}

.contract-detail__note--pre {
  white-space: pre-line;
}

.contract-detail__tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background: rgba(12, 28, 44, 0.08);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(6, 20, 26, 0.75);
}

.contract-journal {
  margin-top: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  padding-left: 1.45rem;
}

.contract-journal::before {
  content: '';
  position: absolute;
  left: 10px;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 2px;
  border-radius: 999px;
  background: rgba(17, 60, 104, 0.18);
}

.contract-journal__item {
  position: relative;
  display: flex;
  gap: 0.95rem;
  align-items: flex-start;
}

.contract-journal__dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(31, 119, 196, 0.95), rgba(31, 119, 196, 0.45));
  box-shadow: 0 0 0 5px rgba(17, 60, 104, 0.1);
  flex: 0 0 auto;
  margin-top: 0.55rem;
}

.contract-journal__content {
  flex: 1;
  border: 1px solid rgba(6, 20, 26, 0.12);
  border-radius: 1.1rem;
  padding: 0.95rem 1.1rem;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 40px rgba(12, 28, 44, 0.08);
}

.contract-journal__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.contract-journal__date {
  font-size: 0.85rem;
  font-weight: 700;
  color: rgba(6, 20, 26, 0.65);
}

.contract-journal__tags {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.contract-journal__tag {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background: rgba(12, 36, 55, 0.08);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: rgba(6, 20, 26, 0.7);
}

.contract-journal__tag--muted {
  background: rgba(6, 20, 26, 0.07);
  color: rgba(6, 20, 26, 0.6);
}

.contract-journal__title {
  margin: 0.5rem 0 0;
  font-size: 1rem;
  color: #06141a;
}

.contract-journal__desc {
  margin: 0.35rem 0 0;
  color: rgba(6, 20, 26, 0.72);
  font-size: 0.95rem;
  line-height: 1.45;
  white-space: pre-line;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.contract-detail__qr-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

@media (max-width: 520px) {
  .contract-detail__item {
    flex-direction: column;
    align-items: stretch;
  }

  .contract-detail__item-actions {
    width: 100%;
    justify-content: flex-end;
  }
}

.contract-detail__qr-card {
  border: 1px solid rgba(6, 20, 26, 0.1);
  border-radius: 1rem;
  background: #fdfefe;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contract-detail__qr-body {
  padding: 1.25rem;
}

.contract-detail__qr-body h5 {
  margin: 0;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  color: rgba(6, 20, 26, 0.65);
}

.contract-detail__qr-ref {
  margin: 0.4rem 0 1rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #06141a;
}

.contract-detail__qr-body img {
  width: 100%;
  border-radius: 0.8rem;
  background: #fff;
  border: 1px solid rgba(6, 20, 26, 0.08);
}

.contract-detail__qr-actions {
  padding: 1rem 1.25rem;
  border-top: 1px solid rgba(6, 20, 26, 0.06);
  display: flex;
  justify-content: flex-end;
}

.contract-detail__qr-actions button {
  border: none;
  background: linear-gradient(120deg, #0a66c2, #0f8dd9);
  color: #fff;
  border-radius: 999px;
  padding: 0.45rem 1.2rem;
  cursor: pointer;
  font-weight: 600;
}

.contract-detail__hint {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: rgba(6, 20, 26, 0.6);
}

/* Contract detail / Issues / Timesheets: mobile-first overrides.
   Keep this block after the base styles so it wins in the cascade. */
@media (max-width: 900px) {
  .contract-detail__overlay {
    background: rgba(6, 20, 26, 0.55);
  }

  .contract-detail__panel {
    width: 100vw;
    max-width: 100vw;
    padding: 1.75rem 1.5rem;
    border-left: none;
  }

  .timesheets-filters {
    grid-template-columns: 1fr;
  }

  .timesheets-card {
    padding: 1.25rem;
  }

  .contract-detail__tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
    margin: 1.5rem 0;
  }

  .contract-detail__tabs button {
    width: 100%;
    padding: 0.55rem 0.85rem;
    text-align: center;
  }

  .issues-layout {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .timesheets-analytics {
    grid-template-columns: 1fr;
  }

  .timesheets-card__controls {
    flex-direction: column;
    align-items: stretch;
  }

  .timesheets-card__controls input,
  .timesheets-card__controls select {
    width: 100%;
    min-width: 0;
  }

  .timesheets-card__controls button {
    width: 100%;
  }

  .timesheets-graph-card__header {
    flex-direction: column;
    align-items: flex-start;
  }

  .timesheets-graph-legend {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}

.contract-doc-form {
  display: none;
  margin-bottom: 1.5rem;
}

.contract-doc-form.is-visible {
  display: block;
}

.contract-doc-card {
  border: 1px solid rgba(6, 20, 26, 0.12);
  border-radius: 1rem;
  padding: 1.5rem;
  background: #fefefe;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contract-doc-field span {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(6, 20, 26, 0.55);
  display: block;
  margin-bottom: 0.35rem;
}

.contract-doc-field input {
  width: 100%;
  border-radius: 0.8rem;
  border: 1px solid rgba(6, 20, 26, 0.2);
  padding: 0.85rem;
  font-size: 1rem;
}

.contract-doc-field textarea {
  width: 100%;
  border-radius: 0.8rem;
  border: 1px solid rgba(6, 20, 26, 0.2);
  padding: 0.85rem;
  font-size: 1rem;
  min-height: 130px;
  line-height: 1.4;
  resize: none;
}

[data-autogrow] {
  overflow: hidden;
}

.contract-doc-dropzone {
  border: 2px dashed rgba(6, 20, 26, 0.25);
  border-radius: 1rem;
  padding: 1.75rem;
  text-align: center;
  background: rgba(6, 20, 26, 0.02);
  position: relative;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.contract-doc-dropzone.is-active {
  border-color: #0a66c2;
  background: rgba(10, 102, 194, 0.08);
}

.contract-doc-dropzone input {
  opacity: 0;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.contract-doc-dropzone__icon {
  font-size: 2rem;
  margin-bottom: 0.4rem;
}

.contract-doc-dropzone__title {
  margin: 0;
  font-weight: 600;
}

.contract-doc-dropzone__hint {
  margin: 0.2rem 0 0;
  color: rgba(6, 20, 26, 0.6);
  font-size: 0.95rem;
}

.contract-doc-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
}

.contract-doc-actions button {
  border: none;
  border-radius: 999px;
  padding: 0.55rem 1.4rem;
  font-weight: 600;
  cursor: pointer;
}

.contract-doc-actions button:not(.primary-btn) {
  background: rgba(6, 20, 26, 0.08);
  color: rgba(6, 20, 26, 0.75);
}

.contract-doc-toast {
  position: fixed;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  background: #133c55;
  color: #fff;
  padding: 0.85rem 1.8rem;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.04em;
  box-shadow: 0 15px 40px rgba(19, 60, 85, 0.35);
  transition: transform 0.35s ease;
  z-index: 1200;
}

.contract-doc-toast.is-visible {
  transform: translate(-50%, 120px);
}

.contract-doc-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: none;
  align-items: center;
  justify-content: center;
}

.contract-doc-modal.is-visible {
  display: flex;
}

.contract-doc-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(6, 20, 26, 0.45);
}

.contract-doc-modal__card {
  position: relative;
  background: #fff;
  border-radius: 1.2rem;
  padding: 1.75rem;
  width: min(420px, calc(100% - 2rem));
  box-shadow: 0 30px 90px rgba(6, 20, 26, 0.25);
  z-index: 1;
}

.contract-doc-modal__card h4 {
  margin: 0;
  font-size: 1.2rem;
}

.contract-doc-modal__card p {
  margin: 0.8rem 0 1.5rem;
  color: rgba(6, 20, 26, 0.75);
}

.contract-doc-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
}

.contract-doc-modal__actions button {
  border: none;
  border-radius: 999px;
  padding: 0.55rem 1.4rem;
  font-weight: 600;
  cursor: pointer;
}

.contract-doc-modal__actions .danger-btn {
  background: #b53131;
  color: #fff;
}

/* -------------------------------------------------------------------------- */
/* Contract letter modal (company space) */
/* -------------------------------------------------------------------------- */

.contract-letter-modal {
  position: fixed;
  inset: 0;
  z-index: 1130;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.contract-letter-modal.is-visible {
  display: flex;
}

.contract-letter-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(6, 20, 26, 0.45);
}

.contract-letter-modal__card {
  position: relative;
  width: min(1120px, calc(100% - 1.5rem));
  max-height: calc(100vh - 2rem);
  border-radius: 1.4rem;
  background: #fff;
  box-shadow: 0 35px 110px rgba(6, 20, 26, 0.28);
  z-index: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.contract-letter-modal__header {
  padding: 1.25rem 1.4rem;
  border-bottom: 1px solid rgba(6, 20, 26, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.contract-letter-modal__eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 700;
  font-size: 0.72rem;
  color: rgba(6, 20, 26, 0.55);
}

.contract-letter-modal__title {
  margin: 0.35rem 0 0.2rem;
  font-size: 1.25rem;
}

.contract-letter-modal__meta {
  margin: 0;
  color: rgba(6, 20, 26, 0.65);
  font-weight: 600;
}

.contract-letter-modal__close {
  border: none;
  background: rgba(6, 20, 26, 0.06);
  color: rgba(6, 20, 26, 0.8);
  border-radius: 0.9rem;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  cursor: pointer;
}

.contract-letter-modal__grid {
  padding: 1.25rem 1.4rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.1rem;
  overflow: auto;
}

.contract-letter-modal__section-head h5 {
  margin: 0;
  font-size: 1rem;
}

.contract-letter-modal__section-head p {
  margin: 0.45rem 0 0;
  color: rgba(6, 20, 26, 0.68);
  font-weight: 600;
}

.contract-letter-modal__section-head code {
  font-weight: 800;
}

.contract-letter-modal__editor {
  min-width: 0;
  display: grid;
  gap: 0.75rem;
  align-content: start;
}

.contract-letter-form {
  display: grid;
  gap: 0.75rem;
}

.contract-letter-field {
  display: grid;
  gap: 0.4rem;
  min-width: 0;
}

.contract-letter-field > span {
  font-size: 0.82rem;
  font-weight: 800;
  color: rgba(6, 20, 26, 0.72);
}

.contract-letter-field input[type='text'] {
  width: 100%;
  border-radius: 0.95rem;
  border: 1px solid rgba(6, 20, 26, 0.16);
  padding: 0.75rem 0.95rem;
  font: inherit;
  font-size: 0.98rem;
  line-height: 1.4;
  background: rgba(248, 250, 252, 0.9);
  color: rgba(6, 20, 26, 0.92);
  outline: none;
}

.contract-letter-field input[type='text']:focus {
  border-color: rgba(17, 60, 104, 0.5);
  box-shadow: 0 0 0 4px rgba(17, 60, 104, 0.12);
}

.contract-letter-modal__textarea {
  width: 100%;
  min-height: clamp(240px, 32vh, 440px);
  resize: vertical;
  border-radius: 1rem;
  border: 1px solid rgba(6, 20, 26, 0.16);
  padding: 0.95rem 1rem;
  font: inherit;
  font-size: 0.98rem;
  line-height: 1.5;
  background: rgba(248, 250, 252, 0.9);
  color: rgba(6, 20, 26, 0.92);
  outline: none;
}

.contract-letter-modal__textarea:focus {
  border-color: rgba(17, 60, 104, 0.5);
  box-shadow: 0 0 0 4px rgba(17, 60, 104, 0.12);
}

.contract-letter-modal__hint {
  margin: 0;
  color: rgba(6, 20, 26, 0.6);
  font-size: 0.92rem;
  font-weight: 600;
}

.contract-letter-signature {
  display: grid;
  gap: 0.75rem;
  padding-top: 0.2rem;
}

.contract-letter-signature__controls {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: flex-end;
}

.contract-letter-signature__file {
  display: grid;
  gap: 0.35rem;
  flex: 1;
  min-width: 220px;
}

.contract-letter-signature__file > span {
  font-size: 0.82rem;
  font-weight: 800;
  color: rgba(6, 20, 26, 0.72);
}

.contract-letter-signature__file input[type='file'] {
  width: 100%;
  font: inherit;
  font-size: 0.92rem;
  color: rgba(6, 20, 26, 0.7);
}

.contract-letter-signature__pad {
  margin: 0;
}

.contract-letter-signature__pad .report-signature__canvas {
  width: 100%;
  height: auto;
}

.contract-letter-signature__thumb {
  width: min(280px, 100%);
  max-height: 88px;
  object-fit: contain;
  border-radius: 0.95rem;
  border: 1px solid rgba(6, 20, 26, 0.12);
  background: rgba(248, 250, 252, 0.9);
  padding: 0.45rem 0.65rem;
}

.contract-letter-modal__preview {
  min-width: 0;
  display: grid;
  gap: 0.75rem;
  align-content: start;
}

.contract-letter-preview {
  border-radius: 1.25rem;
  border: 1px solid rgba(6, 20, 26, 0.1);
  background: rgba(248, 250, 252, 0.82);
  box-shadow: 0 22px 60px rgba(6, 20, 26, 0.1);
  padding: 1.1rem;
  display: grid;
  gap: 0.85rem;
  min-width: 0;
}

.letter-paper {
  --letter-accent: #113c68;
  width: 100%;
  border-radius: 1.15rem;
  border: 1px solid rgba(6, 20, 26, 0.1);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 20px 55px rgba(6, 20, 26, 0.08);
  padding: 1.2rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
}

.quote-preview-frame {
  position: relative;
  margin: 0 auto;
  max-width: 100%;
  min-height: 320px;
}

.quote-paper {
  position: absolute;
  top: 0;
  left: 0;
  width: 210mm;
  min-height: 297mm;
  padding: 0;
  gap: 0.85rem;
  border-radius: 0.35rem;
  background: #ffffff;
}

.quote-paper .letter-paper__top,
.quote-paper .letter-paper__meta,
.quote-paper .letter-paper__body,
.quote-paper .letter-paper__footer {
  padding-left: 14mm;
  padding-right: 14mm;
}

.quote-paper .letter-paper__top {
  padding-top: 14mm;
  padding-bottom: 6mm;
}

.quote-paper .letter-paper__top {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 1.25rem;
  flex-wrap: unset;
}

.quote-paper__right {
  display: grid;
  justify-items: end;
  gap: 1.05rem;
}

.quote-paper[data-layout='envelope'] .letter-paper__top {
  min-height: 90mm;
  position: relative;
}

.quote-paper .letter-paper__sender {
  max-width: 95mm;
  flex-direction: column;
  gap: 0.6rem;
  align-items: flex-start;
}

.quote-paper .letter-paper__logo {
  width: 160px;
  height: 72px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.quote-paper .quote-logo-placeholder {
  width: 160px;
  height: 72px;
  border-radius: 0.6rem;
}

.quote-paper[data-layout='envelope'] .letter-paper__recipient {
  position: absolute;
  top: 45mm;
  right: 14mm;
  width: 85mm;
  height: 35mm;
  margin-left: 0;
  background: #ffffff;
  border: 1px solid #e5e7ec;
  border-radius: 10px;
  padding: 5mm 6mm;
  box-shadow: none;
}

.quote-paper .letter-paper__meta {
  padding-top: 6mm;
  padding-bottom: 6mm;
  border-top: 1px solid #d9d9d9;
}

.quote-paper .letter-paper__footer {
  display: block;
  justify-content: initial;
  padding-top: 10mm;
  padding-bottom: 14mm;
  border-top: 1px solid #d9d9d9;
}

.quote-footer {
  display: grid;
  gap: 10mm;
}

.quote-footer__signature {
  margin-left: auto;
  max-width: 220px;
  width: 100%;
  text-align: right;
  display: grid;
  gap: 0.55rem;
}

.quote-footer__signature-line {
  width: 150px;
  height: 55px;
  border-bottom: 1px solid rgba(6, 20, 26, 0.35);
  justify-self: end;
}

.quote-footer__conditions-title {
  font-weight: 900;
  color: rgba(6, 20, 26, 0.9);
  margin-bottom: 0.25rem;
}

.quote-footer .invoice-conditions {
  margin-top: 0;
}

.letter-paper__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.letter-paper__sender {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  min-width: 0;
  flex: 1;
}

.letter-paper__logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
  border-radius: 0.95rem;
  background: rgba(17, 60, 104, 0.06);
  padding: 0.35rem;
  border: 1px solid rgba(6, 20, 26, 0.08);
  flex: none;
}

.letter-paper__sender-block {
  min-width: 0;
}

.letter-paper__sender-name {
  display: block;
  color: var(--letter-accent);
  font-weight: 900;
  letter-spacing: 0.01em;
}

.letter-paper__sender-address {
  display: block;
  margin-top: 0.15rem;
  color: rgba(6, 20, 26, 0.62);
  font-weight: 600;
  font-size: 0.92rem;
  line-height: 1.35;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.letter-paper__recipient {
  width: min(330px, 100%);
  border-radius: 1.05rem;
  border: 1px solid rgba(6, 20, 26, 0.12);
  background: #ffffff;
  padding: 0.85rem 0.95rem;
  display: grid;
  gap: 0.15rem;
  margin-left: auto;
  min-width: 0;
  min-height: 96px;
}

.letter-paper__recipient strong {
  display: block;
  color: rgba(6, 20, 26, 0.9);
  overflow-wrap: anywhere;
}

.letter-paper__recipient span {
  display: block;
  color: rgba(6, 20, 26, 0.66);
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1.35;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.letter-paper__recipient-co {
  margin-top: 0.35rem;
  color: rgba(6, 20, 26, 0.78);
  font-weight: 800;
}

.letter-paper__recipient-ref {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.82rem;
  color: rgba(6, 20, 26, 0.58);
  font-weight: 650;
}

.letter-paper__meta {
  padding-top: 0.35rem;
  border-top: 1px solid rgba(6, 20, 26, 0.08);
  display: grid;
  gap: 0.35rem;
}

.letter-paper__line {
  font-weight: 650;
  font-size: 0.92rem;
  color: rgba(6, 20, 26, 0.78);
  overflow-wrap: anywhere;
}

.letter-paper__line--subject {
  font-weight: 900;
  color: rgba(6, 20, 26, 0.92);
}

.letter-paper__body {
  flex: 1;
  font-size: 0.94rem;
  line-height: 1.65;
  color: rgba(6, 20, 26, 0.84);
  overflow-wrap: anywhere;
}

.letter-paper__body p {
  margin: 0 0 0.85rem;
}

.letter-paper__body p:last-child {
  margin-bottom: 0;
}

.letter-paper__footer {
  padding-top: 0.5rem;
  border-top: 1px solid rgba(6, 20, 26, 0.08);
  display: flex;
  justify-content: flex-end;
}

.letter-paper__signature {
  text-align: right;
  display: grid;
  gap: 0.55rem;
  max-width: 280px;
  width: 100%;
}

.letter-paper__signature strong {
  color: rgba(6, 20, 26, 0.9);
}

.letter-paper__signature-img {
  width: 170px;
  max-width: 100%;
  max-height: 64px;
  object-fit: contain;
  justify-self: end;
  border-radius: 0.6rem;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(6, 20, 26, 0.08);
  padding: 0.25rem 0.45rem;
}

.contract-letter-preview__header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.contract-letter-preview__logo {
  width: 54px;
  height: 54px;
  object-fit: contain;
  border-radius: 0.9rem;
  background: rgba(17, 60, 104, 0.06);
  padding: 0.35rem;
  border: 1px solid rgba(6, 20, 26, 0.08);
}

.contract-letter-preview__company strong {
  display: block;
  color: rgba(6, 20, 26, 0.92);
}

.contract-letter-preview__company span {
  display: block;
  margin-top: 0.15rem;
  color: rgba(6, 20, 26, 0.62);
  font-weight: 600;
  font-size: 0.92rem;
}

.contract-letter-preview__body {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: rgba(6, 20, 26, 0.86);
  font: inherit;
  line-height: 1.55;
  background: rgba(248, 250, 252, 0.72);
  border: 1px solid rgba(6, 20, 26, 0.08);
  border-radius: 1rem;
  padding: 0.95rem 1rem;
  min-height: 240px;
}

.contract-letter-modal__actions {
  padding: 1.05rem 1.4rem 1.25rem;
  border-top: 1px solid rgba(6, 20, 26, 0.08);
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  .contract-letter-modal__grid {
    grid-template-columns: 1fr;
  }

  .contract-letter-modal__actions {
    justify-content: stretch;
  }

  .contract-letter-modal__actions .primary-btn,
  .contract-letter-modal__actions .secondary-btn {
    width: 100%;
  }
}

.collab-picker-modal {
  position: fixed;
  inset: 0;
  z-index: 1310;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.collab-picker-modal.is-visible {
  display: flex;
}

.collab-picker-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(6, 20, 26, 0.38);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.collab-picker-modal__card {
  position: relative;
  z-index: 1;
  width: min(720px, calc(100% - 2rem));
  max-height: min(520px, calc(100vh - 3rem));
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 1.2rem;
  box-shadow: 0 30px 90px rgba(6, 20, 26, 0.25);
}

.collab-picker-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem 1.5rem 0.9rem;
  border-bottom: 1px solid rgba(6, 20, 26, 0.08);
}

.collab-picker-modal__header h4 {
  margin: 0;
  font-size: 1.2rem;
}

.collab-picker-modal__close {
  border: none;
  background: transparent;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  color: rgba(6, 20, 26, 0.65);
}

.collab-picker-modal__search {
  padding: 1rem 1.5rem 0.8rem;
  border-bottom: 1px solid rgba(6, 20, 26, 0.08);
}

.collab-picker-modal__search input {
  width: 100%;
  border: 1px solid rgba(6, 20, 26, 0.18);
  border-radius: 999px;
  padding: 0.65rem 1rem;
  outline: none;
}

.collab-picker-modal__search input:focus {
  border-color: rgba(11, 37, 63, 0.6);
  box-shadow: 0 0 0 3px rgba(11, 37, 63, 0.12);
}

.collab-picker-modal__empty {
  margin: 1.2rem 1.5rem;
  color: rgba(6, 20, 26, 0.65);
}

.collab-picker-modal__empty.is-hidden {
  display: none;
}

.collab-picker-modal__list {
  padding: 0.5rem 1.5rem 1.2rem;
  overflow: auto;
  display: grid;
  gap: 0.65rem;
}

.collab-picker-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(6, 20, 26, 0.12);
  border-radius: 1rem;
  background: rgba(248, 251, 255, 0.8);
}

.collab-picker-card h5 {
  margin: 0;
  font-size: 1rem;
  color: #06141a;
}

.collab-picker-card p {
  margin: 0.35rem 0 0;
  font-size: 0.88rem;
  color: rgba(6, 20, 26, 0.7);
}

.collab-picker-card__meta {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.collab-picker-card__meta span {
  font-size: 0.75rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: rgba(6, 20, 26, 0.08);
  color: rgba(6, 20, 26, 0.75);
}

.collab-picker-card__actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.collab-picker-card__actions button {
  border: none;
  border-radius: 999px;
  padding: 0.55rem 1.2rem;
  font-weight: 700;
  cursor: pointer;
  background: #0b253f;
  color: #fff;
}

.collab-picker-card__actions button[disabled] {
  background: rgba(6, 20, 26, 0.18);
  cursor: not-allowed;
  color: rgba(6, 20, 26, 0.55);
}

.camera-modal {
  position: fixed;
  inset: 0;
  z-index: 1130;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.camera-modal.is-visible {
  display: flex;
}

.camera-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(6, 20, 26, 0.38);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.camera-modal__card {
  position: relative;
  z-index: 1;
  width: min(720px, calc(100% - 2rem));
  background: #fff;
  border-radius: 1.2rem;
  box-shadow: 0 30px 90px rgba(6, 20, 26, 0.25);
  overflow: hidden;
}

.camera-modal__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 1.5rem 0.9rem;
  border-bottom: 1px solid rgba(6, 20, 26, 0.08);
}

.camera-modal__header h4 {
  margin: 0;
  font-size: 1.2rem;
}

.camera-modal__close {
  border: none;
  background: transparent;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  color: rgba(6, 20, 26, 0.65);
}

.camera-modal__body {
  padding: 1rem 1.5rem 0.2rem;
}

.camera-modal__body video {
  width: 100%;
  max-height: 60vh;
  border-radius: 1rem;
  background: #06141a;
}

.camera-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
  padding: 1rem 1.5rem 1.4rem;
  border-top: 1px solid rgba(6, 20, 26, 0.08);
}
.contract-reference-chip__actions button {
  border: 1px solid rgba(6, 20, 26, 0.2);
  border-radius: 999px;
  padding: 0.25rem 0.9rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  background: transparent;
  transition: background 0.2s ease, color 0.2s ease, border 0.2s ease;
}
.contract-reference-chip__actions button.is-active {
  background: #0b253f;
  color: #fff;
  border-color: #0b253f;
}
.contract-stepper {
  margin: 1.5rem auto 0;
  max-width: 520px;
}
.contract-stepper__track {
  position: relative;
  height: 6px;
  border-radius: 999px;
  background: rgba(6, 20, 26, 0.15);
  overflow: hidden;
}
.contract-stepper__progress {
  position: absolute;
  inset: 0;
  width: 0%;
  background: linear-gradient(90deg, #123047, #1c4d74);
  transition: width 0.35s ease;
}
.contract-stepper__stages {
  display: flex;
  justify-content: space-between;
  margin-top: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
}
.contract-stepper__stage {
  position: relative;
  padding-top: 1.75rem;
  color: rgba(6, 20, 26, 0.55);
}
.contract-stepper__stage::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid rgba(6, 20, 26, 0.3);
  background: #fff;
  box-shadow: 0 10px 20px rgba(6, 20, 26, 0.15);
  transition: border 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}
.contract-stepper__stage::after {
  content: 'o"';
  position: absolute;
  top: 2px;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.4);
  opacity: 0;
  color: #fff;
  font-weight: 600;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.contract-stepper__stage.is-active {
  color: #0b253f;
  font-weight: 600;
}
.contract-stepper__stage.is-active::before {
  border-color: #1c4d74;
  background: radial-gradient(circle at 35% 35%, #2f6a9c, #0d2f50);
  box-shadow: 0 12px 25px rgba(13, 47, 80, 0.35);
}
.contract-stepper__stage.is-completed {
  color: #0b253f;
}
.contract-stepper__stage.is-completed::before {
  border-color: #0b253f;
  background: radial-gradient(circle at 35% 35%, #0b253f, #173a57);
  box-shadow: 0 0 0 6px rgba(13, 47, 80, 0.2);
}
.contract-stepper__stage.is-completed::after {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
.contract-client-search input {
  width: 100%;
  border-radius: 0.9rem;
  border: 1px solid rgba(6, 20, 26, 0.2);
  padding: 0.9rem 1.2rem;
  font-size: 1rem;
}
.contract-client-list {
  margin-top: 1.25rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}
.contract-client-card {
  border-radius: 1rem;
  border: 1px solid rgba(6, 20, 26, 0.15);
  padding: 1rem;
  cursor: pointer;
  background: #fff;
  box-shadow: 0 12px 30px rgba(6, 20, 26, 0.08);
  transition: border 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.contract-client-card p {
  margin: 0.15rem 0 0;
  color: rgba(6, 20, 26, 0.65);
  font-size: 0.9rem;
}
.contract-client-card strong {
  display: block;
  margin-top: 0.2rem;
}
.contract-client-card.is-selected {
  border-color: #1a4f7a;
  box-shadow: 0 20px 40px rgba(26, 79, 122, 0.2);
  transform: translateY(-3px);
}
.contract-client-empty {
  margin-top: 0.75rem;
  color: rgba(6, 20, 26, 0.6);
}
.contract-form {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.contract-form__section {
  background: rgba(255, 255, 255, 0.85);
  border-radius: 1.1rem;
  border: 1px solid rgba(6, 20, 26, 0.08);
  padding: 1.5rem;
  box-shadow: 0 20px 45px rgba(6, 20, 26, 0.08);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.contract-form__hint {
  margin: 0;
  color: rgba(6, 20, 26, 0.6);
  font-size: 0.9rem;
}
.contract-form__reference {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  align-items: end;
}
.contract-form__reference input {
  width: 100%;
  border-radius: 0.65rem;
  border: 1px solid rgba(6, 20, 26, 0.2);
  padding: 0.85rem;
  font-size: 1rem;
}
.contract-form__reference-value {
  padding: 0.9rem 1.1rem;
  border-radius: 0.8rem;
  background: rgba(6, 20, 26, 0.05);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.contract-form__selected-client {
  padding: 0.9rem 1.1rem;
  border-radius: 0.8rem;
  background: rgba(6, 20, 26, 0.04);
}
.form-required {
  color: #c53030;
  font-weight: 600;
  font-size: 0.85em;
  margin-left: 0.25rem;
}
.contract-form .form-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.contract-form .form-field input,
.contract-form .form-field select,
.contract-form .form-field textarea {
  border-radius: 0.65rem;
  border: 1px solid rgba(6, 20, 26, 0.2);
  padding: 0.85rem;
  font-size: 1rem;
}

.drawer--report .form-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.drawer--report .form-field input,
.drawer--report .form-field select,
.drawer--report .form-field textarea {
  width: 100%;
  border-radius: 0.95rem;
  border: 1px solid rgba(6, 20, 26, 0.14);
  padding: 0.9rem 1.15rem;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: inset 0 1px 2px rgba(6, 20, 26, 0.05);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  font-size: 1rem;
}

.drawer--report .form-field input:focus,
.drawer--report .form-field select:focus,
.drawer--report .form-field textarea:focus {
  border-color: #0d3258;
  box-shadow: 0 0 0 1px rgba(13, 50, 88, 0.15), 0 10px 22px rgba(13, 47, 80, 0.12);
  outline: none;
}

.drawer--report .form-field textarea {
  resize: vertical;
  min-height: 90px;
}

.form__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.9rem;
  align-items: start;
}

.contract-form__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}
.contract-form__notice {
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(226, 232, 240, 0.35);
  color: #0f172a;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0.75rem 0 1rem;
}
.contract-form__contacts {
  border-top: 1px solid rgba(6, 20, 26, 0.08);
  padding-top: 1rem;
}
.contract-form__contacts-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}
.contract-form__contacts-list {
  display: grid;
  gap: 0.75rem;
}
.contract-site-structure {
  border-top: 1px solid rgba(6, 20, 26, 0.08);
  padding-top: 1rem;
  display: grid;
  gap: 1.25rem;
}
.contract-site-structure__section {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.contract-site-structure__section h5 {
  margin: 0;
  font-size: 1rem;
}
.contract-site-structure__list {
  display: grid;
  gap: 0.75rem;
}
.contract-structure-card {
  border-radius: 1rem;
  border: 1px solid rgba(6, 20, 26, 0.12);
  background: rgba(6, 20, 26, 0.02);
  padding: 1rem;
  display: grid;
  gap: 0.85rem;
}
.contract-structure-card header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}
.contract-structure-card h6 {
  margin: 0;
  font-size: 0.95rem;
}
.contract-structure-card__meta {
  color: rgba(6, 20, 26, 0.6);
  font-size: 0.85rem;
}

.contract-structure-card__hint {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(6, 20, 26, 0.7);
}

.contract-structure-card__nested {
  border-top: 1px solid rgba(6, 20, 26, 0.1);
  padding-top: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.contract-structure-card__nested-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.contract-structure-card__subtitle {
  margin: 0;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(6, 20, 26, 0.55);
}

.contract-structure-card__nested-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.contract-structure-card--nested {
  padding: 0.85rem;
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.6);
  position: relative;
}

.contract-structure-card__remove {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  border: 1px solid rgba(6, 20, 26, 0.15);
  background: rgba(255, 255, 255, 0.8);
  color: rgba(6, 20, 26, 0.7);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 120ms ease, background 120ms ease;
}

.contract-structure-card__remove:hover {
  background: rgba(255, 255, 255, 1);
  transform: scale(1.04);
}

.contract-structure-card__remove:active {
  transform: scale(0.96);
}

.contract-detail__structure-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  padding: 0.35rem 0;
  border-top: 1px solid rgba(6, 20, 26, 0.08);
}

.contract-detail__structure-line:first-child {
  border-top: 0;
  padding-top: 0;
}

.contract-detail__structure-line span {
  color: rgba(6, 20, 26, 0.65);
  font-weight: 600;
}

@media (max-width: 768px) {
  .contract-form__grid,
  .contract-contact-card,
  .contract-zoning__row {
    grid-template-columns: 1fr;
  }

  .contract-detail__grid--compact {
    grid-template-columns: 1fr;
  }

  .contract-detail__structure-line {
    flex-direction: column;
    align-items: flex-start;
  }

  .contract-structure-card__remove {
    top: 0.4rem;
    right: 0.4rem;
  }
}

.contract-zoning {
  border-top: 1px solid rgba(6, 20, 26, 0.08);
  padding-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.contract-zoning__header h5 {
  margin: 0;
  font-size: 1rem;
}
.contract-zoning__header .contract-form__hint {
  margin-top: 0.35rem;
}
.contract-zoning__grid {
  display: grid;
  gap: 0.85rem;
}
.contract-zoning__row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)) auto;
  gap: 0.75rem;
  align-items: end;
}
.contract-zoning__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.contract-zoning__chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(6, 20, 26, 0.12);
  background: rgba(6, 20, 26, 0.03);
  font-size: 0.9rem;
}
.contract-zoning__chip button {
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  padding: 0;
  color: rgba(6, 20, 26, 0.55);
}
.contract-zoning__chip button:hover {
  color: rgba(6, 20, 26, 0.9);
}
.contract-contact-card {
  border-radius: 0.9rem;
  border: 1px dashed rgba(6, 20, 26, 0.2);
  padding: 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
  position: relative;
}
.contract-contact-card button[data-contract-remove-contact] {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  border: none;
  background: transparent;
  font-size: 1.05rem;
  cursor: pointer;
  color: rgba(6, 20, 26, 0.6);
}
.contract-amount-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
}
.contract-amount-cards article {
  border-radius: 0.85rem;
  border: 1px solid rgba(6, 20, 26, 0.12);
  padding: 1rem;
  background: rgba(6, 20, 26, 0.03);
}
.contract-amount-cards strong {
  font-size: 1.2rem;
}
.contract-success {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  background: linear-gradient(135deg, #0d4424, #13813f);
  color: #fff;
  padding: 1rem 1.5rem;
  border-radius: 1rem;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 140;
}
.contract-success.is-visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
.drawer--collaborator {
  width: 90vw;
  max-width: 820px;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.collab-reference-chip {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.75rem 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(6, 20, 26, 0.15);
  background: rgba(6, 20, 26, 0.03);
  letter-spacing: 0.08em;
}

.collab-reference-chip span {
  font-size: 0.75rem;
  color: rgba(6, 20, 26, 0.55);
  text-transform: uppercase;
}

.collab-stepper {
  padding: 1rem 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.collab-stepper__track {
  width: 100%;
  height: 4px;
  border-radius: 999px;
  background: rgba(6, 20, 26, 0.1);
  position: relative;
}

.collab-stepper__progress {
  position: absolute;
  inset: 0;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(120deg, #0a2236, #1f4d70);
  transition: width 0.3s ease;
}

.collab-stepper__stages {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(6, 20, 26, 0.45);
}

.collab-stepper__stage.is-active {
  color: #0d2c44;
  font-weight: 600;
}

.collab-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.collab-form__section {
  border-radius: 1.1rem;
  border: 1px solid rgba(6, 20, 26, 0.1);
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(247, 249, 252, 0.95));
  box-shadow: 0 25px 55px rgba(6, 20, 26, 0.08);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.collab-form__section h4 {
  margin: 0;
  font-size: 1.05rem;
  color: #06141a;
}

.collab-form__section-heading h4 {
  font-size: 1.15rem;
  margin-bottom: 0.2rem;
}

.collab-form__section-heading p {
  margin: 0;
  color: rgba(6, 20, 26, 0.6);
  font-size: 0.92rem;
}

.collab-contact-grid,
.collab-contract-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.collab-form small {
  color: rgba(6, 20, 26, 0.6);
  font-weight: 400;
}

.collab-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.collab-summary .summary-section {
  border-radius: 1rem;
  border: 1px solid rgba(6, 20, 26, 0.08);
  background: rgba(255, 255, 255, 0.9);
  padding: 1rem;
  box-shadow: 0 15px 35px rgba(6, 20, 26, 0.08);
}

.collab-summary .summary-section h5 {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(6, 20, 26, 0.55);
}
.collab-form__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.drawer--collaborator .form-field span {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(6, 20, 26, 0.55);
}

.drawer--collaborator .form-field input,
.drawer--collaborator .form-field select,
.drawer--collaborator .form-field textarea {
  width: 100%;
  border-radius: 0.95rem;
  border: 1px solid rgba(6, 20, 26, 0.14);
  padding: 0.9rem 1.1rem;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: inset 0 1px 2px rgba(6, 20, 26, 0.05);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  font-size: 1rem;
}

.drawer--collaborator .form-field input:focus,
.drawer--collaborator .form-field select:focus,
.drawer--collaborator .form-field textarea:focus {
  border-color: #0d3258;
  box-shadow: 0 0 0 1px rgba(13, 50, 88, 0.15), 0 8px 20px rgba(13, 47, 80, 0.12);
  outline: none;
}

.drawer--collaborator .form-field small {
  text-transform: none;
  letter-spacing: normal;
}
.page--gateway .gateway-footer {
  margin-top: auto;
}

/* Modern stepper styles */
:is(.client-stepper, .contract-stepper, .report-stepper, .collab-stepper) {
  --stepper-track: rgba(8, 22, 36, 0.12);
  --stepper-active: #0d3a5e;
  --stepper-progress: linear-gradient(90deg, #0d3a5e 0%, #1b6a94 45%, #1fe080 100%);
  --stepper-dot: #f1f4f9;
  --stepper-dot-border: rgba(12, 28, 44, 0.2);
  --stepper-done-bg: #e9fff1;
  --stepper-done-border: #25e07a;
  --stepper-done-icon: #14e06f;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 248, 252, 0.96));
  border-radius: 1.15rem;
  border: 1px solid rgba(9, 20, 35, 0.08);
  padding: 1.1rem 1.4rem 1.2rem;
  box-shadow: 0 22px 50px rgba(7, 20, 35, 0.08);
  width: 100%;
  max-width: 100%;
  margin: 1.1rem 0 0;
}

:is(.client-stepper__track, .contract-stepper__track, .report-stepper__track, .collab-stepper__track) {
  height: 8px;
  background: var(--stepper-track);
  border-radius: 999px;
  position: relative;
  overflow: hidden;
  max-width: 100%;
  margin: 0;
}

:is(.client-stepper__progress, .contract-stepper__progress, .report-stepper__progress, .collab-stepper__progress) {
  height: 100%;
  border-radius: 999px;
  background: var(--stepper-progress);
  box-shadow: 0 6px 16px rgba(31, 224, 128, 0.3);
}

:is(.client-stepper__stages, .contract-stepper__stages, .report-stepper__stages, .collab-stepper__stages) {
  display: flex;
  justify-content: space-between;
  margin-top: 1rem;
  gap: 0.65rem;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
}

:is(.client-stepper__stage, .contract-stepper__stage, .report-stepper__stage, .collab-stepper__stage) {
  position: relative;
  flex: 1;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(15, 27, 40, 0.55);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: block;
  padding-top: 1.85rem;
}

:is(.client-stepper__stage, .contract-stepper__stage, .report-stepper__stage, .collab-stepper__stage)::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 32px;
  height: 32px;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background: var(--stepper-dot);
  border: 2px solid var(--stepper-dot-border);
  box-shadow: 0 8px 18px rgba(7, 20, 35, 0.12);
  transition: background 220ms ease, border-color 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}

:is(.client-stepper__stage, .contract-stepper__stage, .report-stepper__stage, .collab-stepper__stage)::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.95rem;
  font-weight: 800;
  opacity: 0;
  transition: opacity 200ms ease, transform 200ms ease;
}

:is(.client-stepper__stage.is-active, .contract-stepper__stage.is-active, .report-stepper__stage.is-active, .collab-stepper__stage.is-active),
:is(.client-stepper__stage.is-completed, .contract-stepper__stage.is-completed, .report-stepper__stage.is-completed, .collab-stepper__stage.is-completed) {
  color: #0d3a5e;
}

:is(.client-stepper__stage.is-active, .contract-stepper__stage.is-active, .report-stepper__stage.is-active, .collab-stepper__stage.is-active)::before {
  background: #0d3a5e;
  border-color: #0d3a5e;
  box-shadow: 0 12px 26px rgba(13, 58, 94, 0.32);
  transform: translate(-50%, -50%) scale(1.06);
}

:is(.client-stepper__stage.is-active, .contract-stepper__stage.is-active, .report-stepper__stage.is-active, .collab-stepper__stage.is-active)::after {
  content: '';
  opacity: 1;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #fff;
  transform: translate(-50%, -50%) scale(1);
}

:is(.client-stepper__stage.is-completed, .contract-stepper__stage.is-completed, .report-stepper__stage.is-completed, .collab-stepper__stage.is-completed)::before {
  background: var(--stepper-done-bg);
  border-color: var(--stepper-done-border);
  box-shadow: 0 0 0 5px rgba(37, 224, 122, 0.26);
}

:is(.client-stepper__stage.is-completed, .contract-stepper__stage.is-completed, .report-stepper__stage.is-completed, .collab-stepper__stage.is-completed)::after {
  content: '\2713';
  color: var(--stepper-done-icon);
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.02);
}

@media (max-width: 720px) {
  :is(.client-stepper, .contract-stepper, .report-stepper, .collab-stepper) {
    padding: 0.9rem 1rem 1rem;
  }

  :is(.client-stepper__stage, .contract-stepper__stage, .report-stepper__stage, .collab-stepper__stage) {
    font-size: 0.68rem;
    letter-spacing: 0.06em;
    padding-top: 1.6rem;
  }

  :is(.client-stepper__stage, .contract-stepper__stage, .report-stepper__stage, .collab-stepper__stage)::before {
    width: 28px;
    height: 28px;
  }
}

/* Report timer + signature */
.report-timer-chip {
  display: inline-flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(12, 28, 44, 0.12);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 30px rgba(12, 28, 44, 0.08);
  align-items: flex-end;
}

.report-timer-chip span {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(6, 20, 26, 0.55);
}

.report-timer-chip strong {
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  font-weight: 650;
  color: #06141a;
}

.report-summary__meta {
  margin: 0.35rem 0 0;
  color: rgba(6, 20, 26, 0.65);
}

.report-signature {
  margin-top: 0.75rem;
  border-radius: 1rem;
  border: 1px solid rgba(12, 28, 44, 0.12);
  background: rgba(255, 255, 255, 0.95);
  padding: 0.8rem;
}

.report-signature__canvas {
  width: 100%;
  height: auto;
  border-radius: 0.85rem;
  border: 1px dashed rgba(12, 28, 44, 0.22);
  background: #fff;
  touch-action: none;
}

.report-signature__canvas.is-disabled {
  opacity: 0.55;
  pointer-events: none;
}

.report-signature__meta {
  margin-top: 0.6rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.report-signature__selected {
  font-size: 0.9rem;
  font-weight: 600;
  color: #0f172a;
}

.report-signature__toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: rgba(6, 20, 26, 0.7);
}

.report-signature__toggle input {
  width: 16px;
  height: 16px;
}

.report-signature__actions {
  margin-top: 0.6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.report-signature__hint {
  font-size: 0.9rem;
  color: rgba(6, 20, 26, 0.6);
}

.drawer--report .is-invalid,
.drawer--report input.is-invalid,
.drawer--report textarea.is-invalid {
  border-color: rgba(220, 38, 38, 0.82) !important;
  background: #fff1f2 !important;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.14);
}

.report-section-form__title.is-invalid,
.report-section-form__textarea.is-invalid {
  border-color: rgba(220, 38, 38, 0.82) !important;
  background: #fff1f2 !important;
}

.report-field-error {
  margin: 0.4rem 0 0;
  font-size: 0.84rem;
  color: #b91c1c;
  font-weight: 600;
}

.tag-btn--success {
  border-style: solid;
  border-color: rgba(21, 128, 61, 0.35);
  background: rgba(21, 128, 61, 0.1);
  color: #166534;
}

@media (max-width: 720px) {
  .report-timer-chip {
    padding: 0.45rem 0.8rem;
  }
  .report-timer-chip strong {
    font-size: 0.9rem;
  }
}

/* Public signalement (QR site) */
.public-issue {
  min-height: 100vh;
  overflow-x: hidden;
  background: radial-gradient(circle at 20% 10%, rgba(17, 60, 104, 0.12), transparent 55%),
    radial-gradient(circle at 80% 20%, rgba(26, 163, 255, 0.1), transparent 55%),
    radial-gradient(circle at 50% 90%, rgba(226, 124, 79, 0.1), transparent 60%),
    #f6f8fc;
  padding: 28px 14px 40px;
}

.public-issue,
.public-issue * {
  box-sizing: border-box;
}

.public-issue__container {
  max-width: 1040px;
  margin: 0 auto;
  width: 100%;
}

.public-issue__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
}

.public-issue__brand {
  display: grid;
  gap: 10px;
}

.public-issue__logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(17, 60, 104, 0.1);
  color: #113c68;
  font-weight: 800;
  letter-spacing: 0.18em;
  font-size: 12px;
}

.public-issue__title h1 {
  margin: 0;
  font-size: 34px;
  letter-spacing: -0.02em;
  color: #0f1b28;
}

.public-issue__title p {
  margin: 6px 0 0;
  max-width: 780px;
  color: #4b5563;
  line-height: 1.6;
}

.public-issue__card {
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 18px 42px rgba(15, 27, 40, 0.08);
  border: 1px solid rgba(15, 27, 40, 0.06);
  padding: 22px;
  width: min(920px, 100%);
  margin: 0 auto;
  max-width: 100%;
}

.public-site-shell {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.public-site-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  padding-bottom: 4px;
}

.public-site-tabs__btn {
  appearance: none;
  border: 1px solid rgba(148, 163, 184, 0.55);
  background: rgba(248, 250, 252, 0.85);
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 750;
  color: #0f1b28;
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease, background 120ms ease;
  flex: 0 0 auto;
}

.public-site-tabs__btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 34px rgba(15, 27, 40, 0.08);
  border-color: rgba(17, 60, 104, 0.35);
}

.public-site-tabs__btn.is-active {
  border-color: rgba(17, 60, 104, 0.65);
  background: rgba(17, 60, 104, 0.1);
  color: #113c68;
}

.public-site-list {
  display: grid;
  gap: 12px;
}

.public-site-card {
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: rgba(255, 255, 255, 0.98);
  padding: 16px;
  box-shadow: 0 12px 28px rgba(15, 27, 40, 0.06);
}

.public-site-card--row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.public-site-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  align-items: baseline;
  color: #64748b;
  font-size: 13px;
  margin-bottom: 6px;
}

.public-site-card__company {
  font-weight: 800;
  color: #0f1b28;
}

.public-site-card__title {
  margin: 0;
  font-size: 16px;
  color: #0f1b28;
}

.public-site-card__body {
  margin: 10px 0 0;
  color: rgba(15, 27, 40, 0.75);
  line-height: 1.6;
}

.public-site-card__actions {
  display: flex;
  justify-content: flex-end;
}

.public-issue__loading {
  display: grid;
  place-items: center;
  gap: 12px;
  padding: 36px 10px;
  color: #475569;
}

.public-issue__spinner {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 3px solid rgba(17, 60, 104, 0.18);
  border-top-color: rgba(17, 60, 104, 0.78);
  animation: publicIssueSpin 0.9s linear infinite;
}

@keyframes publicIssueSpin {
  to {
    transform: rotate(360deg);
  }
}

.public-issue__footer {
  padding: 14px 4px 0;
  color: #6b7280;
  font-size: 13px;
}

.public-issue-steps {
  display: grid;
  gap: 18px;
}

.public-issue-stepper {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  min-width: 0;
}

.public-issue-stepper__item {
  display: grid;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.55);
  background: rgba(248, 250, 252, 0.85);
  min-width: 0;
}

.public-issue-stepper__item.is-active {
  border-color: rgba(17, 60, 104, 0.55);
  background: rgba(17, 60, 104, 0.08);
}

.public-issue-stepper__item.is-done {
  border-color: rgba(16, 185, 129, 0.4);
  background: rgba(16, 185, 129, 0.08);
}

.public-issue-stepper__label {
  font-size: 12px;
  font-weight: 700;
  color: #0f1b28;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.public-issue-stepper__desc {
  font-size: 12px;
  color: #64748b;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.public-issue-pane {
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: rgba(248, 250, 252, 0.78);
  padding: 18px;
  max-width: 100%;
}

.public-issue-pane__heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
}

.public-issue-pane__heading h2 {
  margin: 0;
  font-size: 20px;
  color: #0f1b28;
}

.public-issue-pane__meta {
  color: #64748b;
  font-size: 13px;
}

.public-issue-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.public-issue-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.55);
  background: #fff;
  color: #0f1b28;
  font-weight: 600;
  font-size: 13px;
}

.public-issue-badge__dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(17, 60, 104, 0.7);
}

.public-issue-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 16px;
}

.public-issue-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  min-width: 0;
}

.public-issue-field {
  display: grid;
  gap: 8px;
}

.public-issue-field label {
  font-weight: 600;
  color: #0f1b28;
  font-size: 13px;
}

.public-issue-field input,
.public-issue-field textarea,
.public-issue-field select {
  border: 1px solid rgba(148, 163, 184, 0.65);
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 14px;
  background: #fff;
  color: #0f1b28;
  min-width: 0;
}

.public-issue-field textarea {
  min-height: 120px;
  resize: vertical;
}

.public-issue-trades {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.public-issue-trade {
  display: grid;
  gap: 8px;
  padding: 14px 12px;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.55);
  background: #fff;
  cursor: pointer;
  text-align: left;
  transition: transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease;
}

.public-issue-trade:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 34px rgba(15, 27, 40, 0.08);
  border-color: rgba(17, 60, 104, 0.35);
}

.public-issue-trade.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.public-issue-trade.is-selected {
  border-color: #113c68;
  background: #113c68;
}

.public-issue-trade.is-available {
  border-color: rgba(15, 27, 40, 0.9);
  background: #fff;
}

.public-issue-trade.is-primary {
  border-color: rgba(15, 27, 40, 0.9);
  background: #fff;
}

.public-issue-trade.is-primary.is-selected {
  border-color: #113c68;
  background: #113c68;
}

.public-issue-trade.is-selected .public-issue-trade__label {
  color: #fff;
}

.public-issue-trade.is-selected .public-issue-trade__cat {
  color: rgba(255, 255, 255, 0.82);
}

.public-issue-trade.is-selected .public-issue-trade__icon {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.public-issue-trade__icon {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(17, 60, 104, 0.1);
  color: #113c68;
  font-weight: 800;
}

.public-issue-trade__label {
  font-weight: 700;
  color: #0f1b28;
  line-height: 1.25;
}

.public-issue-trade__cat {
  color: #64748b;
  font-size: 12px;
}

.public-issue-callout {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(34, 197, 94, 0.35);
  background: rgba(34, 197, 94, 0.1);
  color: #0f3d1f;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.public-issue-callout strong {
  font-weight: 800;
}

.public-issue-callout a {
  color: #0f3d1f;
  font-weight: 800;
  text-decoration: underline;
}

.public-issue-upload {
  display: grid;
  gap: 12px;
}

.public-issue-upload__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 16px;
  padding: 12px 14px;
  border: 1px dashed rgba(148, 163, 184, 0.75);
  background: rgba(248, 250, 252, 0.85);
  font-weight: 700;
  color: #0f1b28;
  cursor: pointer;
  transition: border-color 120ms ease, box-shadow 120ms ease, transform 120ms ease;
}

.public-issue-upload__btn:hover {
  transform: translateY(-1px);
  border-color: rgba(17, 60, 104, 0.55);
  box-shadow: 0 14px 34px rgba(15, 27, 40, 0.08);
}

.public-issue-upload__icon {
  width: 34px;
  height: 34px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(17, 60, 104, 0.12);
  color: #113c68;
}

.public-issue-upload__icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.public-issue-image-preview {
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.55);
  background: #fff;
  padding: 10px;
}

.public-issue-image-preview img {
  width: 100%;
  height: 240px;
  object-fit: contain;
  display: block;
  border-radius: 14px;
  background: rgba(248, 250, 252, 1);
}

@media (max-width: 960px) {
  .public-issue__title h1 {
    font-size: 28px;
  }
  .public-issue__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .public-issue__card {
    width: 100%;
  }
  .public-issue-actions {
    justify-content: center;
  }
  .public-issue-stepper {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .public-issue-trades {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .public-issue__container {
    padding: 0 6px;
  }

  .public-issue__card {
    margin: 0 auto;
  }

  .public-issue-pane__heading {
    flex-direction: column;
    align-items: flex-start;
  }

  .public-issue-actions {
    justify-content: flex-start;
    width: 100%;
  }

  .public-issue-actions .primary-btn {
    display: inline-flex;
    justify-content: center;
    width: 100%;
  }

  .public-issue-stepper {
    grid-template-columns: 1fr;
  }

  .public-issue-trades {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .public-issue {
    padding: 18px 10px 28px;
  }
  .public-issue__card {
    padding: 18px 16px;
    border-radius: 18px;
  }
  .public-issue-pane {
    padding: 14px;
  }
  .public-issue-pane__heading h2 {
    font-size: 18px;
  }
  .public-issue-pane__meta {
    font-size: 12px;
    line-height: 1.5;
  }
  .public-issue-grid {
    grid-template-columns: 1fr;
  }
  .public-issue-trades {
    grid-template-columns: 1fr;
  }
  .public-issue-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .public-issue-actions .primary-btn,
  .public-issue-actions .secondary-btn,
  .public-issue-actions a.primary-btn,
  .public-issue-actions a.secondary-btn {
    width: 100%;
    text-align: center;
  }
}

/* Trade picker (admin/company settings) */
.trade-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.trade-picker--settings {
  margin-top: 10px;
}

.trade-chip {
  appearance: none;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: rgba(248, 250, 252, 0.85);
  color: #0f1b28;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 120ms ease, background 120ms ease, transform 120ms ease;
}

.trade-chip:hover {
  transform: translateY(-1px);
  border-color: rgba(17, 60, 104, 0.5);
}

.trade-chip.is-selected {
  border-color: rgba(17, 60, 104, 0.75);
  background: rgba(17, 60, 104, 0.1);
  color: #113c68;
}

.trade-chip.is-disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.form-field__hint {
  margin: 8px 0 0;
  font-size: 12px;
  color: rgba(15, 27, 40, 0.6);
  line-height: 1.5;
}

.company-settings__hint {
  display: block;
  margin-top: 8px;
  color: rgba(15, 27, 40, 0.6);
  font-size: 12px;
  line-height: 1.4;
}

/* ========================================================================== */
/* Marketing site (index.html) - Nessaly\x27s Group (scoped) */
/* ========================================================================== */

.page--marketing {
  --ngm-primary: #0a3d62;
  --ngm-secondary: #20bf6b;
  --ngm-accent: #f7b731;
  --ngm-ink: rgba(15, 27, 40, 0.96);
  --ngm-muted: rgba(15, 27, 40, 0.72);
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: radial-gradient(circle at 10% 10%, rgba(13, 58, 94, 0.18), transparent 40%),
    radial-gradient(circle at 90% 15%, rgba(22, 60, 58, 0.16), transparent 35%),
    radial-gradient(circle at 65% 90%, rgba(180, 138, 92, 0.18), transparent 40%),
    #f5f7fb;
  color: #0f1b28;
}

/* Note: keep links inheriting by default via global `a { color: inherit; }`,
   but do not override component colors (ex: `.ngm-btn--primary`). */

.ngm-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.ngm-header {
  position: sticky;
  top: 0;
  z-index: 30;
  margin: 1.25rem auto 0;
  width: calc(100% - 2.25rem);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1rem;
  border-radius: 1.25rem;
  background: rgba(245, 247, 251, 0.7);
  border: 1px solid rgba(9, 20, 35, 0.09);
  backdrop-filter: blur(16px);
  box-shadow: 0 18px 45px rgba(7, 20, 35, 0.08);
}

.ngm-header.is-scrolled {
  background: rgba(245, 247, 251, 0.88);
  box-shadow: 0 22px 55px rgba(7, 20, 35, 0.12);
}

.ngm-scrollprogress {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 8px;
  height: 3px;
  border-radius: 999px;
  background: rgba(15, 27, 40, 0.08);
  overflow: hidden;
  pointer-events: none;
}

.ngm-scrollprogress > span {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(13, 58, 94, 0.9), rgba(22, 60, 58, 0.9), rgba(180, 138, 92, 0.95));
  transition: width 120ms linear;
}

.ngm-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
  max-width: 100%;
}

.ngm-brand__logo {
  width: 170px;
  height: auto;
  display: block;
  filter: drop-shadow(0 14px 28px rgba(7, 20, 35, 0.12));
}

.ngm-brand__name {
  display: inline-flex;
  gap: 0.35rem;
  align-items: baseline;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 1.1rem;
  color: rgba(15, 27, 40, 0.9);
}

.ngm-brand__mark {
  color: var(--ngm-primary);
}

.ngm-brand__suffix {
  font-weight: 500;
  color: rgba(15, 27, 40, 0.55);
}

.ngm-burger {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(9, 20, 35, 0.12);
  background: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  padding: 10px;
}

.ngm-burger span {
  display: block;
  height: 2px;
  width: 100%;
  background: rgba(15, 27, 40, 0.78);
  border-radius: 99px;
}

.ngm-burger span + span {
  margin-top: 7px;
}

.ngm-nav {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  align-items: center;
}

.ngm-nav__link {
  position: relative;
  font-weight: 600;
  font-size: 0.95rem;
  color: rgba(15, 27, 40, 0.68);
  padding: 0.55rem 0.65rem;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease;
}

.ngm-nav__link:hover {
  background: rgba(13, 58, 94, 0.08);
  color: rgba(15, 27, 40, 0.9);
}

.ngm-nav__link.is-active {
  background: rgba(13, 58, 94, 0.12);
  color: rgba(15, 27, 40, 0.92);
}

.ngm-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
}

.ngm-dropdown {
  position: relative;
}

.ngm-menu {
  position: absolute;
  top: calc(100% + 0.65rem);
  right: 0;
  min-width: 220px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(9, 20, 35, 0.1);
  border-radius: 1rem;
  box-shadow: 0 25px 65px rgba(7, 20, 35, 0.16);
  padding: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
  z-index: 60;
}

.ngm-dropdown.is-open .ngm-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.ngm-menu__item {
  display: flex;
  width: 100%;
  padding: 0.75rem 0.9rem;
  border-radius: 0.85rem;
  font-weight: 700;
  color: rgba(15, 27, 40, 0.9);
}

.ngm-menu__item:hover {
  background: rgba(13, 58, 94, 0.08);
}

.ngm-menu__item--disabled {
  opacity: 0.55;
  pointer-events: none;
}

.ngm-btn {
  border-radius: 999px;
  padding: 0.85rem 1.2rem;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
}

.ngm-btn--primary {
  background: var(--ngm-primary);
  color: #fff;
  box-shadow: 0 18px 35px rgba(10, 61, 98, 0.22);
}

.ngm-btn--ghost {
  background: rgba(255, 255, 255, 0.9);
  color: var(--ngm-primary);
  border-color: rgba(10, 61, 98, 0.18);
}

.ngm-btn:hover {
  transform: translateY(-1px);
}

.ngm-btn--tiny {
  padding: 0.6rem 0.9rem;
  font-size: 0.9rem;
}

.ngm-btn--disabled {
  opacity: 0.55;
  pointer-events: none;
}

.ngm-main {
  width: calc(100% - 2.25rem);
  margin: 0 auto;
  padding: 2.25rem 0 4rem;
  display: grid;
  gap: 3.25rem;
}

html.has-io [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 14px, 0);
  transition: opacity 650ms cubic-bezier(0.2, 0.8, 0.2, 1), transform 650ms cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: opacity, transform;
}

html.has-io [data-reveal].is-inview {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.ngm-kicker {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.74rem;
  color: rgba(15, 27, 40, 0.58);
}

.ngm-h1 {
  margin: 0.75rem 0 0.7rem;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-weight: 800;
  font-size: clamp(2.25rem, 4vw, 3.55rem);
  line-height: 1.12;
  color: var(--ngm-ink);
}

.ngm-h2 {
  margin: 0.65rem 0 0.5rem;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-weight: 800;
  font-size: clamp(1.55rem, 2.2vw, 2.15rem);
  line-height: 1.18;
  color: var(--ngm-ink);
}

.ngm-lead {
  margin: 0;
  font-size: 1.08rem;
  color: var(--ngm-muted);
}

.ngm-text {
  margin: 0;
  color: var(--ngm-muted);
}

.ngm-hero {
  padding-top: 1.25rem;
}

.ngm-module-hero {
  padding-top: 0.75rem;
  display: grid;
  gap: 1.25rem;
}

.ngm-module-hero__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ngm-module-hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1.6rem;
  align-items: stretch;
}

.ngm-module-hero__card {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(9, 20, 35, 0.08);
  border-radius: 1.6rem;
  padding: 1.35rem 1.35rem;
  box-shadow: 0 24px 60px rgba(7, 20, 35, 0.08);
  display: grid;
  gap: 1rem;
  align-content: start;
  position: relative;
  overflow: hidden;
}

.ngm-module-hero__card::before {
  content: '';
  position: absolute;
  inset: -120px -60px auto auto;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(13, 58, 94, 0.12), transparent 70%);
  pointer-events: none;
}

/* -------------------------------------------------------------------------- */
/* "En cours de conception" (modules) */
/* -------------------------------------------------------------------------- */

.page--marketing.page--soon .ngm-main {
  justify-items: center;
}

.ngm-soon {
  min-width: 0;
  display: grid;
  justify-items: center;
  padding: 0.75rem 0 2.5rem;
}

.ngm-soon__card {
  width: min(740px, 100%);
  min-width: 0;
  padding: clamp(1.25rem, 3vw, 2.25rem);
  border-radius: 1.6rem;
  border: 1px solid rgba(9, 20, 35, 0.1);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 26px 60px rgba(7, 20, 35, 0.12);
  position: relative;
  overflow: hidden;
  overflow-wrap: anywhere;
}

.ngm-soon__card::before {
  content: '';
  position: absolute;
  inset: -220px -160px auto auto;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(13, 58, 94, 0.24), rgba(22, 60, 58, 0.1), transparent 65%);
  filter: blur(0px);
  opacity: 0.95;
  transform: translate3d(0, 0, 0);
  animation: ngm-soon-float 10s ease-in-out infinite;
  pointer-events: none;
}

.ngm-soon__card::after {
  content: '';
  position: absolute;
  inset: auto -180px -240px auto;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, rgba(180, 138, 92, 0.22), rgba(247, 183, 49, 0.12), transparent 70%);
  transform: translate3d(0, 0, 0);
  animation: ngm-soon-float 11.5s ease-in-out infinite reverse;
  pointer-events: none;
}

.ngm-soon__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  position: relative;
  z-index: 1;
}

.ngm-soon__badge {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.2;
  background: rgba(13, 58, 94, 0.08);
  border: 1px solid rgba(13, 58, 94, 0.16);
  color: rgba(15, 27, 40, 0.78);
}

.ngm-soon__badge::before {
  content: '';
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(247, 183, 49, 0.95);
  box-shadow: 0 0 0 6px rgba(247, 183, 49, 0.12);
  flex: 0 0 auto;
  animation: ngm-soon-pulse 1.8s ease-in-out infinite;
}

.ngm-soon__logo {
  width: 64px;
  height: 64px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 1.15rem;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(9, 20, 35, 0.08);
  box-shadow: 0 14px 30px rgba(7, 20, 35, 0.1);
  position: relative;
  z-index: 1;
}

.ngm-soon__logo img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  display: block;
}

.ngm-soon__title {
  margin: 1.1rem 0 0.65rem;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-weight: 800;
  font-size: clamp(1.7rem, 4.8vw, 2.4rem);
  line-height: 1.15;
  color: var(--ngm-ink);
  position: relative;
  z-index: 1;
}

.ngm-soon__lead {
  margin: 0;
  font-size: 1.06rem;
  color: var(--ngm-muted);
  position: relative;
  z-index: 1;
}

.ngm-soon__progress {
  margin-top: 1.35rem;
  height: 8px;
  border-radius: 999px;
  background: rgba(15, 27, 40, 0.1);
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.ngm-soon__progress::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 42%;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(13, 58, 94, 0.7), rgba(22, 60, 58, 0.7), transparent);
  transform: translateX(-120%);
  animation: ngm-soon-shimmer 1.55s ease-in-out infinite;
}

.ngm-soon__meta {
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  color: rgba(15, 27, 40, 0.7);
  font-size: 0.96rem;
  position: relative;
  z-index: 1;
}

.ngm-soon__subtitle {
  margin: 1.15rem 0 0.5rem;
  font-weight: 900;
  letter-spacing: 0.01em;
  color: rgba(15, 27, 40, 0.9);
}

.ngm-soon__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.ngm-soon__pills span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.38rem 0.65rem;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.85rem;
  border: 1px solid rgba(9, 20, 35, 0.1);
  background: rgba(255, 255, 255, 0.75);
  color: rgba(15, 27, 40, 0.82);
}

.ngm-soon__list {
  margin: 0;
  padding-left: 1.15rem;
  display: grid;
  gap: 0.45rem;
  color: rgba(15, 27, 40, 0.72);
  font-weight: 600;
}

.ngm-soon__meta span {
  display: inline-flex;
  gap: 0.45rem;
  align-items: center;
}

.ngm-soon__meta span::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 99px;
  background: rgba(13, 58, 94, 0.75);
}

.ngm-soon__cta {
  margin-top: 1.65rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  position: relative;
  z-index: 1;
}

.page--marketing.page--soon .ngm-btn {
  white-space: normal;
}

.page--marketing.page--soon .ngm-soon__cta .ngm-btn {
  width: 100%;
}

@keyframes ngm-soon-float {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(-28px, 18px, 0);
  }
}

@keyframes ngm-soon-shimmer {
  0% {
    transform: translateX(-120%);
  }
  100% {
    transform: translateX(260%);
  }
}

@keyframes ngm-soon-pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ngm-soon__card::before,
  .ngm-soon__card::after,
  .ngm-soon__badge::before,
  .ngm-soon__progress::before {
    animation: none !important;
  }
}

@media (min-width: 700px) {
  .ngm-soon__cta {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
  }

  .page--marketing.page--soon .ngm-soon__cta .ngm-btn {
    width: auto;
  }
}

.ngm-hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.2rem;
  align-items: center;
}

.ngm-hero__cta {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.ngm-proof {
  margin-top: 1.7rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.ngm-proof__item {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(9, 20, 35, 0.08);
  border-radius: 1.2rem;
  padding: 0.9rem 0.95rem;
  box-shadow: 0 18px 45px rgba(7, 20, 35, 0.06);
  display: grid;
  gap: 0.18rem;
}

.ngm-proof__label {
  font-weight: 800;
  color: rgba(15, 27, 40, 0.9);
}

.ngm-proof__desc {
  font-size: 0.92rem;
  color: rgba(15, 27, 40, 0.68);
}

.ngm-hero__visual {
  position: relative;
  min-height: 440px;
  border-radius: 1.8rem;
  overflow: hidden;
  border: 1px solid rgba(9, 20, 35, 0.08);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.55));
  box-shadow: 0 35px 80px rgba(7, 20, 35, 0.12);
}

.ngm-hero__visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(13, 58, 94, 0.12), transparent 35%),
    linear-gradient(290deg, rgba(22, 60, 58, 0.1), transparent 40%),
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.85), transparent 55%);
  opacity: 0.9;
  pointer-events: none;
}

.ngm-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(0px);
  opacity: 0.75;
  animation: ngm-float 14s ease-in-out infinite;
}

.ngm-orb--a {
  width: 320px;
  height: 320px;
  left: -120px;
  top: -120px;
  background: radial-gradient(circle at 30% 30%, rgba(13, 58, 94, 0.55), transparent 65%);
}

.ngm-orb--b {
  width: 260px;
  height: 260px;
  right: -110px;
  top: 40px;
  background: radial-gradient(circle at 30% 30%, rgba(22, 60, 58, 0.55), transparent 65%);
  animation-duration: 16s;
}

.ngm-orb--c {
  width: 320px;
  height: 320px;
  right: -140px;
  bottom: -160px;
  background: radial-gradient(circle at 30% 30%, rgba(180, 138, 92, 0.55), transparent 65%);
  animation-duration: 18s;
}

.ngm-stack {
  position: absolute;
  inset: 1.35rem;
  display: grid;
  gap: 0.8rem;
  align-content: center;
}

.ngm-stack__card {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(9, 20, 35, 0.08);
  border-radius: 1.2rem;
  padding: 1rem 1.05rem;
  box-shadow: 0 18px 45px rgba(7, 20, 35, 0.08);
  transform: translateZ(0);
  position: relative;
  z-index: 2;
  animation: ngm-rise 900ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.ngm-stack__card--top {
  background: rgba(255, 255, 255, 0.92);
}

.ngm-stack__card:nth-child(2) {
  animation-delay: 120ms;
}

.ngm-stack__card:nth-child(3) {
  animation-delay: 200ms;
}

.ngm-stack__card:nth-child(4) {
  animation-delay: 280ms;
}

@keyframes ngm-float {
  0% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(10px, -12px, 0);
  }
  100% {
    transform: translate3d(0, 0, 0);
  }
}

@keyframes ngm-rise {
  0% {
    opacity: 0;
    transform: translate3d(0, 14px, 0);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.ngm-stack__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.ngm-mini {
  font-size: 0.85rem;
  color: rgba(15, 27, 40, 0.55);
  font-weight: 600;
}

.ngm-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  border: 1px solid rgba(9, 20, 35, 0.08);
}

.ngm-chip--blue {
  background: rgba(13, 58, 94, 0.12);
  color: rgba(13, 58, 94, 0.95);
}

.ngm-chip--green {
  background: rgba(22, 60, 58, 0.12);
  color: rgba(22, 60, 58, 0.95);
}

.ngm-chip--amber {
  background: rgba(180, 138, 92, 0.14);
  color: rgba(120, 84, 46, 0.95);
}

.ngm-chip--violet {
  background: rgba(88, 80, 170, 0.14);
  color: rgba(60, 52, 140, 0.95);
}

.ngm-stack__metric {
  margin-top: 0.7rem;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
}

.ngm-stack__metric span {
  color: rgba(15, 27, 40, 0.62);
  font-weight: 600;
}

.ngm-stack__metric strong {
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}

.ngm-stack__bar {
  height: 8px;
  margin-top: 0.6rem;
  border-radius: 999px;
  background: rgba(15, 27, 40, 0.08);
  overflow: hidden;
}

.ngm-stack__bar span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(13, 58, 94, 0.85), rgba(22, 60, 58, 0.75));
}

.ngm-section {
  display: grid;
  gap: 1.5rem;
}

.ngm-section--center .ngm-section__head {
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
}

.ngm-grid {
  display: grid;
  gap: 1.2rem;
}

.ngm-grid--products {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ngm-grid--pricing {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ngm-grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ngm-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ngm-grid--contact {
  grid-template-columns: 1.7fr 1fr;
  align-items: start;
}

.ngm-card {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(9, 20, 35, 0.08);
  border-radius: 1.6rem;
  padding: 1.35rem 1.35rem;
  box-shadow: 0 24px 60px rgba(7, 20, 35, 0.08);
  position: relative;
  overflow: hidden;
}

.ngm-card::before {
  content: '';
  position: absolute;
  inset: -120px -60px auto auto;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(13, 58, 94, 0.12), transparent 70%);
  pointer-events: none;
}

.ngm-card__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.9rem;
}

.ngm-card__brand {
  display: flex;
  gap: 0.85rem;
  align-items: center;
}

.ngm-card__brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 0.9rem;
  background: rgba(13, 58, 94, 0.06);
  padding: 0.35rem;
}

.ngm-card__brand h3 {
  margin: 0;
  font-size: 1.2rem;
  letter-spacing: 0.01em;
}

.ngm-card__brand p {
  margin: 0.2rem 0 0;
  color: rgba(15, 27, 40, 0.65);
  font-weight: 600;
  font-size: 0.92rem;
}

.ngm-card__foot {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.ngm-callout {
  margin-top: 1.2rem;
  padding: 1.35rem;
  border-radius: 1.6rem;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(9, 20, 35, 0.08);
  box-shadow: 0 24px 60px rgba(7, 20, 35, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.1rem;
  flex-wrap: wrap;
}

.ngm-callout h3 {
  margin: 0;
  font-size: 1.1rem;
}

.ngm-callout p {
  margin: 0.35rem 0 0;
  color: rgba(15, 27, 40, 0.68);
  font-weight: 600;
}

.ngm-callout__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.ngm-list {
  margin: 0;
  padding-left: 1.05rem;
  display: grid;
  gap: 0.35rem;
  color: rgba(15, 27, 40, 0.72);
}

.ngm-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: rgba(15, 27, 40, 0.06);
  color: rgba(15, 27, 40, 0.65);
  border: 1px solid rgba(9, 20, 35, 0.08);
}

.ngm-badge--blue {
  background: rgba(13, 58, 94, 0.12);
  color: rgba(13, 58, 94, 0.92);
}

.ngm-badge--green {
  background: rgba(22, 60, 58, 0.12);
  color: rgba(22, 60, 58, 0.92);
}

.ngm-badge--amber {
  background: rgba(180, 138, 92, 0.14);
  color: rgba(120, 84, 46, 0.92);
}

.ngm-badge--violet {
  background: rgba(88, 80, 170, 0.14);
  color: rgba(60, 52, 140, 0.92);
}

.ngm-link {
  font-weight: 800;
  color: rgba(13, 58, 94, 0.95);
}

.ngm-link:hover {
  text-decoration: underline;
}

.ngm-accordion {
  display: grid;
  gap: 0.9rem;
}

.ngm-details {
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(9, 20, 35, 0.08);
  border-radius: 1.4rem;
  box-shadow: 0 20px 50px rgba(7, 20, 35, 0.07);
  overflow: hidden;
}

.ngm-details__summary {
  list-style: none;
  cursor: pointer;
  padding: 1.05rem 1.15rem;
  display: grid;
  gap: 0.15rem;
  position: relative;
}

.ngm-details__summary::-webkit-details-marker {
  display: none;
}

.ngm-details__title {
  font-weight: 900;
  color: rgba(15, 27, 40, 0.92);
}

.ngm-details__meta {
  color: rgba(15, 27, 40, 0.62);
  font-weight: 600;
  font-size: 0.93rem;
}

.ngm-details__body {
  padding: 1.1rem 1.15rem 1.3rem;
  border-top: 1px solid rgba(9, 20, 35, 0.08);
}

.ngm-details__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.ngm-details__card {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(9, 20, 35, 0.08);
  border-radius: 1.2rem;
  padding: 1.05rem;
}

.ngm-details__card h4 {
  margin: 0;
  font-size: 1rem;
}

.ngm-details__card ul {
  margin: 0.75rem 0 0;
  padding-left: 1.05rem;
  display: grid;
  gap: 0.35rem;
  color: rgba(15, 27, 40, 0.72);
}

.ngm-details__cta {
  margin-top: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.ngm-card--featured {
  background: linear-gradient(155deg, rgba(13, 58, 94, 0.12), rgba(255, 255, 255, 0.82) 45%, rgba(22, 60, 58, 0.1));
}

.ngm-price {
  margin: 0.25rem 0 0.2rem;
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: 0.01em;
}

.ngm-price span {
  font-size: 0.95rem;
  font-weight: 700;
  color: rgba(15, 27, 40, 0.55);
}

.ngm-subprice {
  margin: 0;
  color: rgba(15, 27, 40, 0.7);
}

.ngm-usage {
  margin-top: 1.1rem;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(9, 20, 35, 0.08);
  border-radius: 1.6rem;
  padding: 1.35rem;
  box-shadow: 0 24px 60px rgba(7, 20, 35, 0.08);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.2rem;
  align-items: center;
}

.ngm-usage__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
}

.ngm-usage__item strong {
  font-size: 1.2rem;
  color: rgba(13, 58, 94, 0.95);
}

.ngm-usage__item span {
  display: block;
  color: rgba(15, 27, 40, 0.62);
  margin-top: 0.1rem;
}

.ngm-values {
  display: grid;
  gap: 0.75rem;
}

.ngm-values__item {
  display: grid;
  gap: 0.15rem;
}

.ngm-values__item span {
  color: rgba(15, 27, 40, 0.62);
}

.ngm-form {
  display: grid;
  gap: 1rem;
}

.ngm-form__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.ngm-field {
  display: grid;
  gap: 0.35rem;
  font-weight: 800;
  color: rgba(15, 27, 40, 0.82);
}

.ngm-field input,
.ngm-field select,
.ngm-field textarea {
  width: 100%;
  border-radius: 1rem;
  border: 1px solid rgba(9, 20, 35, 0.16);
  padding: 0.85rem 0.95rem;
  font: inherit;
  background: rgba(245, 247, 251, 0.72);
  color: rgba(15, 27, 40, 0.92);
  outline: none;
}

.ngm-field textarea {
  resize: vertical;
  min-height: 120px;
}

.ngm-field input:focus,
.ngm-field select:focus,
.ngm-field textarea:focus {
  border-color: rgba(13, 58, 94, 0.5);
  box-shadow: 0 0 0 4px rgba(13, 58, 94, 0.12);
}

.ngm-form__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.ngm-form__hint {
  margin: 0;
  color: rgba(15, 27, 40, 0.55);
  font-weight: 600;
}

.ngm-toast {
  margin-top: 0.3rem;
  background: rgba(13, 58, 94, 0.12);
  border: 1px solid rgba(13, 58, 94, 0.18);
  color: rgba(13, 58, 94, 0.95);
  border-radius: 1rem;
  padding: 0.8rem 1rem;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.ngm-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.ngm-aside__actions {
  margin-top: 1rem;
  display: grid;
  gap: 0.75rem;
}

.ngm-footer {
  margin-top: auto;
  padding: 2.5rem 0 3rem;
}

.ngm-footer__inner {
  width: calc(100% - 2.25rem);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 1rem;
  align-items: center;
  color: rgba(15, 27, 40, 0.6);
}

.ngm-footer__brand {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.ngm-footer__logo {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.ngm-footer__brand strong {
  color: rgba(15, 27, 40, 0.88);
}

.ngm-footer__brand span {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
}

.ngm-footer__links {
  display: flex;
  gap: 1.1rem;
  flex-wrap: wrap;
}

.ngm-footer__links a:hover {
  color: rgba(13, 58, 94, 0.95);
}

.ngm-footer__copy {
  margin: 0;
  text-align: right;
}

@media (max-width: 1100px) {
  .ngm-grid--products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ngm-grid--pricing {
    grid-template-columns: 1fr;
  }

  .ngm-grid--three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ngm-hero__grid {
    grid-template-columns: 1fr;
  }

  .ngm-module-hero__grid {
    grid-template-columns: 1fr;
  }

  .ngm-hero__visual {
    min-height: 380px;
  }

  .ngm-usage {
    grid-template-columns: 1fr;
  }

  .ngm-usage__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ngm-grid--contact {
    grid-template-columns: 1fr;
  }

  .ngm-footer__inner {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .ngm-footer__copy {
    text-align: left;
  }
}

@media (max-width: 900px) {
  .ngm-header {
    grid-template-columns: auto auto;
    grid-template-areas: 'brand burger' 'nav nav' 'actions actions';
  }

  .ngm-brand {
    grid-area: brand;
  }

  .ngm-burger {
    grid-area: burger;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .ngm-nav {
    grid-area: nav;
    display: none;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .ngm-actions {
    grid-area: actions;
    display: none;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .ngm-nav.is-open,
  .ngm-actions.is-open {
    display: flex;
  }

  .ngm-proof {
    grid-template-columns: 1fr;
  }

  .ngm-details__grid {
    grid-template-columns: 1fr;
  }

  .ngm-form__row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .ngm-grid--two,
  .ngm-grid--three {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .ngm-header {
    width: calc(100% - 1.2rem);
    padding: 0.75rem 0.85rem;
  }

  .ngm-brand__logo {
    width: 142px;
  }

  .ngm-brand__name {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ngm-btn,
  .ngm-nav__link,
  .ngm-toast,
  .ngm-orb,
  .ngm-stack__card {
    transition: none !important;
    animation: none !important;
  }
}

/* -------------------------------------------------------------------------- */
/* MyCoproConnect product page (/copropriete) */
/* -------------------------------------------------------------------------- */

.page--product .mcc-hero__note {
  margin-top: 0.95rem;
  padding: 0.95rem 1rem;
  border-radius: 1.2rem;
  border: 1px solid rgba(9, 20, 35, 0.08);
  background: rgba(245, 247, 251, 0.78);
  display: grid;
  gap: 0.55rem;
}

.page--product .mcc-hero__note .ngm-text {
  font-weight: 600;
}

.page--product .mcc-feature {
  overflow-wrap: anywhere;
}

/* Timesheets: true mobile layout (no horizontal clipping). */
@media (max-width: 560px) {
  body.page--company-space .timesheets-table,
  body.page--employee-space .timesheets-table {
    border: none;
    overflow: visible;
    background: transparent;
  }

  body.page--company-space .timesheets-table__row,
  body.page--employee-space .timesheets-table__row {
    min-width: 0;
    padding: 0.9rem;
  }

  body.page--company-space .timesheets-table__row--head,
  body.page--employee-space .timesheets-table__row--head {
    display: none;
  }

  body.page--company-space .timesheets-table__row:nth-child(even),
  body.page--employee-space .timesheets-table__row:nth-child(even) {
    background: transparent;
  }

  body.page--company-space .timesheets-table__row.is-empty,
  body.page--employee-space .timesheets-table__row.is-empty {
    margin: 0.75rem 0 0;
    padding: 1rem;
    border: 1px dashed rgba(6, 20, 26, 0.18);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.85);
  }

  body.page--company-space .timesheets-table__row:not(.timesheets-table__row--head):not(.is-empty):not(.timesheets-table__row--details),
  body.page--employee-space .timesheets-table__row:not(.timesheets-table__row--head):not(.is-empty):not(.timesheets-table__row--details) {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem 1rem;
    align-items: start;
    margin: 0.85rem 0 0;
    border: 1px solid rgba(6, 20, 26, 0.08);
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 18px 30px rgba(6, 20, 26, 0.06);
  }

  body.page--company-space .timesheets-table__row:not(.timesheets-table__row--head):not(.is-empty):not(.timesheets-table__row--details) > span,
  body.page--employee-space .timesheets-table__row:not(.timesheets-table__row--head):not(.is-empty):not(.timesheets-table__row--details) > span {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
    overflow-wrap: anywhere;
  }

  body.page--company-space .timesheets-table__row:not(.timesheets-table__row--head):not(.is-empty):not(.timesheets-table__row--details) > span::before,
  body.page--employee-space .timesheets-table__row:not(.timesheets-table__row--head):not(.is-empty):not(.timesheets-table__row--details) > span::before {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(6, 20, 26, 0.55);
    content: '';
  }

  body.page--company-space .timesheets-table-card__search input[type='search'],
  body.page--employee-space .timesheets-table-card__search input[type='search'] {
    max-width: 100%;
  }

  /* Labels for employee timesheets table (7 cols). */
  body.page--employee-space
    [data-employeespace-panel='timesheets']
    .timesheets-table__row:not(.timesheets-table__row--head):not(.is-empty)
    > span:nth-child(1)::before {
    content: 'Site';
  }
  body.page--employee-space
    [data-employeespace-panel='timesheets']
    .timesheets-table__row:not(.timesheets-table__row--head):not(.is-empty)
    > span:nth-child(2)::before {
    content: 'Debut';
  }
  body.page--employee-space
    [data-employeespace-panel='timesheets']
    .timesheets-table__row:not(.timesheets-table__row--head):not(.is-empty)
    > span:nth-child(3)::before {
    content: 'Pauses';
  }
  body.page--employee-space
    [data-employeespace-panel='timesheets']
    .timesheets-table__row:not(.timesheets-table__row--head):not(.is-empty)
    > span:nth-child(4)::before {
    content: 'Reprises';
  }
  body.page--employee-space
    [data-employeespace-panel='timesheets']
    .timesheets-table__row:not(.timesheets-table__row--head):not(.is-empty)
    > span:nth-child(5)::before {
    content: 'Fin';
  }
  body.page--employee-space
    [data-employeespace-panel='timesheets']
    .timesheets-table__row:not(.timesheets-table__row--head):not(.is-empty)
    > span:nth-child(6)::before {
    content: 'Duree';
  }
  body.page--employee-space
    [data-employeespace-panel='timesheets']
    .timesheets-table__row:not(.timesheets-table__row--head):not(.is-empty)
    > span:nth-child(7)::before {
    content: 'Etat';
  }

  /* Labels for company timesheets table (8 cols). */
  body.page--company-space
    .timesheets-table--company:not(.timesheets-table--events)
    .timesheets-table__row:not(.timesheets-table__row--head):not(.is-empty)
    > span:nth-child(1)::before {
    content: 'Date';
  }
  body.page--company-space
    .timesheets-table--company:not(.timesheets-table--events)
    .timesheets-table__row:not(.timesheets-table__row--head):not(.is-empty)
    > span:nth-child(2)::before {
    content: 'Collaborateur';
  }
  body.page--company-space
    .timesheets-table--company:not(.timesheets-table--events)
    .timesheets-table__row:not(.timesheets-table__row--head):not(.is-empty)
    > span:nth-child(3)::before {
    content: 'Sites';
  }
  body.page--company-space
    .timesheets-table--company:not(.timesheets-table--events)
    .timesheets-table__row:not(.timesheets-table__row--head):not(.is-empty)
    > span:nth-child(4)::before {
    content: 'Sessions';
  }
  body.page--company-space
    .timesheets-table--company:not(.timesheets-table--events)
    .timesheets-table__row:not(.timesheets-table__row--head):not(.is-empty)
    > span:nth-child(5)::before {
    content: 'Pauses';
  }
  body.page--company-space
    .timesheets-table--company:not(.timesheets-table--events)
    .timesheets-table__row:not(.timesheets-table__row--head):not(.is-empty)
    > span:nth-child(6)::before {
    content: 'Reprises';
  }
  body.page--company-space
    .timesheets-table--company:not(.timesheets-table--events)
    .timesheets-table__row:not(.timesheets-table__row--head):not(.is-empty)
    > span:nth-child(7)::before {
    content: 'Travail';
  }
  body.page--company-space
    .timesheets-table--company:not(.timesheets-table--events)
    .timesheets-table__row:not(.timesheets-table__row--head):not(.is-empty)
    > span:nth-child(8)::before {
    content: 'Etat';
  }

  /* Labels for company timesheet events table (8 cols). */
  body.page--company-space
    .timesheets-table--events
    .timesheets-table__row:not(.timesheets-table__row--head):not(.is-empty)
    > span:nth-child(1)::before {
    content: 'Date/Heure';
  }
  body.page--company-space
    .timesheets-table--events
    .timesheets-table__row:not(.timesheets-table__row--head):not(.is-empty)
    > span:nth-child(2)::before {
    content: 'Collaborateur';
  }
  body.page--company-space
    .timesheets-table--events
    .timesheets-table__row:not(.timesheets-table__row--head):not(.is-empty)
    > span:nth-child(3)::before {
    content: 'Site';
  }
  body.page--company-space
    .timesheets-table--events
    .timesheets-table__row:not(.timesheets-table__row--head):not(.is-empty)
    > span:nth-child(4)::before {
    content: 'Action';
  }
  body.page--company-space
    .timesheets-table--events
    .timesheets-table__row:not(.timesheets-table__row--head):not(.is-empty)
    > span:nth-child(5)::before {
    content: 'Localisation';
  }
  body.page--company-space
    .timesheets-table--events
    .timesheets-table__row:not(.timesheets-table__row--head):not(.is-empty)
    > span:nth-child(6)::before {
    content: 'Detail';
  }
  body.page--company-space
    .timesheets-table--events
    .timesheets-table__row:not(.timesheets-table__row--head):not(.is-empty)
    > span:nth-child(7)::before {
    content: 'IP';
  }
  body.page--company-space
    .timesheets-table--events
    .timesheets-table__row:not(.timesheets-table__row--head):not(.is-empty)
    > span:nth-child(8)::before {
    content: 'Navigateur';
  }

  /* Employee: keep actions/controls compact on mobile. */
  body.page--employee-space [data-employeespace-panel='timesheets'] .timesheets-actions {
    flex-direction: column;
    align-items: stretch;
  }

  body.page--employee-space [data-employeespace-panel='timesheets'] .timesheets-actions > .btn,
  body.page--employee-space [data-employeespace-panel='timesheets'] .timesheets-actions__export {
    width: 100%;
  }

  body.page--employee-space [data-employeespace-panel='timesheets'] .timesheets-actions__export {
    justify-content: stretch;
  }

  body.page--employee-space [data-employeespace-panel='timesheets'] .timesheets-actions__export .btn,
  body.page--employee-space [data-employeespace-panel='timesheets'] .timesheets-actions__export .input {
    width: 100%;
  }

  body.page--employee-space [data-employeespace-panel='timesheets'] .timesheets-controls {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
  }

  body.page--employee-space [data-employeespace-panel='timesheets'] .timesheets-controls .btn {
    width: 100%;
  }

  body.page--company-space .timesheets-export__actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
  }

  body.page--company-space .timesheets-export__actions button {
    width: 100%;
  }
}

/* Operia: phone-first pointage screen */
@media (max-width: 720px) {
  body.page--employee-pointage .company-space-panel__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
  }

  body.page--employee-pointage .timesheets-timer {
    width: 100%;
    min-width: 0;
  }

  body.page--employee-pointage .timesheets-card__controls {
    width: 100%;
  }

  body.page--employee-pointage .timesheets-controls {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
    width: 100%;
  }

  body.page--employee-pointage .timesheets-controls .btn {
    width: 100%;
    min-height: 48px;
    font-size: 0.98rem;
  }
}

@media (max-width: 480px) {
  body.page--employee-pointage .timesheets-controls {
    grid-template-columns: 1fr;
  }

  body.page--employee-pointage .timesheets-card__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  body.page--employee-pointage .timesheets-card__header-right {
    width: 100%;
  }

  body.page--employee-pointage .timesheets-card__header-right .btn {
    width: 100%;
  }
}

/* Operia: issues detail actions always reachable on small screens */
@media (max-width: 720px) {
  .issues-detail__footer {
    position: sticky;
    bottom: 0;
    z-index: 2;
    background: rgba(255, 255, 255, 0.98);
    padding: 0.85rem 1rem;
    border-top: 1px solid rgba(6, 20, 26, 0.08);
    box-shadow: 0 -10px 25px rgba(6, 20, 26, 0.08);
  }

  .issues-detail__meta {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0.6rem;
  }

  .issues-detail__meta label,
  .issues-detail__meta select,
  .issues-detail__meta button {
    width: 100%;
  }
}

/* Demo session countdown + end overlay */
body.is-demo-expired {
  overflow: hidden;
}

.demo-countdown {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 9999;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(11, 39, 66, 0.9);
  color: #fff;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.demo-countdown__label {
  opacity: 0.78;
}

.demo-countdown__time {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}

@media (max-width: 480px) {
  .demo-countdown {
    top: 0.75rem;
    right: 0.75rem;
    padding: 0.5rem 0.7rem;
    font-size: 0.72rem;
  }
}

.demo-expired-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background: rgba(240, 245, 250, 0.58);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.demo-expired-overlay__panel {
  width: min(34rem, 100%);
  border-radius: 1.2rem;
  border: 1px solid rgba(6, 20, 26, 0.14);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 26px 80px rgba(6, 20, 26, 0.22);
  padding: 1.35rem 1.2rem;
  text-align: center;
}

.demo-expired-overlay__panel h2 {
  margin: 0 0 0.5rem;
  color: var(--brand-navy);
  font-size: 1.25rem;
  letter-spacing: 0.01em;
  text-transform: none;
}

.demo-expired-overlay__panel p {
  margin: 0 0 1.1rem;
  color: rgba(6, 20, 26, 0.7);
}

.demo-expired-overlay__actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
}

.demo-expired-overlay__button.btn {
  width: 100%;
  border-color: rgba(17, 60, 104, 0.28);
  background: rgba(17, 60, 104, 0.9);
  color: #fff;
  text-decoration: none;
}

.demo-expired-overlay__button.btn:hover {
  background: rgba(17, 60, 104, 1);
}

/* Ensure Facturo off-canvas overrides global mobile sidebar rules */
@media (max-width: 900px) {
  body.page--facturo-space .company-space-sidebar,
  body.page--facturo-quotes .company-space-sidebar {
    width: 250px !important;
    z-index: 1050;
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
  }

  body.is-sidebar-open.page--facturo-space .company-space-sidebar,
  body.is-sidebar-open.page--facturo-quotes .company-space-sidebar {
    transform: translateX(0);
  }

  body.page--facturo-space .mobile-sidebar-overlay,
  body.page--facturo-quotes .mobile-sidebar-overlay {
    z-index: 1040;
  }

  body.page--facturo-space .mobile-sidebar-toggle,
  body.page--facturo-quotes .mobile-sidebar-toggle {
    z-index: 1051;
  }
}

/* Facturo: Rubrique Documents (bibliothèque) */
body.page--facturo-space .facturo-inline-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 140px;
}
body.page--facturo-space .facturo-inline-field > span {
  font-size: 12px;
  color: rgba(15, 23, 42, 0.7);
}
body.page--facturo-space .facturo-inline-field select {
  height: 38px;
}

body.page--facturo-space .facturo-library-folders__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
@media (min-width: 1100px) {
  body.page--facturo-space .facturo-library-folders__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

body.page--facturo-space .facturo-library-folder {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 12px;
  background: #fff;
  color: rgba(15, 23, 42, 0.9);
  text-align: left;
  transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
}
body.page--facturo-space .facturo-library-folder:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
}
body.page--facturo-space .facturo-library-folder.is-active {
  border-color: rgba(37, 99, 235, 0.45);
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.10);
}
body.page--facturo-space .facturo-library-folder__label {
  font-weight: 600;
  font-size: 13px;
}
body.page--facturo-space .facturo-library-folder__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  color: rgba(15, 23, 42, 0.75);
  font-size: 12px;
  font-weight: 600;
}
/* Responsive baseline overrides */
img, video, canvas, svg { max-width: 100%; height: auto; }

@media (max-width: 1024px) {
  .main, .content, .modern-content, .page-content { padding: 16px !important; }
}

@media (max-width: 900px) {
  .topbar, .panel-header, .actions-bar, .clients-actions-bar, .clients-toolbar, .contracts-toolbar, .reports-toolbar, .collaborators-toolbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .search, .search-area, .filters, .filter-bar { width: 100%; }
  .table, .table-body, .table-wrapper, .data-table, .list, .list-body {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .table .row, .table-body .row, .data-table .row, .list .row {
    min-width: 720px;
  }
  .grid, .cards, .stats, .kpis, .overview-metrics {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 600px) {
  .main, .content, .modern-content, .page-content { padding: 12px !important; }
  .btn, .btn-create, .primary-btn, .secondary-btn { width: 100%; }
}
