@import url("https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200&icon_names=delete");.App {
  min-height: 100vh;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 2rem 1rem;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
}

.standalone-page {
  min-height: 100vh;
  background: #f5f5f5;
  padding: 0;
  margin: 0;
}

.app-header {
  text-align: center;
  margin-bottom: 2rem;
}

.app-header h1 {
  color: white;
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.subtitle {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  margin: 0;
}

.nav-menu {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.nav-link {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 500;
  transition: background 0.2s, transform 0.2s;
  backdrop-filter: blur(10px);
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.nav-link:active {
  transform: translateY(0);
}

.content {
  min-height: 400px;
}

.app-footer {
  text-align: center;
  margin-top: 3rem;
}

.tech-stack {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  margin: 0;
}

@media (max-width: 768px) {
  .app-header h1 {
    font-size: 2rem;
  }
  
  .nav-menu {
    flex-direction: column;
    align-items: center;
  }
  
  .nav-link {
    width: 200px;
    text-align: center;
  }
}
.home {
  text-align: center;
  padding: 2rem;
}

.home h2 {
  color: white;
  font-size: 2rem;
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.home .description {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  margin-bottom: 3rem;
}

.home .components-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin: 2rem 0;
}

.home-card {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  text-decoration: none;
  color: inherit;
  flex: 1;
  min-width: 250px;
  max-width: 300px;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.home-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.home-card .card-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.home-card h3 {
  color: #333;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.home-card p {
  color: #666;
  font-size: 0.95rem;
}

.home-card.windchill {
  border-top: 4px solid #3498db;
}

.home-card.totalmaterial {
  border-top: 4px solid #e74c3c;
}

.home-card.prostep {
  border-top: 4px solid #f39c12;
}

@media (max-width: 768px) {
  .home .components-grid {
    flex-direction: column;
    align-items: center;
  }
}
/* PTC Windchill PLM Style - Enterprise gray/green corporate look */
/* Enhanced readability for screensharing */
.windchill-container {
  background: #e8eaed;
  min-height: 100vh;
  padding: 0;
  box-shadow: none;
  margin: 0;
  max-width: none;
  border-top: none;
  border-radius: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 14px;
}

/* Top toolbar area - mimics PTC enterprise style */
.windchill-toolbar {
  background: linear-gradient(180deg, #5a5a5a 0%, #3d3d3d 100%);
  padding: 6px 12px;
  display: flex;
  gap: 4px;
  border-bottom: 1px solid #2a2a2a;
}

.windchill-toolbar-btn {
  background: linear-gradient(180deg, #6a6a6a 0%, #4a4a4a 100%);
  border: 1px solid #3a3a3a;
  color: #e0e0e0;
  padding: 6px 14px;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}

.windchill-toolbar-btn:hover {
  background: linear-gradient(180deg, #7a7a7a 0%, #5a5a5a 100%);
}

.windchill-toolbar-btn:active {
  background: linear-gradient(180deg, #4a4a4a 0%, #3a3a3a 100%);
}

.windchill-toolbar-separator {
  width: 1px;
  background: #4a4a4a;
  margin: 2px 8px;
}

.windchill-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0;
  background: linear-gradient(180deg, #4a7c59 0%, #3d6b4a 100%);
  padding: 10px 16px;
  border-bottom: 2px solid #2d5238;
}

.windchill-header h2 {
  color: white;
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  text-shadow: 0 1px 1px rgba(0,0,0,0.3);
}

.windchill-header h2::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 20px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-7 3c1.93 0 3.5 1.57 3.5 3.5S13.93 13 12 13s-3.5-1.57-3.5-3.5S10.07 6 12 6zm7 13H5v-.23c0-.62.28-1.2.76-1.58C7.47 15.82 9.64 15 12 15s4.53.82 6.24 2.19c.48.38.76.97.76 1.58V19z'/%3E%3C/svg%3E") no-repeat center;
  background-size: contain;
}

.windchill-nav-breadcrumb {
  background: #f5f5f5;
  padding: 8px 16px;
  border-bottom: 1px solid #ccc;
  font-size: 13px;
  color: #555;
  display: flex;
  align-items: center;
  gap: 6px;
}

.windchill-nav-breadcrumb span {
  color: #2d5238;
  font-weight: 500;
}

.windchill-nav-breadcrumb .separator {
  color: #999;
}

.assign-material-btn {
  background: linear-gradient(180deg, #f5f5f5 0%, #e0e0e0 100%);
  color: #333;
  border: 1px solid #999;
  padding: 8px 20px;
  border-radius: 3px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.1s;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  white-space: nowrap;
  min-width: 140px;
}

.assign-material-btn:hover {
  background: linear-gradient(180deg, #fff 0%, #f0f0f0 100%);
  border-color: #666;
}

.assign-material-btn:active {
  background: linear-gradient(180deg, #d0d0d0 0%, #e0e0e0 100%);
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.1);
}

.table-container {
  overflow-x: auto;
  border-radius: 0;
  border: 1px solid #b0b0b0;
  background: white;
  margin: 12px;
  box-shadow: inset 0 0 0 1px #e0e0e0;
}

.windchill-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  background: white;
}

.windchill-table thead {
  background: linear-gradient(180deg, #e8e8e8 0%, #d0d0d0 100%);
  border-bottom: 1px solid #999;
}

.windchill-table th {
  padding: 10px 12px;
  text-align: left;
  font-weight: 600;
  color: #333;
  font-size: 14px;
  border-right: 1px solid #c0c0c0;
  border-bottom: 1px solid #999;
  position: relative;
  white-space: nowrap;
}

.windchill-table th:last-child {
  border-right: none;
}

/* Column resize handle appearance */
.windchill-table th::after {
  content: '';
  position: absolute;
  right: 0;
  top: 25%;
  height: 50%;
  width: 3px;
  cursor: col-resize;
}

.windchill-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #e0e0e0;
  border-right: 1px solid #eee;
  color: #333;
  font-size: 14px;
}

.windchill-table td:last-child {
  border-right: none;
}

.windchill-table tbody tr {
  transition: background-color 0.05s;
  cursor: default;
}

.windchill-table tbody tr:nth-child(even) {
  background-color: #fafafa;
}

.windchill-table tbody tr:hover {
  background-color: #e3f2fd;
}

.windchill-table tbody tr.selected {
  background-color: #1565c0 !important;
  color: white;
}

.windchill-table tbody tr.selected td {
  color: white;
  border-right-color: #1976d2;
}

.windchill-table tbody tr:last-child td {
  border-bottom: 1px solid #e0e0e0;
}

.checkbox-col {
  width: 36px;
  text-align: center;
  padding: 8px !important;
}

.checkbox-col input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
  margin: 0;
}

.windchill-table th:nth-child(2) {
  width: 160px;
}

.windchill-table th:nth-child(3) {
  width: auto;
}

.windchill-table th:nth-child(4) {
  width: 180px;
}

.name-col {
  font-weight: 400;
}

/* Status bar at bottom */
.windchill-statusbar {
  background: linear-gradient(180deg, #e8e8e8 0%, #d5d5d5 100%);
  padding: 8px 16px;
  font-size: 13px;
  color: #555;
  border-top: 1px solid #b0b0b0;
  display: flex;
  justify-content: space-between;
}

/* Context Menu - Windows style */
.context-menu {
  position: fixed;
  background: #f5f5f5;
  border: 1px solid #808080;
  box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.25);
  z-index: 1000;
  min-width: 220px;
  padding: 4px 0;
}

.context-menu-item {
  padding: 8px 28px 8px 36px;
  cursor: default;
  font-size: 14px;
  color: #333;
  position: relative;
}

.context-menu-item::before {
  content: '';
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23666'%3E%3Cpath d='M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z'/%3E%3C/svg%3E") no-repeat center;
  background-size: contain;
}

.context-menu-item:hover {
  background-color: #1565c0;
  color: white;
}

.context-menu-item:hover::before {
  filter: brightness(10);
}

.context-menu-separator {
  height: 1px;
  background: #c0c0c0;
  margin: 6px 2px;
}

/* Error state */
.windchill-container.error {
  color: #c00;
  text-align: center;
  padding: 3rem;
  background: #fff0f0;
  border: 1px solid #c00;
  margin: 12px;
  font-size: 16px;
}

/* Responsive */
@media (max-width: 768px) {
  .windchill-container {
    padding: 0;
  }

  .windchill-header {
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
    padding: 1rem;
  }

  .assign-material-btn {
    width: 100%;
  }

  .table-container {
    margin: 1rem;
  }

  .windchill-table th,
  .windchill-table td {
    padding: 0.75rem 0.5rem;
    font-size: 0.85rem;
  }
}
/* PROSTEP Design System - Official OpenPDM Theme */
/* Based on calypso.psad.de/site/product/prostep/shared/prostep-design-system */

:root {
  /* Primary colors */
  --ps-primary-10: #EBF5FF;
  --ps-primary-50: #D0E3F8;
  --ps-primary-100: #AFCFF4;
  --ps-primary-200: #82B7F3;
  --ps-primary-300: #68A6EA;
  --ps-primary-400: #3482D3;
  --ps-primary-500: #005DB4;
  --ps-primary-600: #004FA7;
  --ps-primary-700: #00439A;
  --ps-primary-800: #002778;

  /* Fallback foreground / semantic colors (small sensible defaults) */
  --ps-foreground-0: #ffffff;
  --ps-foreground-10: #fbfcfd;
  --ps-foreground-50: #f7f9fa;
  --ps-foreground-100: #e9eef3;
  --ps-foreground-200: #dfe7ee;
  --ps-foreground-300: #c6d6e6;
  --ps-foreground-600: #6b7680;
  --ps-foreground-700: #39444a;
  --ps-foreground-900: #0f1720;
  --ps-success-200: #1aa35a;

}

html{
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100%;
  box-sizing: border-box;
}
body{
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100%;
  box-sizing: border-box;
}
body > div{
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100%;
  box-sizing: border-box;
}
body > div > div{
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100%;
  box-sizing: border-box;
}
body > div > div > div{
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100%;
  box-sizing: border-box;
}

/* Split layout: left (table+button), right (iframe) */
.prostep-split-container {
  display: flex;
  height: 100%;
  width: 100%;
  background: var(--ps-foreground-50);
  font-family: 'Segoe UI', Arial, sans-serif;
  box-sizing: border-box;
}

.prostep-left {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  padding: 0.5em;
  padding-top: 2em;
  background: var(--ps-foreground-0);
  box-shadow: 2px 0 8px 0 rgba(227,234,243,0.8);
  min-width: 200px;
  max-width: 75%;
  justify-content: flex-start;
  box-sizing: border-box;
}
  .btn {
    background: #1a355e;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 10px 20px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 8px;
  }
  .btn:disabled {
    background: #b0b8c1;
    cursor: not-allowed;
  }

.prostep-right {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  padding: 0.5em;
  width:100%;
  height:100%;
  background: var(--ps-foreground-50);
  box-sizing: border-box;
}
.prostep-iframe {
  width: 100%;
  height: 100%;
  border: 2px solid var(--ps-primary-400);
  box-shadow: 0 6px 18px rgba(16, 24, 40, 0.08);
  border-radius: 6px;
  background: var(--ps-foreground-0);
  display: block;
  box-sizing: border-box;
}

/* Vertical resizer between panes */
.prostep-resizer {
  width: 8px;
  cursor: col-resize;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}

.prostep-resizer::after {
  content: '';
  width: 2px;
  height: 36px;
  background: rgba(0, 0, 0, 0.12);
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.02) inset;
}

.color-affirmative:enabled {
  background-color: #6da92f;
}

.contentWindow{
  height: 100%;
  width: 100%;
}

.tabbar{
  height: fit-content;
  width: 100%;
  border-bottom: 2px solid var(--ps-primary-400);
}

/* Tab button styles */
.tabrow {
  display: flex;
  gap: 8px;
  align-items: center;
}

.tab {
  flex: 1 1 0;
  appearance: none;
  background: transparent;
  border: 1px solid var(--ps-primary-100);
  border-bottom: 2px solid transparent;
  padding: 8px 12px;
  border-radius: 6px 6px 0 0;
  cursor: pointer;
  color: var(--ps-primary-300);
  font-weight: 600;
  transition: background 0.12s, color 0.12s, box-shadow 0.12s, border-color 0.12s;
}

.tab:hover {
  background: var(--ps-primary-10);
}

.tab:focus {
  outline: none;
  box-shadow: 0 0 0 4px rgba(52,130,211,0.08);
}

.tab.active {
  background: var(--ps-foreground-0);
  border-color: var(--ps-primary-200);
  border-bottom-color: var(--ps-foreground-0);
  color: var(--ps-primary-700);
  box-shadow: 0 2px 8px rgba(16,24,40,0.06);
}

/* AG Grid overrides */
 .ag-layout-auto-height,
    .ag-layout-print {
        .ag-center-cols-viewport,
        .ag-center-cols-container {
            min-height: 1.8em;
        }
    }

 .contentWindow .ag-layout-auto-height,
    .ag-layout-print {
        .ag-center-cols-viewport,
        .ag-center-cols-container {
            min-height: 15em;
        }
    }
.prostep-left .ag-root-wrapper .editable {
  background-color: var(--ps-primary-50);
}.build-info-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1rem;
  background: var(--ps-foreground-100, #e9eef3);
  border-top: 1px solid var(--ps-foreground-300, #c6d6e6);
  color: var(--ps-foreground-600, #6b7680);
  font-size: 0.68rem;
  font-family: ui-monospace, 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
  padding: 0 0.75rem;
  z-index: 9999;
  letter-spacing: 0.02em;
}

.build-info-separator {
  opacity: 0.35;
}

.invisible {
  color: var(--ps-foreground-100, #e9eef3);
}

.build-info-left {
  display: flex;
  align-items: center;
  padding-top: 0.3rem;
}

.brand-logo,
.build-logo {
  height: 1rem;
  width: auto;
  display: block;
  pointer-events: none; /* allow the wrapper link to get clicks */
}

.brand-logo svg,
.build-logo svg {
  height: 100%;
  width: auto;
  display: block;
}

.brand-logo svg #sub-text,
.build-logo svg #sub-text {
  display: none;
}

.brand-info-link,
.build-logo-link {
  pointer-events: auto; /* override footer's pointer-events:none */
  display: inline-block;
  text-decoration: none;
}

.build-info-right {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}


#root {
  height: 100vh;
  overflow-y: auto;
  margin: 0;
}

body {
  background: #f3f4f6;
}

.page-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding-bottom: 220px;
}

.button-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}

.open-button {
    padding: 12px 24px;
    background-color: #1E4C97;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;

    transition: all 0.2s ease;
}

.open-button:hover {
    background-color: #163b75;
}

.open-button:active {
    transform: scale(0.97);
    background-color: #0f2a52;
}

.plugin-page-content {
    flex: 1;
    width: 95%;
    max-width: 1600px;
    margin: 30px auto;
}

.plugin-table {
    width: 100%;
    margin-bottom: 24px;
}

.selection-info {
    margin-top: 12px;
    font-size: 16px;
}

.ag-theme-alpine .ag-row-selected {
    background-color: #dbeafe !important;
}

.ag-theme-alpine .ag-cell.coverage-editable-cell {
    background-color: #eef6ff;
}

.ag-theme-alpine .ag-cell.coverage-editable-cell.ag-cell-focus {
    background-color: #dcecff;
}

.assign-button-container {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.assign-button {
    padding: 12px 24px;
    background-color: #1e972e;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;

    transition: all 0.2s ease;
}

.assign-button:hover {
    background-color: #1a8128;
}

.assign-button:active {
    transform: scale(0.97);
    background-color: rgb(22, 109, 34);
}

.debug-console {
    position: fixed;
    bottom: 30px;
    left: 0;
    right: 0;
    background: #fff;
    color: #111;
    font-family: monospace;
    font-size: 12px;
    padding: 6px;
    z-index: 99999;
    max-height: 150px;
    overflow-y: auto;
    border-top: 1px solid #ccc;
}

.recently-used-delete-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 9px;
    background: linear-gradient(180deg, #ef4444 0%, #dc2626 100%);
    color: #ffffff;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.recently-used-delete-button:hover {
    background: linear-gradient(180deg, #f87171 0%, #dc2626 100%);
    transform: translateY(-1px);
}

.recently-used-delete-button:active {
    transform: translateY(0);
}

.recently-used-delete-button:focus-visible {
    outline: 2px solid #fecaca;
    outline-offset: 2px;
}

.recently-used-delete-icon {
    font-family: "Material Symbols Outlined";
    font-size: 18px;
    line-height: 1;
    font-variation-settings: "FILL" 1, "wght" 500, "GRAD" 0, "opsz" 20;
}/* PluginHeader.css */
.header {
  background: #1E4C97;
  padding: 10px;
}

.logo {
  height: 40px;
}* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

code {
  font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
    monospace;
}
