/* =========================================================
   TECHFIT PLM UI STANDARD V1
   Shared Layout
   ========================================================= */

body.tf-ui-v1 .tf-page {
  min-height: 100vh;
  padding: var(--tf-page-padding);
  background: var(--tf-bg-page);
}

body.tf-ui-v1 .tf-page-inner {
  width: 100%;
  max-width: none;
  margin: 0 auto;
}

body.tf-ui-v1 .tf-stack {
  display: flex;
  flex-direction: column;
  gap: var(--tf-section-gap);
}

body.tf-ui-v1 .tf-row-layout {
  display: flex;
  align-items: center;
  gap: var(--tf-space-3);
  flex-wrap: wrap;
}

body.tf-ui-v1 .tf-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--tf-space-4);
}

body.tf-ui-v1 .tf-grid-2 {
  display: grid;
  grid-template-columns: minmax(0, 2.7fr) minmax(320px, 1fr);
  gap: var(--tf-section-gap);
}

body.tf-ui-v1 .tf-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--tf-section-gap);
}

body.tf-ui-v1 .tf-tabs-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--tf-space-3);
  padding: 12px;
  background: var(--tf-bg-card);
  border: 1px solid var(--tf-border);
  border-radius: var(--tf-radius-lg);
}

body.tf-ui-v1 .tf-tabs-left,
body.tf-ui-v1 .tf-tabs-right {
  display: flex;
  align-items: center;
  gap: var(--tf-space-3);
  flex-wrap: wrap;
}

body.tf-ui-v1 .tf-section {
  display: flex;
  flex-direction: column;
  gap: var(--tf-section-gap);
}

body.tf-ui-v1 .tf-scroll-x {
  overflow-x: auto;
}

body.tf-ui-v1 .tf-nowrap {
  white-space: nowrap;
}

@media (max-width: 1100px) {
  body.tf-ui-v1 .tf-grid-2 {
    grid-template-columns: 1fr;
  }

  body.tf-ui-v1 .tf-grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.tf-ui-v1 .tf-tabs-bar {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  :root {
    --tf-page-padding: 12px;
    --tf-card-padding: 12px;
    --tf-font-page-title: 22px;
    --tf-font-card-title: 18px;
  }

  body.tf-ui-v1 .tf-grid-3 {
    grid-template-columns: 1fr;
  }

  body.tf-ui-v1 .tf-between {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* TECHFIT_UI_V2_A2:LAYOUT:START */
/*
 * TECHFIT UI V2 — Style Arcade layout and typography foundation
 * No existing V1 selector is changed.
 */
.tf-ui-v2-style-arcade .tf-page-title {
  margin: 0;
  color: var(--tf-text-strong);
  font-size: clamp(28px, 2.1vw, 30px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.tf-ui-v2-style-arcade .tf-page-subtitle {
  margin: 4px 0 0;
  color: var(--tf-text-muted);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.45;
}

.tf-ui-v2-style-arcade .tf-card-title {
  margin: 0;
  color: var(--tf-text-strong);
  font-size: clamp(20px, 1.5vw, 22px);
  font-weight: 500;
  line-height: 1.35;
}

.tf-ui-v2-style-arcade .tf-section-title {
  margin: 0;
  color: var(--tf-text-strong);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.4;
}

.tf-ui-v2-style-arcade .tf-brand-title {
  margin: 0;
  color: var(--tf-text-strong);
  font-size: clamp(30px, 2.5vw, 40px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.tf-ui-v2-style-arcade .tf-product-code {
  color: var(--tf-text-muted);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.4;
}

.tf-ui-v2-style-arcade .tf-value {
  color: var(--tf-text);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.45;
}

.tf-ui-v2-style-arcade .tf-value-lg {
  color: var(--tf-text);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.4;
}

.tf-ui-v2-style-arcade .tf-label {
  color: var(--tf-text-muted);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0;
  text-transform: none;
}

.tf-ui-v2-style-arcade .tf-muted {
  color: var(--tf-text-muted);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.45;
}

@media (max-width: 768px) {
  .tf-ui-v2-style-arcade .tf-page-title {
    font-size: 26px;
  }

  .tf-ui-v2-style-arcade .tf-card-title {
    font-size: 19px;
  }

  .tf-ui-v2-style-arcade .tf-section-title {
    font-size: 16px;
  }

  .tf-ui-v2-style-arcade .tf-value {
    font-size: 15px;
  }
}
/* TECHFIT_UI_V2_A2:LAYOUT:END */
