/* 固定资产登记表样式 */
.assets-table {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
  font-family: Arial, sans-serif;
}

.assets-table h2 {
  text-align: center;
  font-size: 24px;
  margin-bottom: 20px;
  color: #333;
}

.table-header {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 20px;
  gap: 10px;
}

.header-item {
  flex: 1;
  min-width: 200px;
  display: flex;
  align-items: center;
}

.header-item label {
  font-weight: bold;
  margin-right: 10px;
  white-space: nowrap;
}

.header-item .blank {
  flex: 1;
  height: 30px;
  border: 1px solid #ddd;
  background-color: #f9f9f9;
  display: flex;
  align-items: center;
  padding: 0 10px;
}

.table-container {
  overflow-x: auto;
}

.assets-grid {
  display: grid;
  grid-template-columns: repeat(13, 1fr);
  gap: 1px;
  background-color: #ddd;
}

.grid-item {
  background-color: white;
  padding: 5px;
  text-align: center;
  min-height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0.5px dashed #999;
}

.grid-item.grid-header {
  min-height: 40px;
  padding: 10px;
  border: 0.5px dashed #999;
}

.grid-header {
  font-weight: bold;
  background-color: #f2f2f2;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .assets-table {
    padding: 10px;
  }
  
  .assets-table h2 {
    font-size: 20px;
  }
  
  .header-item {
    min-width: 150px;
  }
  
  .grid-item {
    padding: 5px;
    font-size: 14px;
  }
  
  .assets-grid {
    grid-template-columns: repeat(7, 1fr);
  }
  
  /* 在小屏幕上调整列显示 */
  .grid-item:nth-child(n+8):nth-child(-n+13) {
    grid-column: span 2;
  }
}

@media (max-width: 480px) {
  .header-item {
    min-width: 100%;
  }
  
  .assets-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .grid-item {
    font-size: 12px;
  }
}