/* tab-template-impose-upload.css */
:root {
  --ttp-brand: #224B77;
  --ttp-brand-dark: #163453;
  --ttp-accent: #9ecc48;
  --ttp-bg: #f5f7fb;
  --ttp-card: #ffffff;
  --ttp-line: #d8e2ee;
  --ttp-text: #19324a;
  --ttp-muted: #60758b;
  --ttp-shadow: 0 12px 28px rgba(19, 50, 74, 0.08);
  --ttp-radius: 18px;
}

.tab-template-page {
  
  color: var(--ttp-text);
  padding-top: 1.5rem;
  padding-bottom: 2rem;
}

.tab-template-container {
  max-width: 1360px;
}

.ttp-hero {
  margin-bottom: 1.5rem;
}

.ttp-hero-card {
  background: linear-gradient(135deg, #ffffff 0%, #eef5ff 100%);
  border: 1px solid var(--ttp-line);
  border-radius: 1.5rem;
  box-shadow: var(--ttp-shadow);
  padding: 1.75rem;
}

.ttp-kicker {
  display: inline-block;
  margin-bottom: 0.5rem;
  color: var(--ttp-accent);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.ttp-title {
  margin-bottom: 0.75rem;
  color: var(--ttp-brand);
  font-weight: 700;
}

.ttp-subtitle {
  max-width: 72rem;
  margin-bottom: 0;
  color: var(--ttp-muted);
  font-size: 1.05rem;
}

.ttp-card {
  border: 1px solid var(--ttp-line);
  border-radius: var(--ttp-radius);
  box-shadow: var(--ttp-shadow);
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.ttp-card-header {
  background: #fff;
  border-bottom: 1px solid var(--ttp-line);
  padding: 1rem 1.25rem;
}

.ttp-label {
  display: block;
  margin-bottom: 0.375rem;
  font-weight: 700;
  color: var(--ttp-brand-dark);
}

.ttp-help {
  margin-top: 0.375rem;
  font-size: 0.85rem;
  color: var(--ttp-muted);
}

.ttp-file-input {
  padding-top: 0.45rem;
  padding-bottom: 0.3rem;
}

.ttp-metric-box {
  height: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid var(--ttp-line);
  border-radius: 1rem;
  background: #fbfdff;
}

.ttp-metric-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ttp-brand);
}

.ttp-metric-value {
  margin-top: 0.35rem;
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--ttp-brand-dark);
  line-height: 1.2;
}

.ttp-metric-value.ttp-metric-small {
  font-size: 1.1rem;
}

.ttp-metric-note {
  margin-top: 0.35rem;
  color: var(--ttp-muted);
  font-size: 0.9rem;
}

.ttp-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  justify-content: flex-start;
}

.ttp-status {
  display: none;
  margin-top: 1rem;
  padding: 0.75rem 0.9rem;
  border-radius: 0.75rem;
  font-size: 0.95rem;
}

.ttp-status.show {
  display: block;
}

.ttp-status.error {
  background: #fdecec;
  color: #a12828;
}

.ttp-status.ok {
  background: #e9f8ee;
  color: #1d6b35;
}

.ttp-preview-shell {
  position: relative;
  min-height: 620px;
  padding: 1.5rem;
  border: 1px solid var(--ttp-line);
  border-radius: 1.5rem;
  background: linear-gradient(180deg, #f7f9fc, #eef3f9);
  overflow: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ttp-preview-empty {
  color: var(--ttp-muted);
  font-size: 1rem;
  text-align: center;
}

.ttp-preview-stage {
  position: relative;
  display: none;
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.08);
  border: 1px solid #cad6e3;
  background: #fff;
}

.ttp-preview-stage.is-visible {
  display: block;
}

.ttp-preview-canvas {
  display: block;
}

.ttp-overlay-layer {
  position: absolute;
  pointer-events: none;
}

.ttp-overlay-layer svg {
  display: block;
  width: 100%;
  height: 100%;
}

@media (max-width: 767.98px) {
  .tab-template-page {
    padding-top: 1rem;
  }

  .ttp-hero-card,
  .ttp-card-header,
  .ttp-card .card-body {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .ttp-preview-shell {
    min-height: 420px;
    padding: 1rem;
  }

  .ttp-metric-value {
    font-size: 1.25rem;
  }

  .ttp-metric-value.ttp-metric-small {
    font-size: 1rem;
  }
}


.ttp-help-top {
  margin-top: 0;
  margin-bottom: 0.375rem;
}


.ttp-instructions-box {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.ttp-instructions-list {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--ttp-text);
  font-size: 0.92rem;
}

.ttp-instructions-list li + li {
  margin-top: 0.35rem;
}

.ttp-instructions-toggle {
  align-self: flex-start;
}

.ttp-instructions-details {
  padding-top: 0.1rem;
  color: var(--ttp-muted);
  font-size: 0.9rem;
}


.ttp-metric-inline-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: nowrap;
  white-space: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
}

.ttp-metric-label-inline {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ttp-brand);
  flex: 0 0 auto;
}

.ttp-metric-value-inline {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ttp-brand-dark);
  line-height: 1.2;
  flex: 0 0 auto;
}

.hanging-indent {
  padding-left: 1rem; /* Indent the whole block */
  text-indent: -1rem; /* Pull the first line back */
}
